/* ==========================================================================
   Redil — sitio de promoción
   Sistema visual derivado de "Redil · Guía de marca v1.0-B"
   Tema: solo claro (Lana). Idioma: español.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Paleta del pastizal */
  --lana: #FAF6EF;
  --lana-raised: #FFFFFF;
  --lana-sunken: #F1EADE;
  --wool: #FFFDF8;

  --ink: #1B2A21;
  --ink-soft: #5C6B60;
  --ink-faint: #8B978D;

  --pastizal: #2E6B4E;
  --pastizal-deep: #1E4A36;
  --pastizal-darker: #14301F;
  --pastizal-tint: #E3EEE7;

  --miel: #E9A13B;
  --miel-ink: #3A2604;
  --miel-tint: #FDF1DC;

  --cielo: #9EC7E4;
  --cielo-tint: #E8F1F8;
  --rubor: #F2B3A8;
  --rubor-tint: #FBE3DF;

  --line: #E6DECF;
  --line-soft: #EFE8DC;
  --bad: #B3462E;
  --bad-tint: #FBE7E1;

  /* Tipografía */
  --font-display: "Baloo 2", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Avenir Next", Avenir, Seravek, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Sombras — difusas, con alma verde. Nunca negras y duras. */
  --shadow-xs: 0 1px 2px rgba(27, 42, 33, 0.04);
  --shadow-sm: 0 2px 8px rgba(27, 42, 33, 0.05), 0 1px 2px rgba(27, 42, 33, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(27, 42, 33, 0.10), 0 4px 12px -4px rgba(27, 42, 33, 0.05);
  --shadow-lg: 0 32px 64px -16px rgba(27, 42, 33, 0.14), 0 12px 24px -8px rgba(27, 42, 33, 0.06);
  --shadow-xl: 0 48px 96px -24px rgba(27, 42, 33, 0.18), 0 16px 32px -12px rgba(27, 42, 33, 0.08);

  /* Radios — squircles generosos */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-2xl: 42px;

  /* Movimiento — masa y resorte, nunca lineal */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* Ritmo espacial */
  --gutter: clamp(20px, 5vw, 40px);
  --maxw: 1240px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* El scroll suave NO se declara aquí: si estuviera activo durante la carga,
   el salto inicial a un ancla (#precios desde otra página) se anima y
   cualquier imagen que cargue a mitad de camino lo cancela, dejando la
   página arriba. El guion lo activa cuando la página ya terminó de cargar. */
html {
  scroll-padding-top: 120px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--lana);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* height:auto es obligatorio: los atributos width/height del HTML entran como
   estilo de presentación y, al forzar el ancho por CSS, dejarían la altura
   clavada en píxeles y la imagen deformada. */
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; display: block; }

/* Toda ilustración fotográfica lleva .ph: relación de aspecto declarada y
   recorte con object-fit. Una imagen puede recortarse; deformarse, jamás. */
.ph {
  width: 100%;
  aspect-ratio: var(--ar, 3 / 2);
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--pastizal-tint); color: var(--pastizal-deep); }

:focus-visible {
  outline: 2.5px solid var(--pastizal);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Grano de papel — capa fija, jamás sobre contenido que hace scroll */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. Tipografía
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}

.h-hero  { font-size: clamp(2.7rem, 5.9vw, 4.7rem); line-height: 1.0; letter-spacing: -0.035em; }
.h-sec   { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.03; }
.h-card  { font-size: clamp(1.42rem, 2.2vw, 1.75rem); line-height: 1.12; letter-spacing: -0.022em; }
.h-mini  { font-size: clamp(1.18rem, 1.6vw, 1.34rem); line-height: 1.2; letter-spacing: -0.018em; font-weight: 700; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
  font-weight: 400;
}
.body-sm { font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.muted   { color: var(--ink-soft); }
.tint    { color: var(--pastizal); }

/* Píldora microscópica que precede a cada titular */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pastizal);
  background: var(--pastizal-tint);
  border-radius: 999px;
  padding: 6px 13px 5px;
  margin: 0 0 22px;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow.on-dark { color: var(--wool); background: rgba(255, 253, 248, 0.13); }
.eyebrow.honey   { color: var(--miel-ink); background: var(--miel-tint); }

/* --------------------------------------------------------------------------
   4. Ritmo de sección
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(88px, 12vw, 168px); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 104px); }
.sec-head { max-width: 46rem; margin-bottom: clamp(44px, 6vw, 76px); }
.sec-head .lead { margin-top: 20px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Doble bisel — toda tarjeta es hardware, no papel pegado al fondo
   -------------------------------------------------------------------------- */
.bezel {
  background: rgba(27, 42, 33, 0.035);
  border: 1px solid rgba(27, 42, 33, 0.05);
  border-radius: var(--r-2xl);
  padding: 7px;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.bezel > .core {
  background: var(--lana-raised);
  border-radius: calc(var(--r-2xl) - 7px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), var(--shadow-sm);
  height: 100%;
  overflow: hidden;
}
.bezel--sunken > .core { background: var(--wool); }
.bezel--brand { background: rgba(46, 107, 78, 0.10); border-color: rgba(46, 107, 78, 0.12); }
.bezel--brand > .core { background: linear-gradient(165deg, var(--pastizal) 0%, var(--pastizal-deep) 100%); color: var(--wool); }
.bezel--sky  { background: rgba(158, 199, 228, 0.20); border-color: rgba(158, 199, 228, 0.28); }
.bezel--sky > .core { background: var(--cielo-tint); }
.bezel--honey { background: rgba(233, 161, 59, 0.16); border-color: rgba(233, 161, 59, 0.22); }
.bezel--honey > .core { background: var(--miel-tint); }

@media (hover: hover) {
  .bezel--lift:hover { transform: translateY(-5px); }
  .bezel--lift:hover > .core { box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), var(--shadow-lg); }
}

.pad { padding: clamp(24px, 3vw, 36px); }
.pad-lg { padding: clamp(30px, 4vw, 52px); }

/* --------------------------------------------------------------------------
   6. Botones — isla, con ícono anidado en su propio círculo
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--pastizal);
  --btn-fg: var(--wool);
  --btn-nest: rgba(255, 253, 248, 0.16);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1;
  border-radius: 999px;
  padding: 13px 13px 13px 26px;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.5s var(--ease);
  white-space: nowrap;
}
.btn .nest {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--btn-nest);
  flex: 0 0 auto;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease);
}
.btn .nest svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .btn:hover .nest { transform: translate(3px, -1px) scale(1.06); }
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn--honey { --btn-bg: var(--miel); --btn-fg: var(--miel-ink); --btn-nest: rgba(58, 38, 4, 0.13); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--pastizal-deep);
  --btn-nest: rgba(46, 107, 78, 0.09);
  box-shadow: inset 0 0 0 1.5px rgba(46, 107, 78, 0.18);
}
.btn--ghost:hover { background: var(--pastizal-tint); box-shadow: inset 0 0 0 1.5px rgba(46, 107, 78, 0.28); }
.btn--onbrand { --btn-bg: var(--wool); --btn-fg: var(--pastizal-deep); --btn-nest: rgba(30, 74, 54, 0.10); }
.btn--sm { font-size: 0.9rem; padding: 9px 9px 9px 20px; }
.btn--sm .nest { width: 26px; height: 26px; }
.btn--sm .nest svg { width: 13px; height: 13px; }
.btn--lg { font-size: 1.12rem; padding: 15px 15px 15px 32px; }
.btn--lg .nest { width: 38px; height: 38px; }

/* --------------------------------------------------------------------------
   7. Navegación — isla de vidrio flotante
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding-top: 20px;
  padding-inline: var(--gutter);
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: padding-top 0.7s var(--ease);
}
.nav.is-stuck { padding-top: 10px; }

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  width: 100%;
  max-width: var(--maxw);
  background: rgba(250, 246, 239, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(27, 42, 33, 0.07);
  border-radius: 999px;
  padding: 9px 9px 9px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.7s var(--ease), background-color 0.7s var(--ease);
}
.nav.is-stuck .nav-pill {
  background: rgba(250, 246, 239, 0.88);
  box-shadow: var(--shadow-md);
}

.nav-logo { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.nav-logo svg { height: 27px; width: auto; }
.nav-logo .word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--pastizal);
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.nav-links a:hover { color: var(--pastizal-deep); background: rgba(46, 107, 78, 0.07); }
/* Página actual: misma píldora en las dos páginas para que el menú se sienta
   uno solo al navegar entre ellas. */
.nav-links a.active {
  color: var(--pastizal-deep);
  background: var(--pastizal-tint);
}
.nav-cta { flex: 0 0 auto; }

/* Hamburguesa que se transforma en X, y menú de pantalla completa */
.nav-burger {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border-radius: 999px;
  background: rgba(46, 107, 78, 0.08);
  flex: 0 0 auto;
}
.nav-burger span {
  position: absolute;
  left: 12px;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--pastizal-deep);
  transition: transform 0.6s var(--ease), opacity 0.35s var(--ease);
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 23px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(250, 246, 239, 0.86);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--gutter) 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.nav-menu.open { opacity: 1; pointer-events: auto; }
.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft);
}
.nav-menu a::after {
  content: "";
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--pastizal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E4A36' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 13px no-repeat;
  flex: 0 0 auto;
}
.nav-menu.open a { opacity: 1; transform: translate3d(0, 0, 0); }
.nav-menu.open a:nth-child(1) { transition-delay: 90ms; }
.nav-menu.open a:nth-child(2) { transition-delay: 140ms; }
.nav-menu.open a:nth-child(3) { transition-delay: 190ms; }
.nav-menu.open a:nth-child(4) { transition-delay: 240ms; }
.nav-menu.open a:nth-child(5) { transition-delay: 290ms; }
.nav-menu.open a:nth-child(6) { transition-delay: 340ms; }

body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-pill { padding-left: 18px; }
  .nav-cta .btn { padding: 11px 11px 11px 20px; font-size: 0.92rem; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 430px) {
  .nav-cta .btn { padding: 10px 10px 10px 16px; font-size: 0.85rem; }
  .nav-cta .btn .nest { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu, .nav-menu a, .nav-burger span { transition: none; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(120px, 11vw, 158px);
  padding-bottom: clamp(64px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero-ambient.jpg");
  background-size: cover;
  background-position: center 62%;
}
/* Velo que devuelve el fondo a Lana y garantiza contraste del titular */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 20% 18%, rgba(250, 246, 239, 0.94) 0%, rgba(250, 246, 239, 0.55) 46%, rgba(250, 246, 239, 0) 72%),
    linear-gradient(180deg, rgba(250, 246, 239, 0.55) 0%, rgba(250, 246, 239, 0) 30%, rgba(250, 246, 239, 0.10) 62%, var(--lana) 99%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
}

.hero-copy { max-width: 40rem; }
.hero-copy .h-hero { margin-bottom: 22px; }
.hero-copy .h-hero em { font-style: normal; color: var(--pastizal); }
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--pastizal-deep);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero-note svg { width: 15px; height: 15px; color: var(--pastizal); flex: 0 0 auto; }

/* Cascada en eje Z — tarjetas físicas apiladas */
.hero-stage {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: end center;
}
/* El recorte PNG trae aire transparente alrededor del personaje;
   el ancho compensa ese margen. */
.hero-ovi {
  width: min(340px, 72%);
  filter: drop-shadow(0 26px 40px rgba(27, 42, 33, 0.16));
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}
.hero-float {
  position: absolute;
  z-index: 3;
  width: min(268px, 60%);
  animation: bob 7s var(--ease-soft) infinite;
}
.hero-float--tag   { top: -1%;  left: -5%;  transform: rotate(-5deg); }
.hero-float--code  { top: 34%; right: -6%; transform: rotate(4deg); width: min(200px, 45%); animation-delay: -2.4s; }
.hero-float--push  { bottom: -1%; left: -2%; transform: rotate(-2deg); width: min(285px, 64%); animation-delay: -4.6s; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -13px; }
}
@media (prefers-reduced-motion: reduce) { .hero-float { animation: none; } }

@media (max-width: 980px) {
  .hero-stage { min-height: 440px; }
  .hero-float--tag  { left: 0; }
  .hero-float--code { right: 0; }
}
/* Los solapes son un lujo de pantalla ancha: en móvil se tocan entre sí y
   tapan la cara de Ovi. Debajo de 640 px la escena se apila. */
@media (max-width: 640px) {
  .hero-stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .hero-ovi { width: 236px; margin-bottom: 0; order: 1; }
  .hero-float {
    position: static;
    order: 2;
    width: min(320px, 92%);
    animation: none;
    transform: rotate(-2deg);
  }
  .hero-float--code, .hero-float--push { display: none; }
}

/* --------------------------------------------------------------------------
   9. Maquetas de producto (etiqueta, recibo, kiosco, QR, panel)
   -------------------------------------------------------------------------- */
.mock {
  background: var(--lana-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Etiqueta del niño */
.mock-tag .band {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--pastizal);
  color: var(--wool);
  padding: 7px 13px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mock-tag .band svg { height: 13px; width: auto; flex: 0 0 auto; }
.mock-tag .body { padding: 13px 15px 15px; }
.mock-tag .kidname {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.mock-tag .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

.chip {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--pastizal-tint);
  color: var(--pastizal-deep);
  white-space: nowrap;
}
.chip--code  { background: var(--miel-tint); color: #7A4E0E; font-family: var(--font-mono); letter-spacing: 0.06em; }
.chip--bday  { background: var(--rubor-tint); color: #8C3B2A; }
.chip--alert { background: var(--bad-tint); color: var(--bad); }
.chip--sky   { background: var(--cielo-tint); color: #29587A; }

/* Recibo del adulto */
.mock-receipt {
  background: var(--lana-raised);
  border: 1.5px dashed var(--pastizal);
  border-radius: var(--r-sm);
  padding: 15px 18px 17px;
  box-shadow: var(--shadow-lg);
}
.mock-receipt .lbl {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--pastizal);
}
.mock-receipt .code {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.1;
  margin: 3px 0 4px;
}
.mock-receipt p { font-size: 0.74rem; color: var(--ink-soft); margin: 0; line-height: 1.45; }

/* Notificación push a la familia */
.mock-push {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-md);
  padding: 13px 15px;
  box-shadow: var(--shadow-lg);
}
.mock-push .avatar {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--pastizal), var(--pastizal-deep));
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.mock-push .avatar svg { width: 19px; height: auto; }
.mock-push .txt { min-width: 0; }
.mock-push .t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.mock-push .m { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
.mock-push .m b { color: var(--ink); font-family: var(--font-mono); font-weight: 700; }

/* Kiosco de autoservicio */
.mock-kiosk { padding: 20px; }
.mock-kiosk .hi {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.mock-kiosk .sub { font-size: 0.82rem; color: var(--ink-soft); margin: 5px 0 15px; line-height: 1.45; }
.mock-kiosk .k-btn {
  display: block;
  text-align: center;
  background: var(--miel);
  color: var(--miel-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  border-radius: var(--r-sm);
  padding: 12px;
}
.mock-kiosk .k-btn.ghost { background: var(--cielo-tint); color: var(--pastizal-deep); margin-top: 8px; }

/* Tarjeta QR familiar */
.mock-qr {
  display: flex;
  gap: 14px;
  align-items: center;
  background: linear-gradient(160deg, var(--pastizal), var(--pastizal-deep));
  color: var(--wool);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.mock-qr .qr {
  width: 72px; height: 72px;
  border-radius: 9px;
  background: var(--wool);
  padding: 7px;
  flex: 0 0 auto;
}
.mock-qr .t { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em; }
.mock-qr p { font-size: 0.75rem; opacity: 0.86; margin: 3px 0 0; line-height: 1.45; }

/* Filas de panel / salón / voluntarios */
.rowlist { display: flex; flex-direction: column; }
.rowlist .row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
}
.rowlist .row:first-child { border-top: none; }
.rowlist .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pastizal); flex: 0 0 auto; }
.rowlist .dot--sky { background: var(--cielo); }
.rowlist .dot--honey { background: var(--miel); }
.rowlist .nm { font-weight: 700; letter-spacing: -0.01em; }
.rowlist .meta { margin-left: auto; font-size: 0.74rem; color: var(--ink-faint); font-family: var(--font-mono); white-space: nowrap; }

/* Cifra grande viva */
.stat-live { display: flex; align-items: baseline; gap: 10px; }
.stat-live .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.stat-live .u { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); letter-spacing: -0.01em; }

.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--pastizal);
}
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pastizal);
  animation: pulse 2.4s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.78); }
}
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; } }

/* Mini gráfico de barras */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; margin-top: 6px; }
.bars i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: var(--pastizal-tint);
  transform-origin: bottom;
  transform: scaleY(var(--h, 0.4));
  transition: transform 1s var(--ease);
}
.bars i.on { background: var(--pastizal); }
.bars i.hi { background: var(--miel); }

/* --------------------------------------------------------------------------
   10. Franja de confianza
   -------------------------------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.trust > div { background: var(--lana); padding: clamp(20px, 3vw, 30px); }
.trust .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--pastizal-deep);
}
.trust .l { font-size: 0.83rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.45; }
@media (max-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   11. Pasos
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.step .core { display: flex; flex-direction: column; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--pastizal);
  opacity: 0.65;
  margin-bottom: 14px;
}
.step .h-card { margin-bottom: 10px; }
.step-art {
  margin-top: auto;
  padding-top: 26px;
  min-height: 178px;
  display: grid;
  place-items: center;
  background: var(--lana-sunken);
  border-radius: var(--r-md);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.step-art--sky { background: var(--cielo-tint); }
.step-art--honey { background: var(--miel-tint); }

/* --------------------------------------------------------------------------
   12. Bento de funciones
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
.bento > * { grid-column: span 12; }
@media (min-width: 860px) {
  .b-4 { grid-column: span 4; }
  .b-5 { grid-column: span 5; }
  .b-6 { grid-column: span 6; }
  .b-7 { grid-column: span 7; }
  .b-8 { grid-column: span 8; }
  .b-12 { grid-column: span 12; }
}

.feat .core { display: flex; flex-direction: column; height: 100%; }
.feat .h-card { margin-bottom: 9px; }
.feat .body-sm { margin-bottom: 0; }
.feat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--pastizal-tint);
  color: var(--pastizal-deep);
  margin-bottom: 17px;
  flex: 0 0 auto;
}
.feat-icon svg { width: 20px; height: 20px; }
.feat-icon--sky { background: var(--cielo-tint); color: #29587A; }
.feat-icon--honey { background: var(--miel-tint); color: #7A4E0E; }
.feat-icon--rose { background: var(--rubor-tint); color: #8C3B2A; }
.bezel--brand .feat-icon { background: rgba(255, 253, 248, 0.15); color: var(--wool); }
.bezel--brand .body-sm, .bezel--brand .muted { color: rgba(255, 253, 248, 0.80); }
.bezel--brand .h-card, .bezel--brand .h-sec { color: var(--wool); }

.feat-art { margin-top: auto; padding-top: 26px; }
.feat-media {
  margin: 22px calc(-1 * clamp(24px, 3vw, 36px)) calc(-1 * clamp(24px, 3vw, 36px));
  overflow: hidden;
}
.feat-media img { width: 100%; height: auto; display: block; }

/* Ilustración a sangre en la parte alta de la tarjeta */
.feat-media--top {
  order: -1;
  margin: calc(-1 * clamp(24px, 3vw, 36px)) calc(-1 * clamp(24px, 3vw, 36px)) 24px;
}

/* --------------------------------------------------------------------------
   12b. Nube de funciones — el resto del catálogo, en píldoras
   -------------------------------------------------------------------------- */
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 56rem;
}
.chip-cloud span {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--pastizal-deep);
  background: var(--lana-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}
.chip-cloud span::before { content: "✓ "; color: var(--pastizal); font-weight: 800; }

/* --------------------------------------------------------------------------
   12c. Cabecera de página interior (funciones.html)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: clamp(130px, 13vw, 180px);
  padding-bottom: clamp(20px, 3vw, 40px);
}
.page-hero .lead { margin-top: 20px; }
.page-hero-art { margin-top: clamp(36px, 5vw, 56px); }

/* Lista de sub-funciones */
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ticks li {
  position: relative;
  padding-left: 25px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pastizal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6B4E' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.bezel--brand .ticks li { color: rgba(255, 253, 248, 0.82); }
.bezel--brand .ticks li::before {
  background-color: rgba(255, 253, 248, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFDF8' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   13. Bloques divididos (imagen + texto)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.split--flip .split-media { order: 2; }

/* La columna de imagen se estira a la altura de la columna de texto y recorta,
   en vez de flotar centrada dejando un hueco muerto al lado. */
.split--fill {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: stretch;
}
.split--fill.split--flip { grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr); }
.split--fill .split-media .bezel,
.split--fill .split-media .core { height: 100%; }
.split--fill .split-media img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--flip .split-media { order: 0; }
  .split--fill, .split--fill.split--flip { grid-template-columns: 1fr; }
  /* En una sola columna la imagen vuelve a una proporción declarada:
     recorta, no se aplasta. */
  .split--fill .split-media img { height: auto; aspect-ratio: 16 / 10; }
}
.split-media img { border-radius: calc(var(--r-2xl) - 7px); width: 100%; }

/* --------------------------------------------------------------------------
   14. Sección Ovi / marca
   -------------------------------------------------------------------------- */
.ovi-band {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(165deg, var(--pastizal) 0%, var(--pastizal-deep) 62%, var(--pastizal-darker) 100%);
  color: var(--wool);
  padding: clamp(38px, 6vw, 76px);
  box-shadow: var(--shadow-xl);
}
.ovi-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 88% 12%, rgba(233, 161, 59, 0.20) 0%, transparent 68%),
    radial-gradient(46% 56% at 6% 92%, rgba(158, 199, 228, 0.16) 0%, transparent 68%);
  pointer-events: none;
}
.ovi-band > * { position: relative; z-index: 1; }
.ovi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 860px) { .ovi-grid { grid-template-columns: 1fr; } }
.ovi-band .h-sec { color: var(--wool); }
.ovi-band .lead { color: rgba(255, 253, 248, 0.82); }
.ovi-traits { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.ovi-trait { display: flex; gap: 13px; align-items: baseline; font-size: 0.93rem; }
.ovi-trait b {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--wool);
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 92px;
}
.ovi-trait span { color: rgba(255, 253, 248, 0.76); line-height: 1.55; }
.ovi-portrait { display: grid; place-items: center; }
.ovi-portrait img { width: min(380px, 96%); filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.30)); }

/* --------------------------------------------------------------------------
   15. Para quién
   -------------------------------------------------------------------------- */
/* Viven dentro de media columna: apiladas respiran, en dos columnas se ahogan. */
.audience { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 1.6vw, 18px); }

/* --------------------------------------------------------------------------
   16. Precios
   -------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.plan .core { display: flex; flex-direction: column; height: 100%; }
.plan-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 6px; }
.plan-price .amt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3.1rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}
/* Para un precio escrito con palabras ("A medida") en vez de una cifra. */
.plan-price .amt--word { font-size: clamp(1.8rem, 2.6vw, 2.15rem); letter-spacing: -0.03em; }
.plan-price .per { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
.bezel--brand .plan-price .per { color: rgba(255, 253, 248, 0.72); }
.bezel--brand .plan-name { color: var(--wool); }
.plan .ticks { flex: 1; margin-bottom: 26px; }
.plan .btn { width: 100%; justify-content: space-between; }
.plan-flag {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: var(--miel);
  color: var(--miel-ink);
  border-radius: 999px;
  padding: 4px 11px;
  z-index: 2;
}
.plan { position: relative; }

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 50rem; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.4s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--pastizal); }
.faq-item summary .sign {
  margin-left: auto;
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--pastizal-tint);
  display: grid; place-items: center;
  transition: transform 0.6s var(--ease), background-color 0.4s var(--ease);
}
.faq-item summary .sign svg { width: 13px; height: 13px; color: var(--pastizal-deep); }
.faq-item[open] summary .sign { transform: rotate(45deg); background: var(--pastizal); }
.faq-item[open] summary .sign svg { color: var(--wool); }
.faq-answer { padding: 0 0 26px; max-width: 60ch; }
.faq-answer p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.68; }

/* --------------------------------------------------------------------------
   18. Registro final
   -------------------------------------------------------------------------- */
.signup {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  isolation: isolate;
}
.signup-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/rebano-dorado.jpg");
  background-size: cover;
  background-position: center 74%;
}
.signup-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(168deg, rgba(20, 48, 31, 0.94) 0%, rgba(30, 74, 54, 0.86) 42%, rgba(30, 74, 54, 0.52) 100%);
}
.signup-inner {
  padding: clamp(40px, 6vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  color: var(--wool);
}
@media (max-width: 900px) { .signup-inner { grid-template-columns: 1fr; } }
.signup .h-sec { color: var(--wool); }
.signup .lead { color: rgba(255, 253, 248, 0.85); }

.form-card {
  background: rgba(255, 253, 248, 0.97);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--lana);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus {
  outline: none;
  background: var(--lana-raised);
  border-color: var(--pastizal);
  box-shadow: 0 0 0 3.5px rgba(46, 107, 78, 0.13);
}
.form-card .btn { width: 100%; justify-content: space-between; margin-top: 8px; }
.form-legal { font-size: 0.74rem; color: var(--ink-faint); margin: 14px 0 0; line-height: 1.5; text-align: center; }
.form-done {
  display: none;
  text-align: center;
  padding: 18px 6px 6px;
}
.form-done img { width: 92px; margin: 0 auto 14px; }
.form-done .h-mini { margin-bottom: 6px; }
.form-card.is-done form { display: none; }
.form-card.is-done .form-done { display: block; }

/* --------------------------------------------------------------------------
   19. Pie
   -------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 44px; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-family: var(--font-body);
  margin-bottom: 15px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.4s var(--ease); }
.foot a:hover { color: var(--pastizal); }
.foot-brand .word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--pastizal);
  line-height: 1;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(38px, 5vw, 58px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   20. Ornamentos
   -------------------------------------------------------------------------- */
/* Un pequeño rebaño de lana entre secciones. La máscara radial disuelve el
   borde del archivo contra la Lana del fondo, así no se ve la costura. */
.wool-divider {
  display: grid;
  place-items: center;
  pointer-events: none;
  margin-block: clamp(-10px, -1vw, 0px);
}
.wool-divider img {
  width: min(620px, 74%);
  -webkit-mask-image: radial-gradient(46% 46% at 50% 62%, #000 34%, transparent 70%);
  mask-image: radial-gradient(46% 46% at 50% 62%, #000 34%, transparent 70%);
}
.hills { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   21. Revelado al entrar en pantalla
   -------------------------------------------------------------------------- */
/* El estado oculto SOLO existe cuando el guion confirmó que puede revelarlo
   (clase .js-reveal en <html>). Sin JavaScript, o si algo falla, el contenido
   se ve igual — una página de inicio nunca debe depender de un observador
   para ser legible.
   Solo transform y opacity: 50+ capas de blur a la vez tumban el compositor. */
.js-reveal .reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 0.9s var(--ease-soft),
    transform 0.9s var(--ease-soft);
  transition-delay: var(--d, 0ms);
}
.js-reveal .reveal.in { opacity: 1; transform: translate3d(0, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .bezel, .btn, .btn .nest { transition: none; }
}
