/* ==========================================================================
   Birdie · simulador de golf para eventos
   CSS nativo, sin build step (deploy Git de Hostinger).

   SISTEMA DE DISEÑO
   - Página clara: blanco y off-white verdoso. El verde oscuro aparece solo
     como velo sobre foto, como bloque de color a sangre y en el pie.
   - Acento único: lima (--accent), siempre con texto verde oscuro encima.
   - Radios: botones píldora | tarjetas 20px | media 24px | inputs 12px
   - Tipos: Outfit (display) + Geist (texto) + Geist Mono (solo números)
   - Z-index: solo los tokens --z-*.
   ========================================================================== */

/* 1. Fuentes ------------------------------------------------------------- */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-var.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-var.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geistmono-var.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* 2. Tokens -------------------------------------------------------------- */
:root {
  --paper:   #ffffff;
  --paper-2: #f2f5ef;
  --paper-3: #e6ece2;

  --green:   #10301e;
  --green-2: #1a4830;

  --ink:   #0c2116;
  --ink-2: #44564a;
  --ink-3: #59685e;

  --on-dark:   #f7f9f4;
  --on-dark-2: rgba(247, 249, 244, 0.82);
  --on-dark-3: rgba(247, 249, 244, 0.64);

  --line:        rgba(12, 33, 22, 0.12);
  --line-strong: rgba(12, 33, 22, 0.26);

  --accent:      #c3ee4f;
  --accent-2:    #b0e22e;
  --accent-ink:  #0c2116;
  --accent-soft: rgba(195, 238, 79, 0.20);

  --danger: #9d3320;

  --r-pill:  999px;
  --r-card:  20px;
  --r-media: 24px;
  --r-input: 12px;

  --shadow:    0 10px 30px rgba(12, 33, 22, 0.07);
  --shadow-lg: 0 28px 64px rgba(12, 33, 22, 0.14);

  --section-y: clamp(4.5rem, 9vw, 8rem);
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --z-nav: 50;
  --z-mobilebar: 60;
  --z-menu: 70;
  --z-cookie: 80;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* Bloque sobre verde oscuro o sobre foto. Invierte el texto, no el tema. */
.on-dark {
  --ink: var(--on-dark);
  --ink-2: var(--on-dark-2);
  --ink-3: var(--on-dark-3);
  --line: rgba(247, 249, 244, 0.18);
  --line-strong: rgba(247, 249, 244, 0.34);
  color: var(--on-dark);
}

/* 3. Reset y base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
p a:not(.btn) {
  text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
p a:not(.btn):hover { text-decoration-color: var(--accent-2); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero-media :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: var(--z-cookie);
  background: var(--accent); color: var(--accent-ink);
  padding: 0.7rem 1.1rem; border-radius: var(--r-pill); font-weight: 600;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

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

/* 4. Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide   { max-width: 1400px; }
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper-2); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--hairline { border-top: 1px solid var(--line); }

/* 5. Tipografía ---------------------------------------------------------- */
.display, h1, h2, h3, h4 {
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700; line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
.h-hero { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
.h-1    { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.h-2    { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.h-3    { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.18; letter-spacing: -0.02em; }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2); max-width: 56ch; text-wrap: pretty;
}
.body-text { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.meta { font-size: 0.875rem; color: var(--ink-3); }
.num { font-family: 'Geist Mono', ui-monospace, monospace; font-weight: 500; font-variant-numeric: tabular-nums; }
.accent-text { color: var(--green-2); }
.on-dark .accent-text { color: var(--accent); }

/* Etiqueta corta sobre el titular de sección */
.eyebrow {
  display: block;
  font-family: 'Geist', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-2); margin-bottom: 0.9rem;
}
.on-dark .eyebrow, .hero-media .eyebrow, .quote .eyebrow, .cta-band .eyebrow { color: var(--accent); }

.section-head { max-width: 58ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head > * + *:not(.eyebrow) { margin-top: 1.1rem; }
.section-head--center { max-width: 64ch; margin-inline: auto; text-align: center; }
.section-head--center h2 { max-width: 18ch; margin-inline: auto; }
.section-head--center .lede { max-width: 52ch; margin-inline: auto; }

/* 6. Botones ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.975rem; line-height: 1;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.12s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }

/* Secundario en claro: contorno verde oscuro */
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* Secundario sobre foto o sobre verde */
.on-dark .btn--ghost, .hero-media .btn--ghost, .cta-band .btn--ghost {
  --btn-fg: var(--on-dark);
  border-color: rgba(247, 249, 244, 0.45);
  background: rgba(247, 249, 244, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.on-dark .btn--ghost:hover, .hero-media .btn--ghost:hover, .cta-band .btn--ghost:hover {
  background: var(--on-dark); color: var(--ink); border-color: var(--on-dark);
}
@media (prefers-reduced-transparency: reduce) {
  .on-dark .btn--ghost, .hero-media .btn--ghost, .cta-band .btn--ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--on-dark); }
.btn--dark:hover { background: var(--green-2); }

.btn--sm { padding: 0.68rem 1.15rem; font-size: 0.9rem; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.03rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-row--center { justify-content: center; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; pointer-events: none; }
.icon--lg { width: 1.7rem; height: 1.7rem; }

/* 7. Navegación: píldora flotante sobre el hero ------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  padding: clamp(0.6rem, 1.4vw, 1rem) var(--gutter);
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  max-width: var(--wrap); margin-inline: auto;
  height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem;
  padding-inline: 0.65rem 0.65rem;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--r-pill);
  box-shadow: 0 6px 24px rgba(12, 33, 22, 0.10);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
@media (prefers-reduced-transparency: reduce) {
  .nav__inner { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.nav[data-stuck="true"] .nav__inner {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(12, 33, 22, 0.14);
}

.nav__left  { display: flex; align-items: center; gap: 0.4rem; }
.nav__right { display: flex; align-items: center; gap: 0.5rem; justify-content: flex-end; }

.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 1.22rem; letter-spacing: -0.035em;
  justify-self: center;
}
.brand .icon { color: var(--green-2); width: 1.45rem; height: 1.45rem; }

.nav__toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 44px; padding-inline: 0.85rem;
  background: none; border: 1px solid var(--line); border-radius: var(--r-pill);
  cursor: pointer; font-size: 0.92rem; font-weight: 500;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav__toggle:hover { background: var(--paper-2); border-color: var(--line-strong); }
.nav__toggle span { display: none; }
@media (min-width: 760px) { .nav__toggle span { display: inline; } }

.nav__tel {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--ink);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav__tel:hover { background: var(--paper-2); border-color: var(--line-strong); }
/* En móvil el CTA de la barra ya está en la barra fija de abajo, así que
   en la píldora dejamos solo hamburguesa, logo y teléfono: así el logo
   queda centrado de verdad y no empujado por un botón ancho. */
@media (max-width: 760px) {
  .nav__right > .btn { display: none; }
  .nav__inner { height: 58px; }
}

/* 8. Cajón lateral ------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: rgba(12, 33, 22, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.scrim[data-open="true"] { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: var(--z-menu);
  width: min(400px, 88vw);
  background: var(--green); color: var(--on-dark);
  padding: 1.1rem clamp(1.25rem, 3vw, 1.9rem) 2rem;
  overflow-y: auto;
  transform: translateX(-102%);
  transition: transform 0.38s var(--ease);
  display: flex; flex-direction: column;
}
.drawer[data-open="true"] { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }

.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.drawer__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; cursor: pointer;
  border: 1px solid rgba(247, 249, 244, 0.28); border-radius: var(--r-pill);
  color: var(--on-dark);
}
.drawer__close:hover { background: rgba(247, 249, 244, 0.12); }

.drawer__nav { display: grid; }
.drawer__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(247, 249, 244, 0.14);
  font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 600;
  letter-spacing: -0.03em;
  transition: color 0.18s var(--ease), padding-left 0.22s var(--ease);
}
.drawer__nav a .icon { color: rgba(247, 249, 244, 0.5); transition: transform 0.22s var(--ease); }
.drawer__nav a:hover { color: var(--accent); padding-left: 0.4rem; }
.drawer__nav a:hover .icon { color: var(--accent); transform: translateX(3px); }
.drawer__nav a[aria-current="page"] { color: var(--accent); }

.drawer__foot { margin-top: auto; padding-top: 2rem; }
.drawer__foot .btn { width: 100%; }
.drawer__contact { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.drawer__contact a {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem; color: var(--on-dark-2);
}
.drawer__contact a:hover { color: var(--accent); }

/* 9. Hero a sangre ------------------------------------------------------- */
.hero-media {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid; align-items: end;
  padding-top: 7rem;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  isolation: isolate;
  color: var(--on-dark);
}
.hero-media--center { align-items: center; text-align: center; }
.hero-media__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--green); }
.hero-media__bg img, .hero-media__bg video { width: 100%; height: 100%; object-fit: cover; }
/* Velo doble: la mancha radial asegura el contraste del texto aunque la
   foto que se ponga detrás sea muy clara (un atardecer, vestidos blancos). */
.hero-media__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(75% 65% at 50% 52%, rgba(10, 26, 17, 0.72), transparent 78%),
    linear-gradient(to top, rgba(10, 26, 17, 0.90) 0%, rgba(10, 26, 17, 0.50) 48%, rgba(10, 26, 17, 0.66) 100%);
}
/* En las páginas interiores el texto va a la izquierda, no centrado */
.hero-media--page .hero-media__bg::after {
  background:
    linear-gradient(95deg, rgba(10, 26, 17, 0.90) 30%, rgba(10, 26, 17, 0.55) 78%),
    linear-gradient(to top, rgba(10, 26, 17, 0.75), rgba(10, 26, 17, 0.45));
}
.hero-media__content { position: relative; }
.hero-media--center .hero-media__content { max-width: 56rem; margin-inline: auto; }
.hero-media h1 { max-width: 18ch; }
.hero-media--center h1 { margin-inline: auto; }
.hero-media .lede { color: var(--on-dark-2); max-width: 48ch; margin-top: 1.4rem; }
.hero-media--center .lede { margin-inline: auto; }
.hero-media .btn-row { margin-top: 2.1rem; }

/* Cabecera de página interior, más corta */
.hero-media--page { min-height: min(64vh, 580px); padding-top: 8rem; }
.hero-media--page h1 { max-width: 22ch; }
.hero-media--page .crumbs { color: var(--on-dark-3); margin-bottom: 1.1rem; }
.hero-media--page .crumbs a:hover { color: var(--accent); }
.hero-media--page .btn-row { margin-top: 1.9rem; }

/* 10. Media -------------------------------------------------------------- */
.media {
  position: relative; border-radius: var(--r-media); overflow: hidden;
  background: var(--paper-3);
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--portrait  { aspect-ratio: 4 / 5; }
.media--wide      { aspect-ratio: 16 / 9; }
.media--square    { aspect-ratio: 1 / 1; }
.media--landscape { aspect-ratio: 3 / 2; }
.media--tall      { aspect-ratio: 3 / 4; }
.media figcaption { padding: 0.9rem 0.2rem 0; font-size: 0.87rem; color: var(--ink-3); }

/* Hueco de vídeo: mismo marco que una foto, con el botón de play encima */
.media--video { position: relative; }
.media--video::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(10, 26, 17, 0.28);
  transition: background-color 0.25s var(--ease);
}
.marquee__item .media--video .play { width: clamp(48px, 4vw, 62px); }
.media--video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2;
  display: grid; place-items: center;
  width: clamp(64px, 7vw, 88px); aspect-ratio: 1;
  border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(10, 26, 17, 0.35);
  transition: transform 0.25s var(--ease);
}
.media--video .play .icon { width: 42%; height: 42%; margin-left: 8%; }
.media--video:hover::after { background: rgba(10, 26, 17, 0.14); }
.media--video:hover .play { transform: translate(-50%, -50%) scale(1.06); }

/* Carrusel a sangre: avanza solo y se para al pasar el ratón o al tabular.
   La cinta lleva el mismo set de piezas dos veces, así el salto de -50%
   es invisible y el bucle no tiene costura. */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(0.75rem, 1.4vw, 1.1rem);
  animation: marquee 72s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee__item {
  flex: none;
  width: clamp(230px, 24vw, 340px);
}
.marquee__item .media { aspect-ratio: 3 / 4; }
.marquee__item--wide { width: clamp(330px, 36vw, 520px); }
.marquee__item--wide .media { aspect-ratio: 16 / 10; }

/* Sin animación: vuelve a ser una tira que se arrastra con el dedo */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee__track { animation: none; }
  .marquee__item { scroll-snap-align: center; }
}

/* Bloque de color a sangre: el único punto donde la página se va a verde */
.band { background: var(--green); color: var(--on-dark); }
.band--media { position: relative; isolation: isolate; }
.band--media .band__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.band--media .band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band--media .band__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 26, 17, 0.95) 28%, rgba(10, 26, 17, 0.62) 100%);
}

/* 11. Tarjetas y rejillas ----------------------------------------------- */
.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: clamp(1.4rem, 2.5vw, 2rem);
}
.panel--accent { background: var(--accent-soft); border-color: rgba(195, 238, 79, 0.5); }
.panel--plain { background: transparent; }
.on-dark .panel { background: rgba(247, 249, 244, 0.07); border-color: rgba(247, 249, 244, 0.16); }

.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(0.85rem, 1.4vw, 1.15rem);
}
.bento--2 { grid-template-columns: repeat(2, 1fr); }
.bento--3 { grid-template-columns: repeat(3, 1fr); }

.bento__cell {
  position: relative; display: flex; flex-direction: column;
  gap: 0.55rem; min-height: 300px;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--paper); overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.bento__cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.bento__cell > .icon { color: var(--green-2); margin-bottom: auto; }
.bento__cell h3 { margin-top: auto; }
.bento__cell p { color: var(--ink-2); font-size: 0.95rem; }
.bento__cell .more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.92rem; color: var(--green-2); margin-top: 0.3rem;
}
.bento__cell .more .icon { transition: transform 0.2s var(--ease); }
.bento__cell:hover .more .icon { transform: translateX(4px); }

/* La celda destacada se diferencia por el fondo, no por el tamaño:
   la rejilla se mantiene simétrica. */
.bento__cell--photo {
  padding: 0; justify-content: flex-end; border-color: transparent;
  color: var(--on-dark); background: var(--green); isolation: isolate;
}
.bento__cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bento__cell--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10, 26, 17, 0.94) 14%, rgba(10, 26, 17, 0.38) 64%, rgba(10, 26, 17, 0.12));
}
.bento__cell--photo .bento__body {
  position: relative; z-index: 2; padding: clamp(1.4rem, 2.2vw, 1.9rem);
  display: flex; flex-direction: column; gap: 0.55rem; margin-top: auto;
}
.bento__cell--photo p { color: var(--on-dark-2); }
.bento__cell--photo .more { color: var(--accent); }

@media (max-width: 900px) {
  .bento, .bento--2, .bento--3 { grid-template-columns: 1fr; }
  .bento__cell { min-height: 0; }
  .bento__cell--photo { min-height: 320px; }
}

/* 12. Declaración y cifras ---------------------------------------------- */
.statement { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.statement h2 { max-width: 24ch; }
.figures { display: grid; gap: 1.5rem; }
.figure { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.figure__n {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 500;
  color: var(--green-2); letter-spacing: -0.03em;
}
.on-dark .figure__n { color: var(--accent); }
.figure p { font-size: 0.95rem; color: var(--ink-2); margin-top: 0.35rem; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* 13. Proceso ------------------------------------------------------------ */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; }
.flow__item { padding: 1.7rem clamp(1.1rem, 2vw, 1.7rem) 1.9rem; border-left: 1px solid var(--line); }
.flow__item:first-child { border-left-color: var(--green-2); }
.on-dark .flow__item:first-child { border-left-color: var(--accent); }
.flow__item .icon { color: var(--green-2); margin-bottom: 1rem; }
.on-dark .flow__item .icon { color: var(--accent); }
.flow__item h3 { margin-bottom: 0.5rem; }
.flow__item p { font-size: 0.94rem; color: var(--ink-2); }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } }

/* 14. Clasificación de ejemplo ------------------------------------------ */
/* Isla clara: puede ir dentro de un bloque .on-dark sin heredar su texto,
   así que vuelve a declarar los tokens en vez de solo el color. */
.rank {
  --ink:   #0c2116;
  --ink-2: #44564a;
  --ink-3: #59685e;
  --line:  rgba(12, 33, 22, 0.12);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.rank__top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.3rem; border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.rank__title { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.02rem; }
.rank__live { font-size: 0.74rem; letter-spacing: 0.1em; color: var(--green-2); font-weight: 600; }
.rank__row { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 1rem; align-items: center; padding: 0.9rem 1.3rem; }
.rank__row + .rank__row { border-top: 1px solid var(--line); }
.rank__row--lead { background: var(--accent-soft); }
.rank__pos { font-family: 'Geist Mono', monospace; font-size: 0.92rem; color: var(--ink-3); }
.rank__row--lead .rank__pos { color: var(--green-2); }
.rank__name { font-weight: 500; font-size: 0.97rem; }
.rank__score { font-family: 'Geist Mono', monospace; font-size: 1rem; }
.rank__foot { padding: 0.85rem 1.3rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.85rem; }

.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.split--reverse > *:first-child { order: 2; }
.split > div > * + * { margin-top: 1.25rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 0; }
}

/* 15. Listas agrupadas --------------------------------------------------- */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.group h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.group ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.group li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.7rem; font-size: 0.95rem; color: var(--ink-2); }
.group li .icon { color: var(--green-2); width: 1.1rem; height: 1.1rem; margin-top: 0.22rem; }
.on-dark .group li .icon { color: var(--accent); }

/* 16. Especificaciones --------------------------------------------------- */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(0.85rem, 1.4vw, 1.15rem); }
.spec {
  padding: clamp(1.4rem, 2.2vw, 1.8rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
}
.on-dark .spec { background: rgba(247, 249, 244, 0.07); border-color: rgba(247, 249, 244, 0.16); }
.spec .icon { color: var(--green-2); margin-bottom: 0.9rem; }
.on-dark .spec .icon { color: var(--accent); }
.spec__k { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 0.7rem; }
.spec__v { font-family: 'Geist Mono', monospace; font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.spec p { font-size: 0.92rem; color: var(--ink-2); }

/* 17. FAQ ---------------------------------------------------------------- */
.faq { max-width: 70rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; cursor: pointer; list-style: none;
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green-2); }
.faq summary .icon { color: var(--ink-3); transition: transform 0.24s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--green-2); }
.faq__body { padding-bottom: 1.6rem; color: var(--ink-2); max-width: 72ch; }
.faq__body > * + * { margin-top: 0.8rem; }

/* 18. Banda de CTA ------------------------------------------------------- */
/* Plana y a sangre: una franja verde con una línea arriba, sin caja
   redondeada ni degradado radial. */
.cta-band {
  --ink: var(--on-dark);
  --ink-2: var(--on-dark-2);
  --ink-3: var(--on-dark-3);
  --line: rgba(247, 249, 244, 0.18);
  --line-strong: rgba(247, 249, 244, 0.34);
  background: var(--green); color: var(--on-dark);
  border-top: 3px solid var(--accent);
}
.cta-band__inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--on-dark-2); margin-top: 0.9rem; max-width: 48ch; }
@media (max-width: 820px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* 19. Formulario --------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 680px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }   /* label ARRIBA siempre */
.field input, .field select, .field textarea { margin-top: auto; }
.field > label { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.field .req { color: var(--green-2); }
.field__hint { font-size: 0.82rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r-input);
  padding: 0.85rem 0.95rem; font-size: 0.97rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--green-2); outline-offset: 1px;
}
.field__error { display: none; font-size: 0.85rem; color: var(--danger); }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--danger); }
.field[data-invalid="true"] .field__error { display: flex; align-items: center; gap: 0.35rem; }

.check { display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.75rem; align-items: start; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--green-2); }
.check label { font-size: 0.875rem; color: var(--ink-2); }

.form__note { font-size: 0.82rem; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { display: none; gap: 0.6rem; align-items: flex-start; padding: 0.9rem 1rem; border-radius: var(--r-input); font-size: 0.92rem; }
.form__status[data-state="error"] { display: flex; background: rgba(157, 51, 32, 0.08); border: 1px solid rgba(157, 51, 32, 0.4); color: var(--danger); }
.form__status .icon { margin-top: 0.15rem; }

.btn .spin { display: none; }
.btn[data-loading="true"] .spin { display: block; animation: spin 0.9s linear infinite; }
.btn[data-loading="true"] .label-idle { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn[data-loading="true"] .spin { animation-duration: 2.4s; } }

.skeleton {
  background: linear-gradient(90deg, var(--paper-2) 0%, var(--paper-3) 50%, var(--paper-2) 100%);
  background-size: 200% 100%; border-radius: var(--r-input);
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }


/* 19b. Presupuesto: franja verde a pantalla completa ---------------------
   Dos columnas para que el formulario entre entero en el alto de pantalla
   sin hacer scroll. En móvil eso es imposible con seis campos, así que
   ahí la altura vuelve a ser la del contenido. */
.quote {
  background: var(--green); color: var(--on-dark);
  --ink: var(--on-dark); --ink-2: var(--on-dark-2); --ink-3: var(--on-dark-3);
  --line: rgba(247, 249, 244, 0.18); --line-strong: rgba(247, 249, 244, 0.34);
  border-top: 3px solid var(--accent);
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.quote__inner {
  width: 100%;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.quote__copy > * + * { margin-top: 1.1rem; }
.quote__copy h2 { max-width: 15ch; }
.quote__copy .lede { color: var(--on-dark-2); max-width: 42ch; }

.quote__points { list-style: none; padding: 0; display: grid; gap: 0.75rem; margin-top: 1.75rem; }
.quote__points li {
  display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.7rem;
  font-size: 0.95rem; color: var(--on-dark-2);
}
.quote__points .icon { color: var(--accent); width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; }

.quote__direct { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.9rem; }

/* Isla clara: vuelve a declarar los tokens para no heredar el texto del verde */
.quote__card {
  --ink: #0c2116; --ink-2: #44564a; --ink-3: #59685e;
  --line: rgba(12, 33, 22, 0.12); --line-strong: rgba(12, 33, 22, 0.26);
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--r-media);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  box-shadow: 0 30px 70px rgba(5, 16, 10, 0.4);
}
.quote__card .form { gap: 0.9rem; }
.quote__card .form__row { gap: 0.9rem; }
.quote__card .btn { margin-top: 0.35rem; }

@media (max-width: 980px) {
  .quote { min-height: 0; }
  .quote__inner { grid-template-columns: 1fr; }
  .quote__copy h2 { max-width: none; }
}
/* Pantallas bajas: que no se corte el botón de enviar */
@media (max-height: 760px) and (min-width: 981px) {
  .quote { min-height: 0; padding-block: clamp(3rem, 6vw, 5rem); }
}
/* Solo cuando la franja ocupa de verdad la pantalla entera anulamos el
   scroll-padding de html, para que al saltar desde un botón quede pegada
   arriba. En el resto de casos lo dejamos, o la barra fija taparía el
   principio de la sección. */
@media (min-width: 981px) and (min-height: 761px) {
  .quote { scroll-margin-top: -110px; }
}

/* 20. Canales de contacto ------------------------------------------------ */
.channels { display: grid; gap: 0.9rem; }
.channel {
  display: grid; grid-template-columns: 2.7rem 1fr auto; gap: 1rem; align-items: center;
  padding: 1.05rem 1.2rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.channel:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.channel__ico {
  display: grid; place-items: center; width: 2.7rem; height: 2.7rem;
  border-radius: var(--r-pill); background: var(--accent-soft); color: var(--green-2);
}
.channel__k { font-weight: 600; font-size: 0.97rem; }
.channel__v { font-size: 0.87rem; color: var(--ink-3); }
.channel > .icon { color: var(--ink-3); }

/* 21. Pie ---------------------------------------------------------------- */
.footer { background: var(--green); color: var(--on-dark); padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer .brand .icon { color: var(--accent); }
.footer h2 {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-3); font-family: 'Geist', sans-serif; font-weight: 600; margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.footer a { font-size: 0.93rem; color: var(--on-dark-2); }
.footer a:hover { color: var(--accent); }
.footer__intro p { font-size: 0.93rem; color: var(--on-dark-2); margin-top: 0.9rem; max-width: 34ch; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer__social a {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid rgba(247, 249, 244, 0.26); border-radius: var(--r-pill);
}
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 249, 244, 0.16);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--on-dark-3);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* 22. Barra fija móvil --------------------------------------------------- */
.mobilebar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-mobilebar);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); gap: 0.5rem;
  box-shadow: 0 -8px 24px rgba(12, 33, 22, 0.08);
}
.mobilebar .btn { flex: 1; padding-inline: 0.75rem; }
@media (max-width: 760px) { .mobilebar { display: flex; } body { padding-bottom: 4.75rem; } }

/* 22b. WhatsApp flotante ------------------------------------------------ */
.wa-float {
  position: fixed; right: var(--gutter); bottom: var(--gutter);
  z-index: var(--z-mobilebar);
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: var(--r-pill);
  background: #25d366; color: #0b1f14;
  box-shadow: 0 10px 28px rgba(10, 26, 17, 0.3);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 36px rgba(10, 26, 17, 0.38); }
.wa-float:active { transform: translateY(0) scale(0.97); }
@media (max-width: 760px) {
  /* por encima de la barra fija de conversión */
  .wa-float { bottom: calc(4.75rem + 0.6rem); width: 50px; height: 50px; }
  .wa-float .icon { width: 26px; height: 26px; }
}

/* 23. Banner de cookies -------------------------------------------------- */
.cookiebar {
  position: fixed; z-index: var(--z-cookie);
  left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  max-width: 44rem; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-input); box-shadow: var(--shadow-lg);
  padding: clamp(1.1rem, 2vw, 1.4rem); display: none;
}
.cookiebar[data-open="true"] { display: block; }
.cookiebar h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.cookiebar p { font-size: 0.89rem; color: var(--ink-2); }
.cookiebar .btn-row { margin-top: 1.1rem; }
.cookiebar__prefs { display: none; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); gap: 1rem; }
.cookiebar[data-prefs="true"] .cookiebar__prefs { display: grid; }
@media (max-width: 760px) { .cookiebar { bottom: calc(4.75rem + 0.5rem); } }

/* 24. Varios ------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0.85rem; border-radius: var(--r-pill);
  background: var(--accent-soft); border: 1px solid rgba(195, 238, 79, 0.5);
  font-size: 0.82rem; font-weight: 600; color: var(--green-2);
}
.pagehead { padding-block: clamp(7rem, 11vw, 9rem) clamp(2rem, 4vw, 3rem); }
.pagehead h1 { max-width: 26ch; }
.pagehead .lede { margin-top: 1.25rem; }
.crumbs { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--green-2); }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2.75rem; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.55rem; }
.prose .todo {
  display: block; padding: 1rem 1.15rem;
  background: var(--accent-soft); border: 1px dashed rgba(195, 238, 79, 0.7);
  border-radius: var(--r-input); font-size: 0.9rem; color: var(--ink);
}

/* 25. Movimiento --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); }
  .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
    transition-delay: var(--d, 0ms);
  }
}
.no-js .reveal { opacity: 1; transform: none; }
