@import url("fonts.css");

/* ==========================================================================
   Trufa — hoja de estilo del sitio público
   --------------------------------------------------------------------------
   Paleta Abeja (la de la app en look/abeja). Los nombres --coral se quedan
   como alias para no reescribir directorio.css: ahora son el amarillo de
   relleno y la tinta, no el naranja ni el teal de consulta.

     · Botones: relleno --coral (#FFC629), tinta --on-brand (#111).
     · Enlaces y texto: --ink. El amarillo sobre blanco da ~1,7:1.
     · Kickers: raya amarilla; el teal de Cartilla ya no marca.
     · Neutros blancos, sin teñir de amarillo — un acento teñido en el
       fondo deja de ser acento.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light;

  --teal: #6a6560;
  --coral: #ffc629;
  --coral-deep: #111111;
  --coral-light: #ffc629;
  --coral-container: #fff4c7;
  --on-brand: #111111;
  --moss: #2f6b57;
  --moss-container: #cde9da;
  --amber: #f2c14e;
  --amber-deep: #8a6510;
  --amber-container: #ffdfa6;

  --page: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f6f3;
  --surface-3: #f0eeea;
  --ink: #111111;
  --ink-muted: #6a6560;
  --line: #d5d2cc;
  --line-soft: #efece7;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .06), 0 2px 8px rgba(17, 17, 17, .04);
  --shadow-md: 0 2px 6px rgba(17, 17, 17, .07), 0 12px 32px rgba(17, 17, 17, .07);
  --shadow-lg: 0 4px 12px rgba(17, 17, 17, .08), 0 28px 64px rgba(17, 17, 17, .12);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --container: 1140px;
  --prose: 46rem;
  --nav-h: 68px;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --teal: #a8a29a;
    --coral: #ffc629;
    --coral-deep: #ffc629;
    --coral-light: #ffc629;
    --coral-container: #ffc629;
    --on-brand: #111111;
    --moss: #6fbf9c;
    --moss-container: #1e5140;
    --amber: #f5ce73;
    --amber-deep: #f5ce73;
    --amber-container: #5a4300;

    --page: #111111;
    --surface: #1a1a1a;
    --surface-2: #1a1a1a;
    --surface-3: #262624;
    --ink: #f5f2ea;
    --ink-muted: #a8a29a;
    --line: #3a3a36;
    --line-soft: #2a2a28;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, .45), 0 28px 64px rgba(0, 0, 0, .5);
  }
}

/* El interruptor manual tiene que ganar en los dos sentidos, así que la
   variante oscura se repite explícitamente en lugar de heredarla. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --teal: #a8a29a;
  --coral: #ffc629;
  --coral-deep: #ffc629;
  --coral-light: #ffc629;
  --coral-container: #ffc629;
  --on-brand: #111111;
  --moss: #6fbf9c;
  --moss-container: #1e5140;
  --amber: #f5ce73;
  --amber-deep: #f5ce73;
  --amber-container: #5a4300;

  --page: #111111;
  --surface: #1a1a1a;
  --surface-2: #1a1a1a;
  --surface-3: #262624;
  --ink: #f5f2ea;
  --ink-muted: #a8a29a;
  --line: #3a3a36;
  --line-soft: #2a2a28;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .45), 0 28px 64px rgba(0, 0, 0, .5);
}

/* ------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
h4 { font-size: 1.02rem; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--coral-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

strong { font-weight: 700; }
small { font-size: .84rem; }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--coral);
  color: var(--on-brand);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { left: 16px; color: var(--on-brand); }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

section { position: relative; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--surface-2); }

/* ----------------------------------------------------------------- tipos */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-muted);
}

.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

/* --------------------------------------------------------------- botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--coral);
  color: var(--on-brand);
  box-shadow: none;
}
.btn--primary:hover { background: var(--coral); color: var(--on-brand); opacity: .92; }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--coral-deep); color: var(--ink); }

.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* Tiendas: botón con dos líneas y la etiqueta de "próximamente" */
.stores { display: flex; flex-wrap: wrap; gap: .85rem; }

.store {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem .7rem 1.05rem;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.store:hover { color: var(--ink); border-color: var(--coral-deep); transform: translateY(-2px); }
.store svg { flex: none; width: 26px; height: 26px; }
.store b { display: block; font-size: 1rem; font-weight: 800; line-height: 1.15; }
.store span { display: block; font-size: .72rem; color: var(--ink-muted); font-weight: 600; }

/* `.store--soon` y `.badge-soon` vivieron aquí mientras la App Store era una
   promesa. Desde el 2026-08-25 las tres superficies se descargan, así que los
   tres botones de «Descargar» son enlaces de verdad y no queda nada que atenuar. */

/* ----------------------------------------------------------------- chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .8rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--ink-muted);
  border: 1px solid var(--line-soft);
}
.chip--brand { background: var(--coral-container); color: var(--on-brand); border-color: transparent; }
.chip--ok { background: var(--moss-container); color: var(--moss); border-color: transparent; }
:root[data-theme="dark"] .chip--ok { color: #fff; }

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line-soft); }

.nav__inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
/* The mark is artwork, not a glyph: it brings its own outline, shading and
   white, so it is one background image and not an inline <svg> tinted with
   var(--coral). It reads on the light page and on the dark one unchanged. */
.brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
  background: url(../img/brand-mark.png?v=2026081301) center / contain no-repeat;
}

.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.nav__links a:hover { color: var(--coral-deep); }

.nav__actions { display: flex; align-items: center; gap: .6rem; }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { border-color: var(--coral-deep); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .icon-moon { display: none; }
:root[data-theme="dark"] .icon-btn .icon-moon { display: block; }
:root[data-theme="dark"] .icon-btn .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .icon-moon { display: block; }
  :root:not([data-theme="light"]) .icon-btn .icon-sun { display: none; }
}

.nav__toggle { display: none; }

/* Solo existe dentro del menú desplegable; ver el @media de abajo. Va aquí y
   no después del media query, o la cascada lo apagaría también en móvil. */
.nav__cta-mobile { display: none; }

@media (max-width: 940px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    background: var(--page);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav__toggle { display: inline-grid; }

  /* El botón de la barra no cabe junto al logo, así que se esconde — pero
     entonces el menú desplegado se queda sin la única llamada a la acción de
     la cabecera. Este enlace es su sustituto, y solo existe en móvil. */
  .nav .nav__actions .btn--primary { display: none; }
  .nav__cta-mobile {
    display: block;
    margin-top: 1rem;
    text-align: center;
    background: var(--coral);
    color: var(--on-brand) !important;
    border-radius: 999px;
    border-bottom: 0 !important;
    padding: .9rem 1.25rem !important;
    font-weight: 700;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero > * { position: relative; z-index: 1; }

.hero__still {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  aspect-ratio: 3 / 4;
  max-height: 36rem;
}
.hero__still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 80%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--coral-deep); }

.hero__lead { font-size: clamp(1.08rem, 1.9vw, 1.3rem); max-width: 34rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 1.5rem; }

/* Disponibilidad por plataforma, en el héroe.
   Deliberadamente más pequeña que las tarjetas `.store` del final: aquí no
   compite con el botón principal, solo responde a «¿y para mi móvil?» sin
   obligar a bajar hasta abajo. El estado va escrito en cada una — una fila de
   iconos sin texto deja creer que las dos están disponibles, que es justo la
   pregunta que viene a contestar. */
.avail { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }

.avail__item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color .2s ease, transform .2s ease;
}
.avail__item svg { flex: none; width: 18px; height: 18px; }
.avail__item small {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  color: var(--ink-muted);
}
a.avail__item:hover {
  color: var(--ink);
  border-color: var(--coral-deep);
  transform: translateY(-2px);
}
/* `.avail__item--soon` existía para el iPhone sin tienda: sin enlace y sin hover,
   porque un botón pulsable que promete una tienda inexistente es peor que no
   ponerlo. Los dos aparatos son ya enlaces, así que la regla se fue. */

.hero__note {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--ink-muted);
}
.hero__note svg { width: 17px; height: 17px; color: var(--moss); flex: none; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__note, .avail { justify-content: center; }
  .hero .eyebrow::before { display: none; }

  /* El móvil de la ilustración va DEBAJO del titular, no encima. Subirlo
     parece buena idea hasta que lo abres en un teléfono de verdad: ocupa la
     pantalla entera y el visitante ve una foto y ni una palabra de qué es
     esto. Lo primero tiene que ser el titular y el botón. */
  .hero__stage { order: 0; margin-top: 2.5rem; }
  .hero__still { max-height: 22rem; aspect-ratio: 4 / 3; margin-inline: auto; }
}

/* ------------------------------------------------------- tira de confianza */

.trust {
  border-block: 1px solid var(--line-soft);
  background: var(--surface);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  text-align: center;
}
.trust__item b {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--coral-deep);
  font-variant-numeric: tabular-nums;
}
.trust__item span { font-size: .88rem; color: var(--ink-muted); font-weight: 600; }
@media (max-width: 700px) { .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; } }

/* ---------------------------------------------------------------- tarjetas */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 30%, 320px), 1fr));
  gap: 1.25rem;
}

/* Cuatro tarjetas en una rejilla de tres dejan una huérfana en la segunda fila.
   Donde el número es exactamente cuatro, la rejilla lo dice. */
.cards--quad { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-muted); font-size: .96rem; margin: 0; }

.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--coral-container);
  color: var(--on-brand);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--moss { background: var(--moss-container); color: var(--moss); }
.card__icon--amber { background: var(--amber-container); color: var(--amber-deep); }

.card--soon { position: relative; }
.card--soon::after {
  content: "Próximamente";
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: var(--amber-container);
  color: var(--amber-deep);
}

/* ------------------------------------------------------ dos mitades (split) */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3.5rem, 7vw, 6rem); }
.split--reverse .split__media { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.checklist li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ink-muted);
}
.checklist li b { color: var(--ink); font-weight: 700; }
.checklist svg {
  flex: none;
  width: 22px; height: 22px;
  color: var(--moss);
  margin-top: 1px;
}

/* --------------------------------------------------------- el puente (flow) */

.bridge {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: 3rem;
}
.bridge__step {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.bridge__step b { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.bridge__step p { font-size: .92rem; color: var(--ink-muted); margin: 0; }
.bridge__num {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--coral-container);
  color: var(--on-brand);
  font-weight: 800;
  font-size: .88rem;
  margin-bottom: .9rem;
}
.bridge__arrow {
  align-self: center;
  color: var(--coral-deep);
  display: grid;
  place-items: center;
}
.bridge__arrow svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .bridge { grid-template-columns: 1fr; }
  .bridge__arrow { transform: rotate(90deg); }
}

/* ------------------------------------------------------------------ móvil */
/* Las pantallas son la UI real de Trufa recreada en HTML, no capturas: así
   escalan, se leen en cualquier tamaño y siguen el modo oscuro del visitante. */

.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 300 / 620;
  margin-inline: auto;
  background: #1c1a18;
  border-radius: 42px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
}
.phone::after {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 22px;
  border-radius: 999px;
  background: #1c1a18;
  z-index: 3;
}
.phone__screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--page);
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone--tilt { transform: rotate(-2.5deg); }
.phone--float { animation: float 7s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  50% { transform: translateY(-14px) rotate(-2.5deg); }
}

.hero__stage { position: relative; display: grid; place-items: center; }
.hero__stage::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: color-mix(in srgb, var(--coral) 30%, transparent);
  filter: blur(6px);
  z-index: 0;
}
.hero__stage .phone { z-index: 1; }

/* --- pantallita: barra de estado y cabecera --- */
.ui { font-size: 12px; line-height: 1.35; color: var(--ink); }
.ui__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  flex: none;
}
.ui__status-icons { display: flex; gap: 4px; align-items: center; opacity: .75; }
.ui__status-icons i {
  display: block; width: 4px; height: 9px;
  background: currentColor; border-radius: 1px;
}
.ui__status-icons i:nth-child(1) { height: 4px; }
.ui__status-icons i:nth-child(2) { height: 6px; }
.ui__status-icons i:nth-child(3) { height: 8px; }
.ui__body {
  flex: 1;
  overflow: hidden;
  padding: 14px 16px 0;
  background: var(--page);
}
.ui__title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 6px 0 2px;
}
.ui__sub { font-size: 11px; color: var(--ink-muted); margin-bottom: 14px; }
.ui__section {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 16px 0 8px;
}

.ui__card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 9px;
}
.ui__row { display: flex; align-items: center; gap: 10px; }
.ui__avatar {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--coral-container);
  color: var(--on-brand);
  flex: none;
}
.ui__avatar svg { width: 20px; height: 20px; }
.ui__avatar--moss { background: var(--moss-container); color: var(--moss); }
.ui__avatar--amber { background: var(--amber-container); color: var(--amber-deep); }
/* Los nombres largos truncan en vez de partirse en tres líneas, que es lo que
   hace la app de verdad — una tarjeta que crece con el nombre desmonta la fila. */
.ui__row > div { min-width: 0; }
.ui__name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui__meta {
  font-size: 10.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui__pill {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-muted);
  white-space: nowrap;
}
.ui__pill--ok { background: var(--moss-container); color: var(--moss); }
.ui__pill--warn { background: var(--amber-container); color: var(--amber-deep); }
.ui__pill--brand { background: var(--coral-container); color: var(--on-brand); }
:root[data-theme="dark"] .ui__pill--ok { color: #fff; }

.ui__tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}
.ui__tab {
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  white-space: nowrap;
}
.ui__tab--on { background: var(--coral); border-color: var(--coral); color: var(--on-brand); }

.ui__nav {
  flex: none;
  display: flex;
  justify-content: space-around;
  padding: 9px 6px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}
.ui__nav div {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-muted);
  padding: 6px 10px;
  border-radius: 999px;
}
.ui__nav div svg { width: 19px; height: 19px; }
.ui__nav div.on {
  color: var(--on-brand);
  background: var(--coral);
  font-weight: 800;
}

/* mapa simulado */
.ui__map {
  position: relative;
  height: 148px;
  margin: 0 -16px 12px;
  background:
    linear-gradient(115deg, transparent 46.6%, var(--line-soft) 46.6%, var(--line-soft) 47.6%, transparent 47.6%),
    linear-gradient(28deg, transparent 62%, var(--line-soft) 62%, var(--line-soft) 63.2%, transparent 63.2%),
    linear-gradient(75deg, transparent 22%, var(--line-soft) 22%, var(--line-soft) 23%, transparent 23%),
    radial-gradient(circle at 76% 24%, color-mix(in srgb, var(--moss) 20%, transparent) 0 16%, transparent 17%),
    radial-gradient(circle at 18% 74%, color-mix(in srgb, var(--moss) 16%, transparent) 0 13%, transparent 14%),
    var(--surface-3);
  overflow: hidden;
}
.ui__pin {
  position: absolute;
  width: 22px; height: 22px;
  margin: -22px 0 0 -11px;
  color: var(--coral);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
}
.ui__pin--cluster {
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 35%, transparent);
}
.ui__me {
  position: absolute;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 999px;
  background: #2f6bd8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 5px rgba(47, 107, 216, .25);
}

/* gráfica de peso */
.ui__chart { position: relative; height: 92px; margin: 6px 0 4px; }
.ui__chart svg { width: 100%; height: 100%; overflow: visible; }
.ui__chart-lbl {
  position: absolute;
  right: 0;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--surface);
  padding: 0 3px;
}

/* burbujas de chat */
.ui__bubble {
  max-width: 78%;
  padding: 8px 11px;
  border-radius: 15px;
  font-size: 11.5px;
  line-height: 1.4;
  margin-bottom: 7px;
  box-shadow: var(--shadow-sm);
}
.ui__bubble--them {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 5px;
}
.ui__bubble--me {
  background: var(--coral);
  color: var(--on-brand);
  margin-left: auto;
  border-bottom-right-radius: 5px;
}
.ui__bubble time { display: block; font-size: 8.5px; opacity: .65; margin-top: 3px; }

.ui__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  flex: none;
}
.ui__input span {
  flex: 1;
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--surface-3);
  padding: 7px 12px;
  border-radius: 999px;
}
.ui__input b {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  flex: none;
}
.ui__input b svg { width: 15px; height: 15px; }

.ui__big {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--coral-deep);
}
:root[data-theme="dark"] .ui__big { color: var(--coral); }

/* ------------------------------------------------------ galería de pantallas */

.shots {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem .25rem 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scroll-padding-inline: .25rem;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.shot { scroll-snap-align: center; flex: none; text-align: center; }
.shot .phone { margin-bottom: 1rem; }
.shot b { display: block; font-size: 1rem; font-weight: 700; }
.shot span { display: block; font-size: .88rem; color: var(--ink-muted); max-width: 300px; margin-inline: auto; }

.shots-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--ink-muted);
}
.shots-hint svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- negocios */

.pro {
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--coral) 12%, var(--surface)),
    var(--surface) 62%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-md);
}

/* ---------------------------------------------------------------- llamada */

.cta {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
  background: var(--coral);
  color: var(--on-brand);
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23111111' fill-opacity='.08'%3E%3Cellipse cx='30' cy='36' rx='9' ry='7.5'/%3E%3Cellipse cx='16' cy='22' rx='4.6' ry='6'/%3E%3Cellipse cx='28' cy='16' rx='4.6' ry='6.2'/%3E%3Cellipse cx='40' cy='21' rx='4.4' ry='5.6'/%3E%3Cellipse cx='90' cy='96' rx='9' ry='7.5'/%3E%3Cellipse cx='76' cy='82' rx='4.6' ry='6'/%3E%3Cellipse cx='88' cy='76' rx='4.6' ry='6.2'/%3E%3Cellipse cx='100' cy='81' rx='4.4' ry='5.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 210px 210px;
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { color: var(--on-brand); }
.cta p { color: rgba(17, 17, 17, .78); max-width: 34rem; margin-inline: auto; }
.cta .stores { justify-content: center; margin-top: 2rem; }
.cta .store { background: #fff; border-color: transparent; color: #111; }
.cta .store span { color: #6a6560; }
.cta .btn--primary { background: #111; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.cta .btn--primary:hover { background: #111; color: #fff; opacity: .92; }

/* -------------------------------------------------------------------- faq */

.faq { max-width: var(--prose); margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: .35rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .5rem;
  top: 50%;
  width: 10px; height: 10px;
  border-right: 2.5px solid var(--coral-deep);
  border-bottom: 2.5px solid var(--coral-deep);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 2.5rem 1.35rem 0; color: var(--ink-muted); }

/* ------------------------------------------------------------------ footer */

.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer__grid h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer ul a { color: var(--ink-muted); text-decoration: none; font-size: .94rem; }
.footer ul a:hover { color: var(--coral-deep); text-decoration: underline; }
.footer__about { max-width: 26rem; }
.footer__about p { font-size: .92rem; color: var(--ink-muted); margin-top: 1rem; }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--ink-muted);
}
.footer__attrib { max-width: 40rem; line-height: 1.55; }
.footer__attrib a { color: var(--ink-muted); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- páginas de texto */

.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.doc__head { max-width: var(--prose); margin: 0 auto 2.5rem; }
.doc__head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc__updated {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface-3);
  padding: .35rem .85rem;
  border-radius: 999px;
}

.prose { max-width: var(--prose); margin-inline: auto; }
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--ink-muted); }
.prose li { margin-bottom: .5rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose strong { color: var(--ink); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .92rem;
}
.prose th, .prose td {
  text-align: left;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--ink-muted);
}
.prose th { color: var(--ink); font-weight: 700; background: var(--surface-3); }
.prose td:first-child { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.callout {
  border-left: 4px solid var(--coral);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.callout p { margin: 0; }
.callout--warn { border-left-color: var(--amber); }
.callout--ok { border-left-color: var(--moss); }

.toc {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc h2 {
  font-size: .8rem !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 .85rem !important;
  padding: 0 !important;
  border: 0 !important;
}
.toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .4rem; }
.toc a { font-size: .94rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ animaciones */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .phone--float { animation: none; }
}
