/* ==========================================================
   BITPANDA — PROPOSAL MOCKUP v3
   BAST Estudio · 2026-04-26 · Nyx
   Stack: HTML/CSS/JS vanilla · sin frameworks
   Tipografía target: Untitled Serif + Söhne (Klim Foundry)
   Fallbacks activos: Libre Baskerville + IBM Plex Sans
   ========================================================== */

/* ----------------------------------------------------------
   0. RESET BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* overflow-x en html, NUNCA en body (lección iOS Safari) */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  background-color: var(--color-bone);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* ----------------------------------------------------------
   1. DESIGN TOKENS — CSS CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  /* Paleta */
  --color-bone:         #F5F0E8;
  --color-brand-green:  #0D6B47;
  --color-terracota:    #B56A4A;
  --color-amber-soft:   #D4A574;
  --color-ink:          #0A1A12;
  --color-mint-dim:     #1A3D2A;
  --color-mono-tick:    #3EE08A;
  --color-bone-dim:     #E8E3DA;

  /* Tipografía — targets (Klim Foundry) con fallbacks activos */
  --font-display:  'Untitled Serif', 'Libre Baskerville', Georgia, serif;
  --font-body:     'Söhne', 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace;

  /* Escala tipográfica */
  --text-hero:   clamp(2.5rem, 5.5vw, 5rem);
  --text-xl:     clamp(1.75rem, 3vw, 2.5rem);
  --text-lg:     clamp(1.25rem, 2vw, 1.5rem);
  --text-base:   clamp(1rem, 1.5vw, 1.125rem);
  --text-sm:     0.875rem;
  --text-xs:     0.8125rem;
  --text-mono:   0.8125rem;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  /* Motion */
  --ease-out-strong:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart:    cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);

  --dur-fast:   150ms;
  --dur-base:   220ms;
  --dur-slow:   500ms;
  --dur-reveal: 600ms;

  /* Layout */
  --max-width: 1440px;
  --nav-height: 68px;
}

/* ----------------------------------------------------------
   2. NAV
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 26, 18, 0.06);
  transition: background var(--dur-base) var(--ease-out-quart),
              border-color var(--dur-base) var(--ease-out-quart);
}

/* Sticky nav — cuando está sobre secciones oscuras */
.nav.nav--dark {
  background: rgba(10, 26, 18, 0.92);
  border-bottom-color: rgba(245, 240, 232, 0.08);
}

.nav--dark .nav__link,
.nav--dark .nav__login {
  color: var(--color-bone);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo-svg {
  width: 100px;
  height: 24px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: var(--space-sm);
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(10, 26, 18, 0.7);
  letter-spacing: 0.01em;
  transition: color var(--dur-fast) ease;
}

.nav__link:hover {
  color: var(--color-brand-green);
}

.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__login {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(10, 26, 18, 0.6);
  transition: color var(--dur-fast) ease;
}

.nav__login:hover {
  color: var(--color-ink);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform var(--dur-base) var(--ease-out-strong),
              opacity var(--dur-base) ease;
}

/* Mobile nav overlay */
.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bone);
  padding: calc(var(--nav-height) + var(--space-md)) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
}

.nav__mobile[hidden] {
  display: none;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nav__mobile-link {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-ink);
}

/* ----------------------------------------------------------
   3. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    background var(--dur-fast) ease,
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    transform var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-brand-green);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-brand-green);
  color: var(--color-bone);
  font-size: var(--text-sm);
  padding: 0.75rem 1.5rem;
  border-radius: 24px;
}

.btn--primary:hover {
  background: #0a5a3b;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 107, 71, 0.3);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.125rem;
}

/* FIX 6: ghost btn — bone sobre mobile dark, ink sobre desktop bone */
.btn--ghost {
  background: transparent;
  /* Mobile default: texto bone (sobre overlay dark) */
  color: rgba(245, 240, 232, 0.75);
  font-size: var(--text-sm);
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(245, 240, 232, 0.3);
  border-radius: 24px;
  letter-spacing: 0.01em;
}

.btn--ghost:hover {
  color: var(--color-bone);
  border-color: rgba(245, 240, 232, 0.7);
}

.btn--outline {
  background: transparent;
  color: var(--color-brand-green);
  font-size: var(--text-sm);
  padding: 0.75rem 1.5rem;
  border-radius: 24px;
  border: 1.5px solid var(--color-brand-green);
}

.btn--outline:hover {
  background: var(--color-brand-green);
  color: var(--color-bone);
}

/* FIX 8: CTA BAST — pill verde grande, es el CTA real del run */
.btn--bast {
  font-size: 1rem;
  padding: 1rem 2.5rem;
  font-weight: 600;
}

/* ----------------------------------------------------------
   4. HERO
   Foto full-bleed, texto flotando sobre el overlay gradient
   Desktop: foto full-bleed, texto en columna izquierda ~50% del viewport
   Mobile: foto full-bleed, overlay dark desde abajo, texto en zona inferior
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

/* Media: fondo full-bleed */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Desktop: mujer visible en zona derecha */
  object-position: 70% center;
}

/* Overlay desktop: gradient horizontal bone→transparent */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      var(--color-bone) 0%,
      rgba(245, 240, 232, 0.92) 18%,
      rgba(245, 240, 232, 0.70) 30%,
      rgba(245, 240, 232, 0.25) 42%,
      transparent 55%
    );
  pointer-events: none;
}

/* Grain overlay sobre el hero completo */
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* FIX 1 MOBILE: Trust strip flotante sobre la foto arriba
   Solo visible en mobile — oculto en desktop */
.hero__trust-mobile {
  display: none; /* hidden en desktop — mobile media query lo activa con display: flex */
  position: absolute;
  z-index: 4;
  top: calc(var(--nav-height) + 16px);
  left: 0;
  right: 0;
  padding: 0 var(--space-md);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__trust-mobile sup {
  font-size: 0.7em;
  vertical-align: super;
  color: rgba(255, 255, 255, 0.55);
}

.hero__trust-mobile-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Copy — flota sobre la foto, posicionado a la izquierda
   FIX 2: centrado vertical en ~50% del viewport */
.hero__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  /* FIX 2: padding-top generoso para centrar el bloque texto ~50% visual */
  padding-top: calc(var(--nav-height) + 4vh);
  width: 50%;
  padding-left: clamp(var(--space-md), 6vw, var(--space-xl));
  padding-right: var(--space-lg);
  padding-bottom: var(--space-xl);
  gap: 1.5rem;
}

/* ----------------------------------------------------------
   Trust strip (desktop)
   ---------------------------------------------------------- */
.trust-strip-mono {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: rgba(10, 26, 18, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.trust-strip-mono__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-right: 5px;
}

.trust-strip-mono__sep {
  color: rgba(10, 26, 18, 0.3);
  margin: 0 2px;
}

/* ----------------------------------------------------------
   data-value — valores bold con asterisco superscript verde
   ---------------------------------------------------------- */
.data-value {
  font-weight: 700;
  color: var(--color-ink);
  font-style: normal;
}

.data-asterisk {
  font-family: var(--font-mono);
  font-size: 0.6em;
  color: var(--color-brand-green);
  font-weight: 400;
  vertical-align: super;
  line-height: 0;
}

.data-value--light {
  color: var(--color-bone);
  font-weight: 700;
}

.data-asterisk--light {
  color: var(--color-mono-tick);
}

.data-asterisk--dim {
  color: rgba(245, 240, 232, 0.3);
}

/* ----------------------------------------------------------
   FIX 3: Hero headline — spans por línea para stagger de entrada
   Base state: visible (animación controlada por JS via hero-line clases)
   ---------------------------------------------------------- */
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  max-width: 12ch;
  display: flex;
  flex-direction: column;
}

.hero__headline em {
  font-style: italic;
  color: var(--color-terracota);
  display: inline;
}

/* hero-line: unidad de animación de entrada */
.hero-line {
  display: block;
  /* Estado inicial para la animación de entrada (JS la activa) */
}

/* Hero sub */
.hero__sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(10, 26, 18, 0.7);
  max-width: 36ch;
}

/* CTA cluster */
.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

/* FIX 1 MOBILE: scroll-down indicator
   Solo visible en mobile — oculto en desktop */
.hero__scroll-cue {
  display: none; /* visible en mobile via media query */
  justify-content: center;
  align-items: center;
  margin-top: var(--space-md);
  opacity: 0.6;
  color: rgba(245, 240, 232, 0.85);
}

.hero__scroll-cue svg {
  width: 20px;
  height: 20px;
}

/* ----------------------------------------------------------
   5. SECTION — LIGHT / ASPIRATION
   FIX 2: centrado vertical con padding generoso
   ---------------------------------------------------------- */
.section--light {
  background-color: var(--color-bone);
  color: var(--color-ink);
}

.section--aspiration {
  /* FIX 2: padding generoso para centrar el contenido verticalmente */
  padding: var(--space-xl) 0;
  display: flex;
  align-items: center;
  min-height: 70vh;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(var(--space-md), 6vw, var(--space-xl));
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-xl);
  align-items: center; /* FIX 2: centra contenido verticalmente dentro del grid */
  width: 100%;
}

.section__headline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.section__sub {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(10, 26, 18, 0.65);
  max-width: 44ch;
  margin-bottom: var(--space-lg);
}

/* ----------------------------------------------------------
   FIX 5: Bullets clean — flex column simple, sin grid ni tabla
   ---------------------------------------------------------- */
.bullets--clean {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
}

.bullets--clean li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(10, 26, 18, 0.8);
}

.bullets--clean li p {
  margin: 0;
  flex: 1;
}

.bullet-icon {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-brand-green);
  font-weight: 600;
  line-height: 1.6;
  margin-top: 1px;
}

/* Stats grid */
.aspiration__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-sm);
  padding-top: var(--space-md);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-md);
  border: 1px solid rgba(10, 26, 18, 0.1);
  border-radius: 12px;
  background: rgba(10, 26, 18, 0.02);
  transition: border-color var(--dur-base) ease,
              background var(--dur-base) ease;
}

.stat-card:hover {
  border-color: rgba(13, 107, 71, 0.25);
  background: rgba(13, 107, 71, 0.04);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.stat-card__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(10, 26, 18, 0.5);
  line-height: 1.4;
}

/* ----------------------------------------------------------
   6. PIVOT — transición cromática
   ---------------------------------------------------------- */
.section--pivot {
  position: relative;
  min-height: 60dvh;
  background:
    linear-gradient(
      180deg,
      var(--color-bone)         0%,
      #D8E4DC                   18%,
      #3D6B50                   38%,
      #1A3D2A                   58%,
      var(--color-ink)          100%
    );
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
}

.section--pivot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/transition.jpeg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.85;
  pointer-events: none;
}

/* Scroll-Driven Animation API — progressive enhancement */
.section--pivot {
  animation: pivot-opacity linear both;
  animation-timeline: view();
  animation-range: entry 0% exit 60%;
}

@keyframes pivot-opacity {
  from { opacity: 0.85; }
  to   { opacity: 1; }
}

@supports not (animation-timeline: scroll()) {
  .section--pivot {
    animation: none;
    opacity: 1;
  }
}

.pivot__editorial {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.pivot__quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-bone);
  text-shadow: 0 1px 24px rgba(10, 26, 18, 0.45);
  max-width: 18ch;
}

.pivot__quote em {
  font-style: italic;
  color: var(--color-amber-soft);
}

/* FIX 4: Rotating word — inline-block con min-width fijo para evitar reflow */
.pivot__rotating-word {
  display: inline-block;
  /* "homeowner" (9 chars) es la más larga: ~9ch a este tamaño de fuente.
     Reservamos el ancho con un valor generoso y fixed para evitar layout shift.
     text-align: center distribuye el espacio simétricamente — palabras cortas
     no dejan hueco visible a la derecha antes de "you become". */
  min-width: 6.5ch; /* calibrado para "homeowner" en display serif clamp(1.75rem→3.5rem) */
  text-align: center;
  vertical-align: baseline;
  font-style: italic;
  color: var(--color-amber-soft);
  /* Transition CSS para la salida/entrada — completada con JS cambiando opacity y transform */
  transition:
    opacity 350ms ease-out,
    transform 350ms ease-out,
    filter 350ms ease-out;
}

.pivot__rotating-word[data-exiting="true"] {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(4px);
}

.pivot__rotating-word[data-entering="true"] {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
}

/* Scroll cue — flecha sutil interactiva */
.pivot__scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
  transition: color var(--dur-fast) ease, opacity var(--dur-fast) ease;
  opacity: 0.5;
}

.pivot__scroll-cue:hover,
.pivot__scroll-cue:focus-visible {
  opacity: 1;
  color: var(--color-bone);
  outline: none;
}

.pivot__scroll-cue:focus-visible {
  outline: 2px solid var(--color-mono-tick);
  outline-offset: 4px;
  border-radius: 4px;
}

.pivot__scroll-cue svg {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  .pivot__scroll-cue svg {
    animation: bounce-arrow 2s var(--ease-out-quart) infinite;
  }

  @keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
  }
}

/* ----------------------------------------------------------
   7. SECTION — DARK / PLATFORM
   ---------------------------------------------------------- */
.section--dark {
  background-color: var(--color-ink);
  color: var(--color-bone);
  position: relative;
}

/* Vignette atmosférica en zona dark */
.section--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 0;
}

.section--platform {
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.section__inner--dark {
  position: relative;
  z-index: 1;
}

.section__headline--dark {
  color: var(--color-bone);
  font-size: var(--text-xl);
}

.section__sub--dark {
  color: rgba(245, 240, 232, 0.6);
  max-width: 44ch;
  margin-bottom: var(--space-lg);
}

/* Platform asset grid */
.platform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.asset-card {
  padding: var(--space-md);
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 12px;
  background: rgba(245, 240, 232, 0.04);
  transition: border-color var(--dur-base) ease,
              background var(--dur-base) ease;
}

.asset-card:hover {
  border-color: rgba(62, 224, 138, 0.25);
  background: rgba(62, 224, 138, 0.06);
}

.asset-card--highlight {
  border-color: rgba(13, 107, 71, 0.4);
  background: rgba(13, 107, 71, 0.08);
}

.asset-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.asset-card__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(245, 240, 232, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.asset-card__ticker {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.asset-card__ticker.ticker--up {
  color: var(--color-mono-tick);
}

.asset-card__ticker.ticker--neutral {
  color: rgba(245, 240, 232, 0.4);
}

.asset-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.65);
}

.mono-data {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
}

/* ----------------------------------------------------------
   FIX 8: SECCIÓN BAST — entre platform y footer
   Fondo ink con grain sutil, padding generoso
   ---------------------------------------------------------- */
.section--bast {
  padding: 120px 0;
  /* Grain sutil opcional sobre el ink */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.bast__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(var(--space-md), 6vw, var(--space-xl));
  position: relative;
  z-index: 1;
}

.bast__divider-top {
  width: 80%;
  height: 1px;
  background: rgba(245, 240, 232, 0.1);
  margin-bottom: var(--space-xl);
}

.bast__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.bast__headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-bone);
}

.bast__body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.85);
  max-width: 600px;
}

.bast__divider {
  width: 80%;
  height: 1px;
  background: rgba(245, 240, 232, 0.15);
  margin: var(--space-xl) 0 var(--space-md);
}

.bast__sprint {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bast__sprint-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bast__sprint-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px var(--space-xl);
  width: fit-content;
}

.bast__sprint-key {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.55);
  letter-spacing: 0.01em;
}

.bast__sprint-val {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.85);
  letter-spacing: 0.01em;
}

/* ----------------------------------------------------------
   8. FOOTER
   ---------------------------------------------------------- */
.footer {
  padding: var(--space-lg) 0 var(--space-xl);
  border-top: 1px solid rgba(245, 240, 232, 0.08);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(var(--space-md), 6vw, var(--space-xl));
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.01em;
}

.footer__disclaimer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.25);
  max-width: 80ch;
}

/* FIX 7: Footnote en inglés */
.footer__footnote {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.3);
  letter-spacing: 0.02em;
  max-width: 80ch;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  padding-top: var(--space-sm);
  margin-top: var(--space-xs);
}

/* ----------------------------------------------------------
   9. BADGE FIJO — PROPOSAL MOCKUP · BAST ESTUDIO
   ---------------------------------------------------------- */
.proposal-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(10, 26, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 240, 232, 0.15);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--dur-fast) ease,
              color var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
}

.proposal-badge:hover {
  background: rgba(13, 107, 71, 0.85);
  color: var(--color-bone);
  border-color: rgba(245, 240, 232, 0.3);
}

.proposal-badge:focus-visible {
  outline: 2px solid var(--color-mono-tick);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   10. MOTION — SCROLL REVEAL
   Pattern 1: translateY(12px) + opacity, IntersectionObserver
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity  var(--dur-reveal) var(--ease-out-strong),
      transform var(--dur-reveal) var(--ease-out-strong);
  }

  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger por data-delay (delta: 80ms) */
  .reveal[data-delay="0"] { transition-delay: 0ms; }
  .reveal[data-delay="1"] { transition-delay: 80ms; }
  .reveal[data-delay="2"] { transition-delay: 160ms; }
  .reveal[data-delay="3"] { transition-delay: 240ms; }
}

/* FIX 9: prefers-reduced-motion — solo fade, sin translate */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 0;
    transform: none;
    transition: opacity 200ms ease-out;
  }
  .reveal.in-view {
    opacity: 1;
  }

  /* Scroll cue sin animación bounce */
  .pivot__scroll-cue svg {
    animation: none;
  }

  /* Rotating word: estática, sin transición */
  .pivot__rotating-word {
    transition: none;
  }

  /* Hero scroll cue sin bounce */
  .hero__scroll-cue svg {
    animation: none;
  }
}

/* Elementos que NO pasan por reveal */
.hero__grain,
.hero__media,
.section--pivot {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* FIX 3: hero-line — animación de entrada del headline
   Base state (antes del font load): invisible
   JS activa .hero-line--visible en cada span staggered */
@media (prefers-reduced-motion: no-preference) {
  .hero-line {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(8px);
    transition:
      opacity  800ms var(--ease-out-strong),
      transform 800ms var(--ease-out-strong),
      filter   800ms var(--ease-out-strong);
  }

  .hero-line.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Fallback sin motion: hero visible sin animación */
@media (prefers-reduced-motion: reduce) {
  .hero-line {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 200ms ease-out;
  }

  .hero-line.visible {
    opacity: 1;
  }
}

/* FIX 1 MOBILE: scroll-down indicator — bounce animation */
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll-cue svg {
    animation: scroll-bounce 2s ease-in-out infinite;
  }

  @keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
  }
}

/* ----------------------------------------------------------
   11. RESPONSIVE — 375 / 768 / 1024 / 1440
   ---------------------------------------------------------- */

/* FIX 6: ghost btn — desktop bone background → ink text para contraste */
@media (min-width: 1024px) {
  .btn--ghost {
    color: var(--color-ink);
    border-color: rgba(10, 26, 18, 0.25);
  }

  .btn--ghost:hover {
    color: var(--color-ink);
    border-color: var(--color-ink);
    background: rgba(10, 26, 18, 0.05);
  }
}

/* 1440px (desktop target) */
@media (min-width: 1440px) {
  .hero__copy {
    padding-left: var(--space-2xl);
  }
}

/* 1024px — laptop */
@media (max-width: 1024px) {
  .hero__copy {
    width: 55%;
    padding-left: var(--space-lg);
    padding-right: var(--space-md);
  }

  .section__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .aspiration__stats {
    gap: var(--space-sm);
  }

  .pivot__quote {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
  }
}

/* 768px — tablet / mobile */
@media (max-width: 768px) {
  :root {
    --text-hero: clamp(2.25rem, 9vw, 3.75rem);
    --text-xl:   clamp(1.5rem, 5vw, 2rem);
  }

  /* Nav */
  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* ----------------------------------------------------------
     FIX 1 MOBILE: Hero rearquitectura completa
     Foto full-bleed + overlay dark desde abajo + texto zona inferior
     Orden vertical: trust strip arriba (sobre foto) → headline → sub → CTA → scroll cue
     ---------------------------------------------------------- */
  .hero {
    min-height: 100dvh;
  }

  /* FIX 1: object-position centrado para que la mujer entre en frame */
  .hero__image {
    object-position: 60% center;
  }

  /* FIX 1: Overlay mobile — dark desde abajo, claro arriba (no tapa la mujer) */
  .hero__overlay {
    background:
      linear-gradient(
        180deg,
        transparent                    0%,
        transparent                    40%,
        rgba(10, 26, 18, 0.70)        100%
      );
  }

  /* FIX 1: Trust strip mobile — visible, blanco sobre foto */
  .hero__trust-mobile {
    display: flex;
    align-items: center;
  }

  /* FIX 1: trust strip desktop — oculto en mobile (reemplazado por el mobile version) */
  .trust-strip-mono {
    display: none;
  }

  /* FIX 1: copy en zona inferior */
  .hero__copy {
    width: 100%;
    justify-content: flex-end;
    padding: var(--space-sm) var(--space-md) var(--space-lg);
    min-height: 100dvh;
    gap: var(--space-sm);
    /* Reset el padding-top override del desktop */
    padding-top: var(--space-sm);
  }

  /* Headline en mobile: bone sobre fondo dark */
  .hero__headline {
    color: var(--color-bone);
    max-width: none;
    font-size: var(--text-hero);
  }

  .hero__headline em {
    color: var(--color-amber-soft);
  }

  /* Sub en mobile */
  .hero__sub {
    color: rgba(245, 240, 232, 0.82);
    font-size: clamp(0.9375rem, 3.5vw, 1.0625rem);
    max-width: none;
  }

  /* FIX 1: CTAs mobile — más sutiles, no full-width */
  .cta-cluster {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .cta-cluster .btn--primary {
    /* Tamaño medio, no full-width */
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
  }

  /* FIX 6: ghost btn en mobile — bone sobre dark overlay */
  .cta-cluster .btn--ghost {
    color: rgba(245, 240, 232, 0.75);
    border-color: rgba(245, 240, 232, 0.3);
    padding: 0.625rem 1.125rem;
    font-size: var(--text-sm);
  }

  /* FIX 1: scroll-down indicator — visible en mobile */
  .hero__scroll-cue {
    display: flex;
  }

  /* Sections en mobile */
  .section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .aspiration__stats {
    grid-template-columns: 1fr 1fr;
  }

  .platform__grid {
    grid-template-columns: 1fr;
  }

  /* Pivote en mobile */
  .section--pivot {
    min-height: 70dvh;
    padding: var(--space-lg) var(--space-md);
  }

  .pivot__quote {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    max-width: 22ch;
  }

  /* FIX 8: BAST section mobile */
  .section--bast {
    padding: 80px 0;
  }

  /* Badge arriba en mobile para no tapar CTA */
  .proposal-badge {
    bottom: auto;
    top: calc(var(--nav-height) + 12px);
    right: 12px;
  }

  /* FIX 2: aspiration section — centrado vertical en mobile */
  .section--aspiration {
    min-height: auto;
    padding: var(--space-lg) 0;
  }
}

/* 375px — mobile S */
@media (max-width: 375px) {
  :root {
    --text-hero: 2.5rem;
  }

  .hero__copy {
    padding: var(--space-sm) var(--space-sm) var(--space-md);
  }

  .aspiration__stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
  }

  .stat-card {
    padding: var(--space-sm);
  }

  .stat-card__value {
    font-size: var(--text-lg);
  }
}

/* ----------------------------------------------------------
   12. PRINT
   ---------------------------------------------------------- */
@media print {
  .nav,
  .proposal-badge,
  .hero__grain {
    display: none;
  }
}
