/* base.css — tokens, tipografía, nav, botones y pie de la landing de Otra Vez.
 *
 * La paleta sale del panel: el blanco y la tinta del tema, y los seis colores
 * con que el producto pinta cada playbook. Aquí no decoran: dicen en qué
 * momento de la venta vas.
 */

@font-face {
  font-family: "Hanken";
  src: url("../fuentes/hanken.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --fondo: #fbfbfd;
  --superficie: #ffffff;
  --superficie-2: #f3f4f9;
  --tinta: #1c1d22;
  --tinta-2: #5d5f6e;
  --tinta-3: #9699a6;
  --linea: #e4e6ee;
  --linea-fuerte: #c9ccd8;

  /* Los seis momentos, con el color exacto que tienen en el panel. */
  --carrito: #e2445c;
  --pago: #fdab3d;
  --envio: #0073ea;
  --acaba: #00c875;
  --dormido: #a25ddc;
  --baja: #c62f47;

  --whatsapp: #25d366;
  --shopify: #7ab55c;

  /* El acento de la página es el momento en que vas. Lo mueve landing.js. */
  --acento: var(--envio);
  --acento-suave: color-mix(in oklab, var(--acento) 12%, white);

  --ancho: 1180px;
  --margen: clamp(16px, 4vw, 40px);
  --nav-alto: 68px;
  --r-tarjeta: 18px;
  --r-control: 10px;

  --sombra-ventana: 0 30px 60px -30px rgb(28 29 34 / 0.35), 0 1px 0 rgb(28 29 34 / 0.06);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-alto) + 72px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: "Hanken", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: var(--acento); color: white; }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p { margin: 0; }

.cifra { font-variant-numeric: tabular-nums; }

.marco {
  width: min(var(--ancho), 100% - 2 * var(--margen));
  margin-inline: auto;
}

.encabezado { max-width: 62ch; }
.encabezado p { margin-top: 1rem; color: var(--tinta-2); font-size: 1.1rem; }

/* El renglón de apartado: número, título y una regla hasta el margen. */
.apartado {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.4rem;
  color: var(--tinta-3);
  font-weight: 600;
  font-size: 0.95rem;
}
.apartado::after { content: ""; flex: 1; height: 1px; background: var(--linea-fuerte); }
.apartado b { color: var(--acento); font-weight: 700; }

/* ── Botones ─────────────────────────────────────────────────────────────── */

.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-control);
  background: var(--tinta);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: background-color 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.boton:hover { background: var(--acento); transform: translateY(-1px); }
.boton:active { transform: translateY(0); }
.boton svg { width: 16px; height: 16px; transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1); }
.boton:hover svg { transform: translateX(3px); }

.boton--acento { background: var(--acento); }
.boton--acento:hover { background: var(--tinta); }

.boton--linea {
  background: transparent;
  color: var(--tinta);
  box-shadow: inset 0 0 0 1.5px var(--linea-fuerte);
}
.boton--linea:hover { background: var(--superficie-2); color: var(--tinta); }

.boton__nota { display: block; margin-top: 10px; color: var(--tinta-3); font-size: 0.9rem; }

.enlace {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--acento);
}
.enlace:hover { color: var(--acento); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--nav-alto);
  background: rgb(251 251 253 / 0.96);
  border-bottom: 1px solid var(--linea);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav--oculto { transform: translateY(-100%); }

.nav__fila {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.marca svg { width: 30px; height: 30px; }

.nav__enlaces {
  display: flex;
  gap: 4px;
  margin: 0 0 0 8px;
  padding: 0;
  list-style: none;
}
.nav__enlaces a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--tinta-2);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav__enlaces a:hover { background: var(--superficie-2); color: var(--tinta); }

.nav__acciones { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav__acciones .boton { min-height: 40px; padding-inline: 16px; font-size: 0.95rem; }

.nav__entrar {
  padding: 8px 12px;
  color: var(--tinta-2);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav__entrar:hover { color: var(--tinta); }

@media (max-width: 900px) {
  .nav__enlaces, .nav__entrar { display: none; }
}

/* ── Pie ─────────────────────────────────────────────────────────────────── */

.pie {
  border-top: 1px solid var(--linea);
  padding: 40px 0 48px;
  color: var(--tinta-2);
  font-size: 0.95rem;
}
.pie__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.pie__fila .marca { color: var(--tinta); }
.pie__enlaces { display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.pie__enlaces a:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 4px; }

@media print {
  .nav, .pie, .boton { display: none !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}
