/* Estilos de la landing del grupo BEMO — la CAPA FAMILIA: qué FORMA tienen las
   cosas. El color sale entero de tokens.css; acá no hay un solo literal de
   color que no sea una sombra o un blanco sobre superficie oscura.

   La escala tipográfica de la portada es MAYOR que la de las apps a propósito:
   una app se mira de cerca y con datos densos, una portada se mira de lejos y
   de un saque. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-title);
  /* General Sans se carga sólo en 500 y 600. Pedir 400 lo hace sintetizar. */
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
/* El h1 trae su propio <br>: los dos versos son la unidad, y `balance` los
   vuelve a repartir por su cuenta hasta dejar cuatro líneas cortas. */
.hero h1 { text-wrap: normal; }

p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-micro) ease-out;
}
a:hover { color: var(--accent-hover); }

/* Foco siempre visible, y el mismo anillo en todos lados. */
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

::selection { background: var(--accent-tint); color: var(--accent-ink); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.saltar {
  position: absolute;
  left: -9999px;
  top: var(--s-sm);
  z-index: 60;
  padding: var(--s-sm) var(--s-lg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: 14px;
}
.saltar:focus { left: var(--s-lg); }

.contenedor {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-xl);
}

/* ── Botones. Alto y radio de la capa familia ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--s-xl);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-micro) ease-out, border-color var(--t-micro) ease-out,
              transform var(--t-micro) ease-out;
}
.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}
.btn:active { transform: translateY(1px); }

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.secondary:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}

/* ── Wordmark. "Bemo" en display, la vertical en UI, más chica y espaciada.
      La vertical nunca va sola. ── */
.wm {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wm b {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.78em;
  letter-spacing: 0.06em;
  /* Como TEXTO el naranja de marca no llega a AA: ésta es su variante fuerte. */
  color: var(--marca-fuerte);
  margin-left: 0.4em;
  vertical-align: 1px;
}
.wm.grande { font-size: 22px; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background var(--t-short) ease-out, border-color var(--t-short) ease-out,
              backdrop-filter var(--t-short) ease-out;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  height: 64px;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
}
.isotipo { display: block; flex: none; }
.marca .nombre {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.enlaces {
  display: flex;
  gap: var(--s-xl);
  margin-left: var(--s-md);
}
.enlaces a {
  color: var(--muted);
  font-size: 14px;
}
.enlaces a:hover { color: var(--ink); }
.acciones { margin-left: auto; display: flex; gap: var(--s-sm); }

.tema {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t-micro) ease-out, border-color var(--t-micro) ease-out,
              background var(--t-micro) ease-out;
}
.tema:hover { color: var(--ink); background: var(--surface-2); }
/* Un solo ícono con dos mitades: en claro se ve el sol, en oscuro la luna. */
.luna { display: none; }
[data-theme='dark'] .sol  { display: none; }
[data-theme='dark'] .luna { display: block; }

/* Sobre el hero oscuro la barra flota sin fondo y con texto claro. Al caer
   sobre papel se invierte entera. */
.nav.sobre-hero .marca .nombre { color: #fff; }
.nav.sobre-hero .enlaces a { color: rgba(255, 255, 255, .72); }
.nav.sobre-hero .enlaces a:hover { color: #fff; }
.nav.sobre-hero .tema {
  color: rgba(255, 255, 255, .8);
  border-color: var(--tinta-linea-2);
}
.nav.sobre-hero .tema:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.nav.compacto {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

/* ── Hero ── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Sube por debajo de la barra para que la barra quede ENCIMA del oscuro; el
     padding devuelve el alto que el margen negativo se comió. */
  margin-top: -64px;
  padding: calc(clamp(64px, 9vw, 116px) + 64px) 0 clamp(64px, 9vw, 116px);
  background: var(--tinta);
  color: var(--sobre-tinta);
}
/* Dos halos muy tenues: uno del naranja de marca, otro del acento. Es
   iluminación, no decoración — no hay blobs, ni formas, ni un degradé de
   fondo a fondo. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 88% 6%, color-mix(in srgb, var(--marca) 22%, transparent), transparent 68%),
    radial-gradient(70% 80% at 6% 96%, color-mix(in srgb, var(--sobre-tinta-accent) 15%, transparent), transparent 66%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(var(--s-2xl), 5vw, 72px);
  align-items: center;
}

.kicker {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sobre-tinta-accent);
  margin-bottom: var(--s-lg);
}

.hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.12;
  /* Los títulos sobre tinta van a blanco puro, no a --sobre-tinta. */
  color: #fff;
}

.bajada {
  margin-top: var(--s-xl);
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--sobre-tinta-2);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  margin-top: var(--s-2xl);
}
/* Sobre tinta el teal del sistema da 2,1:1 y no sirve como acción: pasa a su
   versión clara con texto oscuro encima. */
.hero .btn {
  background: var(--sobre-tinta-accent);
  border-color: var(--sobre-tinta-accent);
  color: var(--sobre-tinta-on-accent);
}
.hero .btn:hover {
  background: #6cbcc3;
  border-color: #6cbcc3;
  color: var(--sobre-tinta-on-accent);
}
.hero .btn.secondary {
  background: rgba(255, 255, 255, .07);
  border-color: var(--tinta-linea-2);
  color: #fff;
}
.hero .btn.secondary:hover { background: rgba(255, 255, 255, .14); }

.letra-chica {
  margin-top: var(--s-xl);
  max-width: 52ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--sobre-tinta-2);
}

/* ── El índice del hero ── */
.indice {
  background: var(--tinta-2);
  border: 1px solid var(--tinta-linea);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  box-shadow: var(--sh-3);
}
.indice-cab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--s-md);
  border-bottom: 1px solid var(--tinta-linea);
}
.et {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sobre-tinta-2);
}
.indice-cab .conteo { font-size: 13px; color: var(--sobre-tinta-2); }

.indice-lista li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-md);
  padding: var(--s-md) 0;
  border-bottom: 1px solid var(--tinta-linea);
}
.indice-lista li:last-child { border-bottom: 0; }
.indice-lista .wm { font-size: 15px; color: #fff; }
.indice-lista .wm b { color: var(--marca); }
.dom {
  font-size: 12px;
  color: var(--sobre-tinta-2);
  white-space: nowrap;
}
.indice-pie {
  margin-top: var(--s-md);
  padding-top: var(--s-md);
  border-top: 1px solid var(--tinta-linea);
  font-size: 12px;
  line-height: 1.5;
  color: var(--sobre-tinta-2);
}
.indice-pie b { color: var(--sobre-tinta); font-weight: 500; }

/* ── Secciones ── */
.seccion { padding: clamp(56px, 8vw, 96px) 0; }
.seccion.hundida {
  background: var(--surface-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.seccion-cab { max-width: 62ch; margin-bottom: var(--s-3xl); }
.rotulo {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marca-rotulo);
  margin-bottom: var(--s-md);
}
.seccion h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
}
.sub {
  margin-top: var(--s-md);
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Las cuatro tarjetas. Dos por fila: densas, no un catálogo de íconos ── */
.grilla {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-xl);
}

.producto {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t-short) ease-out, border-color var(--t-short) ease-out,
              transform var(--t-short) ease-out;
}
.producto:hover {
  border-color: var(--accent-line);
  box-shadow: var(--sh-3);
  transform: translateY(-2px);
}
/* SHOP es el único producto que no adoptó el teal. La tarjeta lo respeta:
   cambia UN token en su propio scope, no una paleta. */
.producto.shop {
  --accent: var(--shop);
  --accent-hover: var(--shop);
  --accent-tint: var(--shop-tint);
  --accent-line: var(--shop-line);
  --accent-ink: var(--shop-ink);
}

.producto-cab {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-md);
  padding-bottom: var(--s-lg);
  border-bottom: 1px solid var(--line);
}
.chip {
  padding: 3px var(--s-sm);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-full);
  background: var(--accent-tint);
  /* El color de acción y el texto sobre su propio tint no pueden ser el mismo:
     a 11,5px el acento sobre su tint da 4,25:1. */
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.producto-txt {
  margin-top: var(--s-lg);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.rasgos {
  margin-top: var(--s-lg);
  display: grid;
  gap: var(--s-sm);
}
.rasgos li {
  position: relative;
  padding-left: var(--s-lg);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
/* Una raya, no un ícono en un círculo de color. */
.rasgos li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.producto-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  margin-top: auto;
  padding-top: var(--s-lg);
  /* margin-top:auto empuja el enlace al pie: las cuatro tarjetas terminan
     alineadas aunque el texto de arriba tenga distinto largo. */
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--accent-ink);
}
.producto-link .mono { font-size: 12.5px; }
.flecha {
  font-size: 15px;
  transition: transform var(--t-short) ease-out;
}
.producto:hover .flecha { transform: translateX(3px); }

/* Toda la tarjeta es clickeable, sin anidar un <a> dentro de otro. */
.producto { position: relative; }
.producto-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-lg); }

/* ── Contraste ── */
.contraste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-xl);
}
.col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
}
.col .et { color: var(--muted-2); }
.col ul { margin-top: var(--s-lg); display: grid; gap: var(--s-lg); }
.col li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: var(--s-lg);
  border-left: 2px solid var(--line);
}
.col li b {
  display: block;
  font-weight: 500;
  color: var(--ink);
}
.comparte li     { border-left-color: var(--accent-line); }
.no-comparte li  { border-left-color: var(--line-strong); }

.nota {
  margin-top: var(--s-xl);
  max-width: 68ch;
  font-size: 13px;
  /* --muted-2 sobre el --surface-3 de portada da 4,28:1 y esto va a 13px.
     --muted, que es el mismo gris un escalón más oscuro, da 4,69. */
  color: var(--muted);
}

/* ── Pie ── */
.pie {
  padding: var(--s-2xl) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.pie-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-lg) var(--s-2xl);
}
.pie-marca {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.pie-links { display: flex; flex-wrap: wrap; gap: var(--s-lg); }
.pie-links a { font-size: 13px; color: var(--muted); }
.pie-links a:hover { color: var(--ink); }
.pie-nota { margin-left: auto; font-size: 12px; color: var(--muted-2); }

/* ── Revelado. Un desplazamiento corto, no una coreografía ── */
.por-revelar {
  opacity: 0;
  transform: translateY(10px);
}
.revelado {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-medium) ease-out, transform var(--t-medium) ease-out;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .por-revelar { opacity: 1; transform: none; }
}

/* ── Angosto ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-2xl); }
  .grilla, .contraste { grid-template-columns: minmax(0, 1fr); }
  .enlaces { display: none; }
  .pie-nota { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .contenedor { padding: 0 var(--s-lg); }
  .producto, .col, .indice { padding: var(--s-lg); }
  .cta .btn { flex: 1 1 100%; }
  .indice-lista li { flex-wrap: wrap; gap: var(--s-2xs); }
}
