/* ==========================================================================
   Chatme — sitio público (central + personas + empresas)
   Paleta clara únicamente. A propósito NO se importa tokens.css de la app:
   ese archivo trae overrides de dark mode y estas páginas tienen que verse
   igual de claras aunque el sistema del visitante esté en oscuro.
   ========================================================================== */

:root {
  --violet: #6D3AF2;
  --violet-hover: #5B2DDC;
  --violet-deep: #3F1D9E;
  --violet-tint: #F1ECFE;
  --violet-tint-2: #E3D8FC;

  --mint: #2EE6B8;
  --mint-tint: #E0FBF3;
  /* El menta puro no llega a contraste sobre blanco: para texto se usa este. */
  --mint-ink: #0B8F72;

  --bg: #FBFAFE;
  --bg-tint: #F4F1FC;
  --surface: #FFFFFF;
  --border: #EAE5F7;
  --border-soft: #F2EEFB;

  --ink: #171122;
  --ink-2: #5C5470;
  --ink-3: #928AA6;

  --sh-sm: 0 1px 2px rgba(23, 17, 34, .05);
  --sh-md: 0 6px 24px rgba(23, 17, 34, .07);
  --sh-lg: 0 20px 56px rgba(23, 17, 34, .11);
  --sh-violet: 0 14px 34px rgba(109, 58, 242, .26);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --wrap: 1140px;
  --ease: cubic-bezier(.22, .68, .32, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.028em; font-weight: 800; }
p { margin: 0; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 22px;
}
.wrap--narrow { max-width: 760px; }

/* Los items de grilla arrancan con min-width:auto, así que un hijo ancho
   puede estirar la columna más allá del contenedor (eso metía scroll
   horizontal en mobile). */
.hero__inner > *, .page-hero > *, .rule > *, .calc > *, .sec > * { min-width: 0; }

/* ============================= BOTONES ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 11px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
}
.btn--lg { padding: 15px 28px; font-size: 16.5px; }

.btn--primary { background: var(--violet); color: #fff; box-shadow: var(--sh-violet); }
.btn--primary:hover { background: var(--violet-hover); transform: translateY(-2px); }

.btn--soft { background: var(--violet-tint); color: var(--violet-deep); }
.btn--soft:hover { background: var(--violet-tint-2); transform: translateY(-2px); }

.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { color: var(--violet-deep); background: var(--violet-tint); }

.btn--light { background: #fff; color: var(--violet-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }

.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

.btn:active { transform: translateY(0); }

/* ============================= NAV ============================= */

.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: calc(100% - 32px);
  max-width: var(--wrap);
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.nav.is-stuck { box-shadow: var(--sh-md); background: rgba(255, 255, 255, .94); }

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand__mark { display: flex; }
.brand__word {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.brand__word b { color: var(--violet); font-weight: 800; }

.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav__links a:hover { background: var(--violet-tint); color: var(--violet-deep); }
.nav__links a.is-active {
  background: var(--violet-tint);
  color: var(--violet-deep);
  font-weight: 600;
}

.nav__cta { display: flex; align-items: center; gap: 6px; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--violet-tint);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 17px;
  height: 2px;
  margin-inline: auto;
  background: var(--violet-deep);
  border-radius: 2px;
  transition: transform .22s var(--ease);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================= HERO ============================= */

.hero { position: relative; padding: 76px 0 40px; }

.aurora {
  position: absolute;
  inset: -140px 0 auto 0;
  height: 620px;
  pointer-events: none;
  overflow: hidden;
}
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.aurora__blob--a {
  width: 540px; height: 540px;
  top: -80px; left: -120px;
  background: radial-gradient(circle, #C9B4FD, transparent 68%);
  animation: float-a 17s ease-in-out infinite;
}
.aurora__blob--b {
  width: 460px; height: 460px;
  top: 40px; right: -100px;
  background: radial-gradient(circle, #A8F3DE, transparent 68%);
  animation: float-b 21s ease-in-out infinite;
}
@keyframes float-a {
  50% { transform: translate3d(50px, 40px, 0) scale(1.1); }
}
@keyframes float-b {
  50% { transform: translate3d(-44px, 52px, 0) scale(1.08); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-tint);
}

.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.05rem); }

/* El subrayado del título se dibuja al entrar: es la primera transición que
   ve el visitante y ancla la promesa.
   Va como background y no como ::after posicionado para que sobreviva a que
   la frase corte en varias líneas. Con ::after hacía falta white-space:nowrap,
   y una frase larga —en empresas, "sin pagar por mensaje"— no podía cortar y
   desbordaba la pantalla a lo ancho en mobile. */
.h1-mark {
  color: var(--violet);
  background-image: linear-gradient(rgba(46, 230, 184, .5), rgba(46, 230, 184, .5));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% .17em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js .h1-mark { background-size: 0 .17em; transition: background-size .7s .35s var(--ease); }
.js .h1-mark.is-drawn { background-size: 100% .17em; }

.lede {
  max-width: 34rem;
  margin-top: 22px;
  font-size: 18.5px;
  color: var(--ink-2);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-3);
}
.hero__trust li { display: flex; align-items: center; gap: 7px; }
.hero__trust li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet-tint-2);
}

/* ---------- Hero de las páginas internas (más compacto) ---------- */

.page-hero-wrap { position: relative; padding: 58px 0 34px; }

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }

/* ---------- Mockup del teléfono ---------- */

.hero__demo { position: relative; justify-self: center; width: 100%; max-width: 380px; }

.phone {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: rotate(-1.4deg);
  transition: transform .5s var(--ease);
}
.hero__demo:hover .phone { transform: rotate(0deg) translateY(-4px); }

.phone__bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #fff, var(--bg));
}
.phone__avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), #9B6BF8);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.phone__who { display: flex; flex-direction: column; line-height: 1.3; }
.phone__who b { font-size: 15px; }
.phone__who i {
  font-style: normal;
  font-size: 12.5px;
  color: var(--mint-ink);
  font-weight: 600;
}

.phone__thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 316px;
  padding: 20px 18px 24px;
  background:
    radial-gradient(circle at 18% 12%, var(--violet-tint) 0, transparent 42%),
    var(--bg);
}

.bub {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 14.8px;
  line-height: 1.45;
  box-shadow: var(--sh-sm);
}
.bub--in {
  align-self: flex-end;
  background: var(--violet);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bub--out {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.bub--typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.bub--typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: typing 1.25s ease-in-out infinite;
}
.bub--typing span:nth-child(2) { animation-delay: .16s; }
.bub--typing span:nth-child(3) { animation-delay: .32s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.thread__note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--mint-ink);
}

.notif {
  position: absolute;
  top: 18px; right: -14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  font-size: 13.5px;
}
.notif__icon { display: flex; color: var(--violet); }
.notif__text b { font-weight: 700; }

/* ---------- Mockup del panel de conversaciones (empresas) ---------- */

.page-hero__demo { justify-self: center; width: 100%; max-width: 420px; }

.inbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.inbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #fff, var(--bg));
  font-size: 15px;
}
.inbox__tag {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--mint-tint);
  color: var(--mint-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.inbox__list { margin: 0; padding: 8px; list-style: none; display: grid; gap: 4px; }
.inbox__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--r-md);
  transition: background-color .2s var(--ease);
}
.inbox__row:hover { background: var(--bg-tint); }

.inbox__av {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.inbox__av--a { background: linear-gradient(135deg, #6D3AF2, #9B6BF8); }
.inbox__av--b { background: linear-gradient(135deg, #0B8F72, #2EE6B8); }
.inbox__av--c { background: linear-gradient(135deg, #7C4DF5, #C9B4FD); }

.inbox__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.inbox__txt b { font-size: 14.5px; }
.inbox__txt i {
  font-style: normal;
  font-size: 13.4px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox__act {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--violet-tint);
  color: var(--violet-deep);
  font-size: 12.8px;
  font-weight: 600;
}

.inbox__foot {
  padding: 13px 20px 17px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-ink);
}

/* ============================= SECCIONES ============================= */

.section { padding: 84px 0; }

.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }

.kicker {
  margin-bottom: 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--violet);
}
.kicker--on-tint { color: var(--violet-deep); }

.section__head h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
.section__sub { margin-top: 15px; font-size: 17.5px; color: var(--ink-2); }

/* ---------- Pasos ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 30px 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.step__num {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--violet-tint);
  color: var(--violet-deep);
  font-size: 15px;
  font-weight: 800;
}
.step h3 { font-size: 19px; margin-bottom: 9px; }
.step p { font-size: 15.6px; color: var(--ink-2); }

/* ---------- La regla ---------- */

.section--rule { background: var(--bg-tint); }

.rule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.rule h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.rule__copy p { margin-top: 15px; font-size: 17px; color: var(--ink-2); }
.rule__foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 15.4px !important;
  color: var(--ink-3) !important;
}

.ticks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.ticks li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  font-weight: 500;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--mint-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 13l4 4L19 7' stroke='%230B8F72' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.blocked {
  padding: 34px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.blocked__bub {
  position: relative;
  max-width: 300px;
  padding: 13px 17px;
  background: var(--bg-tint);
  border: 1px dashed var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  font-size: 15px;
  color: var(--ink-3);
}
/* La tachadura se dibuja cuando la sección entra en pantalla (is-blocked). */
.blocked__bub::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; top: 50%;
  height: 2px;
  background: #E5486A;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
}
.blocked__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13.8px;
  font-weight: 600;
  color: #C93355;
}

/* ---------- Tarjetas ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 15.2px; color: var(--ink-2); }

.card__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
}
.card__ico--violet { background: var(--violet-tint); color: var(--violet); }
.card__ico--mint { background: var(--mint-tint); color: var(--mint-ink); }

/* ---------- Calculadora de costo ---------- */

.section--biz { background: var(--bg-tint); }

.calc {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 38px;
  align-items: center;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}

.calc__control label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.calc__value {
  display: block;
  margin: 8px 0 14px;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.calc__control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--violet-tint-2);
  cursor: pointer;
}
.calc__control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: var(--sh-violet);
  cursor: grab;
  transition: transform .16s var(--ease);
}
.calc__control input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.14); }
.calc__control input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--violet);
  cursor: grab;
}
.calc__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.calc__results {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}
.calc__box {
  padding: 22px 20px;
  border-radius: var(--r-md);
  text-align: center;
}
.calc__box--wa { background: var(--bg-tint); border: 1px solid var(--border); }
.calc__box--cm {
  background: linear-gradient(160deg, var(--mint-tint), #F3FDFA);
  border: 1px solid #BFF2E4;
}
.calc__box-label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.calc__box-num {
  margin: 7px 0 5px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.calc__box--cm .calc__box-num { color: var(--mint-ink); }
.calc__box-foot { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.calc__arrow { display: grid; place-items: center; color: var(--violet-tint-2); }

.calc__nota {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 13.4px;
  color: var(--ink-3);
  line-height: 1.55;
}
.calc__nota b { color: var(--ink-2); }

/* ---------- Seguridad ---------- */

.sec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.sec h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.sec__copy > p { margin-top: 15px; font-size: 17px; color: var(--ink-2); }

.cipher {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.cipher__cap {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cipher__bub {
  padding: 13px 16px;
  background: var(--violet);
  border-radius: 18px;
  border-bottom-right-radius: 6px;
  color: #fff;
  font-size: 15px;
}
/* El cifrado se muestra en monoespaciada y cortando por caracter: si no,
   la tira de hex desborda la burbuja. */
.cipher__bub--enc {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.4px;
  line-height: 1.7;
  letter-spacing: .04em;
  word-break: break-all;
}

.cipher__mid { display: grid; place-items: center; padding: 14px 0; }
.cipher__lock {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mint-tint);
  color: var(--mint-ink);
}
.cipher__mid + .cipher__cap { margin-top: 0; }

.cipher__foot {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--border-soft);
  font-size: 13.4px;
  font-weight: 600;
  color: var(--mint-ink);
}

/* ---------- Fondo tenue (alta de empresas, descarga) ---------- */

.section--install, .section--tint { background: var(--bg-tint); }

.install-note {
  max-width: 640px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 14.6px;
  color: var(--ink-3);
}

/* ---------- Descarga de la app (todavía no disponible) ---------- */

.download {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}
.download > * { min-width: 0; }
.download h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.download__copy > p { margin-top: 15px; font-size: 17px; color: var(--ink-2); }

.download__stores { display: grid; gap: 14px; }

/* No son <a> ni <button>: todavía no llevan a ninguna parte, así que no
   tienen que ser clickeables ni enfocables. El gris apagado y el cartel de
   "Próximamente" son lo que comunica que no están disponibles. */
.store {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: not-allowed;
}
.store__ico { display: flex; flex-shrink: 0; color: var(--ink-3); }
.store__txt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.store__txt i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.store__txt b { font-size: 17px; color: var(--ink-2); }
.store__soon {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--violet-tint);
  color: var(--violet-deep);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .download { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Las dos puertas ---------- */

.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.door {
  display: block;
  padding: 34px 30px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease),
              border-color .2s var(--ease);
}
.door:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--violet-tint-2);
}
.door__ico {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 20px;
  border-radius: 15px;
}
.door__ico--violet { background: var(--violet-tint); color: var(--violet); }
.door__ico--mint { background: var(--mint-tint); color: var(--mint-ink); }
.door h3 { font-size: 21px; margin-bottom: 9px; }
.door p { font-size: 15.8px; color: var(--ink-2); }
.door__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--violet-deep);
}
.door__cta::after {
  content: '→';
  transition: transform .22s var(--ease);
}
.door:hover .door__cta::after { transform: translateX(4px); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow .22s var(--ease);
}
.faq__item[open] { box-shadow: var(--sh-sm); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--violet-deep); }

.faq__chev {
  position: relative;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--violet-tint);
  transition: transform .26s var(--ease), background-color .2s var(--ease);
}
.faq__chev::before,
.faq__chev::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  border-radius: 2px;
  background: var(--violet-deep);
  transform: translate(-50%, -50%);
  transition: transform .26s var(--ease);
}
.faq__chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__chev { background: var(--violet); }
.faq__item[open] .faq__chev::before,
.faq__item[open] .faq__chev::after { background: #fff; }
.faq__item[open] .faq__chev::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__body { padding: 0 22px 20px; }
.faq__body p { font-size: 15.8px; color: var(--ink-2); }
.faq__body a { color: var(--violet); font-weight: 600; text-decoration: underline; }

/* La animación de apertura la maneja el JS midiendo la altura real; sin JS
   el <details> abre igual, nada más que de golpe. */
.js .faq__item .faq__body-wrap {
  overflow: hidden;
  transition: height .3s var(--ease);
}

/* ---------- Cierre ---------- */

.closing {
  padding: 92px 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(46, 230, 184, .28), transparent 52%),
    linear-gradient(140deg, var(--violet) 0%, #5326C9 58%, var(--violet-deep) 100%);
  color: #fff;
  text-align: center;
}
.closing h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.closing p { margin-top: 15px; font-size: 18px; opacity: .88; }
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Footer ---------- */

.foot { padding: 62px 0 28px; background: var(--surface); border-top: 1px solid var(--border); }

.foot__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 38px;
}
.foot__brand p {
  max-width: 24rem;
  margin-top: 12px;
  font-size: 14.6px;
  color: var(--ink-3);
}

.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__col h4 {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot__col a { font-size: 15px; color: var(--ink-2); transition: color .16s var(--ease); }
.foot__col a:hover { color: var(--violet); }

.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 13.6px;
  color: var(--ink-3);
}

/* ============================= ANIMACIÓN DE ENTRADA =============================
   Sólo se aplica con la clase .js en <html>: si el JavaScript no corre, el
   contenido se ve normal en vez de quedar invisible para siempre. */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .phone__thread .bub,
.js .phone__thread .thread__note {
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .34s var(--ease), transform .34s var(--ease);
}
.js .phone__thread .bub.is-shown,
.js .phone__thread .thread__note.is-shown { opacity: 1; transform: none; }
.js .phone__thread .bub--typing.is-gone { display: none; }

.js .notif { opacity: 0; transform: translateY(-10px) scale(.94); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .notif.is-shown { opacity: 1; transform: none; }

.js .blocked.is-blocked .blocked__bub::after { transform: scaleX(1); transition: transform .5s .1s var(--ease); }
.js .blocked__label { opacity: 0; transition: opacity .4s .5s var(--ease); }
.js .blocked.is-blocked .blocked__label { opacity: 1; }

/* ============================= RESPONSIVE ============================= */

@media (max-width: 1000px) {
  .nav__links { display: none; }
  .hero__inner, .page-hero, .rule, .sec, .calc { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero__demo { max-width: 360px; margin-top: 12px; }
  .page-hero__demo { max-width: 420px; margin-top: 6px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .calc { gap: 30px; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 62px 0; }

  .nav { width: calc(100% - 24px); padding: 9px 10px 9px 14px; gap: 10px; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; }

  /* Menú desplegado en mobile: se apoya debajo de la pastilla del nav. */
  .nav.is-open { border-radius: var(--r-lg); flex-wrap: wrap; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin: 6px 0 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
  }
  .nav.is-open .nav__cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
    padding-bottom: 6px;
  }

  .cards, .cards--3, .doors { grid-template-columns: 1fr; }
  .calc { padding: 26px 20px; }
  .calc__results { grid-template-columns: 1fr; }
  .calc__arrow { transform: rotate(90deg); }
  .closing { padding: 72px 0; }
  .foot__inner { grid-template-columns: 1fr; gap: 30px; }
  .foot__bottom { flex-direction: column; gap: 6px; }
  .notif { right: 0; }
  .inbox__act { display: none; }
}

/* Quien pidió menos movimiento no ve ninguna animación, pero sí todo el
   contenido: las clases de entrada quedan neutralizadas. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .phone__thread .bub,
  .js .phone__thread .thread__note,
  .js .notif { opacity: 1; transform: none; }
  .js .h1-mark { background-size: 100% .17em; }
  .js .blocked__label { opacity: 1; }
  .js .blocked .blocked__bub::after { transform: scaleX(1); }
}
