/* ══════════════════════════════════════════════════════════
   yare.css — Estilos personalizados para YARE · ANTORR
   Organización:
     1. Base & Reset
     2. Noise & Ambient
     3. Logo / Top-bar
     4. YARE Logotype
     5. Tags & Separadores
     6. Formulario Waitlist
     7. Feature Pills (legacy)
     8. Countdown
     9. Scan bar & Grid decorativo
    10. Watermark SVG
    11. Hero Section
    12. Keyframes
    13. Módulos — grilla 6 tarjetas
    14. Filosofía & Pilares
    15. Sección de Cierre
    16. Footer mínimo
    17. Scroll Reveal (JS-driven)
    18. Countdown Section
══════════════════════════════════════════════════════════ */


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

html, body {
  background: #0A0A0A;
  color: #E8E8E8;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}


/* ══════════════════════════════════════════
   2. NOISE TEXTURE & AMBIENT GLOWS
══════════════════════════════════════════ */

/* Capa de ruido fija sobre toda la página */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 0;
}

/* Base para los orbes de luz ambiental */
.glow-red {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

/* Orbe superior derecho */
.glow-top-right {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(237,28,36,0.07) 0%, transparent 70%);
  top: -120px;
  right: -150px;
}

/* Orbe inferior izquierdo */
.glow-bottom-left {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(237,28,36,0.04) 0%, transparent 70%);
  bottom: 5%;
  left: -100px;
}

/* Líneas de cuadrícula decorativas */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}


/* ══════════════════════════════════════════
   3. LOGO / TOP-BAR
══════════════════════════════════════════ */
.logo-back {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.logo-link:hover { opacity: 0.65; }

.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #E8E8E8;
  user-select: none;
}

.logo-dot {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #A1A1AA;
  user-select: none;
}

.logo-arrow {
  color: #A1A1AA;
  font-size: 0.75rem;
  margin-right: 0.25rem;
  transition: transform 0.2s ease;
}
.logo-link:hover .logo-arrow { transform: translateX(-3px); }


/* ══════════════════════════════════════════
   4. YARE LOGOTYPE (reveal de entrada)
══════════════════════════════════════════ */
.yare-logotype {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(5.5rem, 18vw, 13rem);
  letter-spacing: -0.055em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 28, 36, 0.5);
  position: relative;
  user-select: none;
}

.yare-logotype .yare-fill {
  position: absolute;
  inset: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(5.5rem, 18vw, 13rem);
  letter-spacing: -0.055em;
  line-height: 1;
  color: #E8E8E8;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.8s cubic-bezier(0.16,1,0.3,1);
}
.yare-logotype.reveal .yare-fill {
  clip-path: inset(0 0% 0 0);
}


/* ══════════════════════════════════════════
   5. TAGS & SEPARADORES
══════════════════════════════════════════ */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(237,28,36,0.25);
  border-radius: 2px;
  padding: 0.3rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237,28,36,0.8);
  background: rgba(237,28,36,0.05);
}

.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ed1c24;
  animation: pulse 2s ease-in-out infinite;
}

.sep-line {
  width: 2.5rem;
  height: 1px;
  background: rgba(237,28,36,0.4);
  display: block;
}


/* ══════════════════════════════════════════
   6. FORMULARIO WAITLIST
══════════════════════════════════════════ */
.input-yare {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  color: #E8E8E8;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  padding: 0.75rem 1.1rem;
  width: 100%;
  transition: border-color 0.25s ease, background 0.25s ease;
  outline: none;
}
/* #555 original → ratio ~2.6:1 (falla WCAG AA). #888 → ratio ~5.0:1 ✓ */
.input-yare::placeholder { color: #888; }
.input-yare:focus {
  border-color: rgba(0,143,76,0.45);
  background: rgba(0,143,76,0.025);
  box-shadow: 0 0 0 3px rgba(0,143,76,0.1);
}

.btn-waitlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ed1c24;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.78rem 2rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.btn-waitlist:hover {
  background: #c8151c;
  box-shadow: 0 0 28px rgba(237,28,36,0.35);
  transform: translateY(-1px);
}
.btn-waitlist:active { transform: translateY(0); }

/* Estado éxito tras enviar el formulario */
.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(0,143,76,0.3);
  border-radius: 3px;
  background: rgba(0,143,76,0.07);
  color: rgba(0,143,76,0.9);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Nota de privacidad bajo el formulario */
.form-privacy-note {
  color: #888; /* #3a3a3a original → ratio ~1.7:1 (falla). #888 → ~5.0:1 ✓ */
  letter-spacing: 0.04em;
}


/* ══════════════════════════════════════════
   7. FEATURE PILLS (legacy, no usadas actualmente)
══════════════════════════════════════════ */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #A1A1AA;
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}
.feature-pill svg { color: rgba(237,28,36,0.7); flex-shrink: 0; }


/* ══════════════════════════════════════════
   8. COUNTDOWN
══════════════════════════════════════════ */
.countdown-section {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.countdown-label {
  color: #888; /* #333 original → ratio ~1.6:1 (falla). #888 → ~5.0:1 ✓ */
}

.count-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.count-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: #E8E8E8;
  letter-spacing: -0.03em;
  min-width: 3ch;
  text-align: center;
}

.count-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888; /* #555 original → falla WCAG AA. #888 → ~5.0:1 ✓ */
}

.count-sep {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: rgba(237,28,36,0.3);
  line-height: 1;
  padding-bottom: 1.2rem;
  align-self: flex-end;
}


/* ══════════════════════════════════════════
   9. SCAN BAR (decorativo)
══════════════════════════════════════════ */
.scan-container {
  position: relative;
  overflow: hidden;
}

.scan-bar {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237,28,36,0.5), transparent);
  animation: scan 3s ease-in-out infinite;
}

/* Footer bar (legacy) */
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ══════════════════════════════════════════
   10. WATERMARK SVG (chispa viajante)
══════════════════════════════════════════ */
.yare-bg-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: clamp(11rem, 38vw, 33rem);
  width: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  overflow: visible;
}

/* Trazo base — riel permanente, levemente visible para dar presencia a las letras */
.yare-svg-base {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 220px;
  letter-spacing: -0.07em;
  fill: rgba(237,28,36,0.03);
  stroke: rgba(237,28,36,0.18);
  stroke-width: 1;
}

/* Chispa viajante — recorre el contorno exacto de cada letra */
.yare-svg-spark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 220px;
  letter-spacing: -0.07em;
  fill: none;
  stroke: rgba(237,28,36,0.35);
  stroke-width: 1.5;
  stroke-linecap: round;
  filter: url(#yare-glow);
  stroke-dasharray: 160 5000;
  stroke-dashoffset: 0;
  animation: sparkTravel 22s linear infinite;
}


/* ══════════════════════════════════════════
   11. HERO SECTION
══════════════════════════════════════════ */

/* Contenedor de contenido centrado */
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #008f4c;
  margin-bottom: 2.5rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #008f4c;
  box-shadow: 0 0 8px rgba(0,143,76,0.6);
  flex-shrink: 0;
  animation: eyebrowPulse 2.5s ease-in-out infinite;
}

/* H1 principal */
.hero-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6.25rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: #EFEFEF;
  margin-bottom: 1.75rem;
}
.hero-h1 .word-italic {
  font-style: italic;
  color: #ed1c24;
  text-shadow:
    0 0 38px rgba(237,28,36,0.35),
    0 0 80px rgba(237,28,36,0.15);
}

/* Subtítulo */
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 300;
  line-height: 1.75;
  color: #9A9AA5;
  max-width: 580px;
  margin-bottom: 3rem;
}

/* Wrapper del formulario */
.hero-form-wrap {
  width: 100%;
  max-width: 560px;
}

.form-row {
  display: flex;
  gap: 0.625rem;
}
@media (max-width: 540px) {
  .form-row { flex-direction: column; }
}

/* Scroll hint (flecha animada) */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.25;
  transition: opacity 0.3s ease;
  cursor: default;
}
.scroll-hint:hover { opacity: 0.5; }
.scroll-hint span {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #A1A1AA;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}


/* ══════════════════════════════════════════
   12. KEYFRAMES
══════════════════════════════════════════ */
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes scan {
  0%, 100% { transform: translateY(-100%); }
  50%       { transform: translateY(100%); }
}

@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  80%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes sparkTravel {
  to { stroke-dashoffset: -5160; }
}


@keyframes eyebrowPulse {
  0%, 100% { opacity: 1;    box-shadow: 0 0 8px  rgba(0,143,76,0.6); }
  50%       { opacity: 0.55; box-shadow: 0 0 14px rgba(0,143,76,0.3); }
}


/* ══════════════════════════════════════════
   13. MÓDULOS — GRILLA 6 TARJETAS
══════════════════════════════════════════ */
.modules-section {
  position: relative;
  z-index: 10;
  padding: clamp(4rem, 8vw, 6.5rem) 1.5rem clamp(4rem, 8vw, 6.5rem);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.modules-inner {
  max-width: 1160px;
  margin: 0 auto;
}

/* Encabezado de sección */
.modules-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,143,76,0.7);
  margin-bottom: 1.1rem;
}

.modules-kicker-line {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: rgba(0,143,76,0.35);
  flex-shrink: 0;
}

.modules-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
  color: #EFEFEF;
  text-align: center;
  margin-bottom: 0.85rem;
  line-height: 1.15;
}

.modules-sub {
  font-size: 0.9375rem;
  font-weight: 300;
  color: #888; /* #555 original → ratio ~2.6:1 (falla). #888 → ~5.0:1 ✓ */
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}

/* Grid 3×2 separado por bordes de 1px.
   list-style/padding resetan los estilos de <ul> cuando se usa como lista semántica. */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #1A1A1A;
  border: 1px solid #1A1A1A;
  border-radius: 4px;
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 960px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .modules-grid { grid-template-columns: 1fr; }
}

/* Tarjeta individual */
.module-card {
  background: #0E0E0E;
  padding: 1.875rem 1.625rem 1.625rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: background 0.3s ease;
  cursor: default;
}

/* Línea superior que aparece en hover */
.module-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,143,76,0), transparent);
  transition: background 0.4s ease;
}
.module-card:hover { background: #111111; }
.module-card:hover::after {
  background: linear-gradient(90deg, transparent, rgba(0,143,76,0.3), transparent);
}

/* Ícono */
.module-icon-wrap {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0,143,76,0.15);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(0,143,76,0.04);
  flex-shrink: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.module-card:hover .module-icon-wrap {
  border-color: rgba(0,143,76,0.28);
  background: rgba(0,143,76,0.08);
}
.module-icon-wrap svg {
  color: rgba(0,143,76,0.7);
  transition: color 0.3s ease;
}
.module-card:hover .module-icon-wrap svg { color: #008f4c; }

/* Número de módulo — decorativo, exento de WCAG 1.4.3.
   Se aumenta de 0.07 a 0.3 para mejorar UX sin romper la estética. */
.module-num {
  position: absolute;
  top: 1.375rem;
  right: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

/* Título */
.module-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: #DDDDE0;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.module-card:hover .module-title { color: #EFEFEF; }

/* Descripción */
.module-body {
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.7;
  color: #828290;
  flex: 1;
  transition: color 0.3s ease;
}
.module-card:hover .module-body { color: #9696A2; }

/* Tags / badges en la parte inferior */
.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1.25rem;
}
.module-tag {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,143,76,0.6);
  border: 1px solid rgba(0,143,76,0.15);
  background: rgba(0,143,76,0.04);
  border-radius: 2px;
  padding: 0.18rem 0.45rem;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.module-card:hover .module-tag {
  color: rgba(0,143,76,0.8);
  border-color: rgba(0,143,76,0.22);
}


/* ══════════════════════════════════════════
   14. FILOSOFÍA & PILARES
══════════════════════════════════════════ */
.philosophy-section {
  position: relative;
  z-index: 10;
  padding: clamp(5rem, 10vw, 8rem) 1.5rem clamp(5rem, 10vw, 8rem);
  border-top: 1px solid rgba(255,255,255,0.045);
}

.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Manifiesto */
.manifesto-wrap {
  max-width: 680px;
  margin: 0 auto 5rem;
  text-align: center;
}

.manifesto-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237,28,36,0.65);
  margin-bottom: 1.5rem;
}

.manifesto-kicker-line {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: rgba(237,28,36,0.4);
  flex-shrink: 0;
}

.manifesto-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #EFEFEF;
  margin-bottom: 1.5rem;
}

.manifesto-body {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.8;
  color: #8A8A94;
  max-width: 580px;
  margin: 0 auto;
}

/* Divisor de sección */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

.section-divider-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888; /* #333 original → ratio ~1.6:1 (falla grave). #888 → ~5.0:1 ✓ */
  white-space: nowrap;
}

/* Grid de 3 pilares */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .pillars-grid { gap: 1rem; }
}

/* Tarjeta pilar */
.pillar-card {
  position: relative;
  background: #111111;
  border: 1px solid #1C1C1C;
  border-radius: 2px;
  padding: 2rem 1.75rem 2.25rem;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237,28,36,0), transparent);
  transition: background 0.4s ease;
}
.pillar-card:hover {
  border-color: rgba(237,28,36,0.18);
  background: #131313;
}
.pillar-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(237,28,36,0.35), transparent);
}

/* Número de pilar */
.pillar-num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(237,28,36,0.18);
}

/* Ícono */
.pillar-icon-wrap {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(237,28,36,0.15);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(237,28,36,0.04);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.pillar-card:hover .pillar-icon-wrap {
  border-color: rgba(237,28,36,0.3);
  background: rgba(237,28,36,0.07);
}
.pillar-icon-wrap svg {
  color: rgba(237,28,36,0.7);
  transition: color 0.3s ease;
}
.pillar-card:hover .pillar-icon-wrap svg { color: #ed1c24; }

/* Título */
.pillar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: #E8E8E8;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* Cuerpo */
.pillar-body {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: #848490;
  transition: color 0.3s ease;
}
.pillar-card:hover .pillar-body { color: #9696A0; }


/* ══════════════════════════════════════════
   15. SECCIÓN DE CIERRE
══════════════════════════════════════════ */
.closing-section {
  position: relative;
  z-index: 10;
  padding: clamp(4.5rem, 9vw, 7rem) 1.5rem clamp(4rem, 7vw, 6rem);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Ornamento: línea — icono — línea */
.closing-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.closing-orn-line {
  width: 3rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08));
}
.closing-orn-line.right {
  background: linear-gradient(to left, transparent, rgba(255,255,255,0.08));
}

.closing-orn-icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.closing-orn-icon svg { color: rgba(255,255,255,0.15); }

/* Texto de autoridad */
.closing-authority {
  font-size: clamp(0.875rem, 1.3vw, 0.9375rem);
  font-weight: 300;
  line-height: 1.85;
  color: #888; /* #3E3E46 original → ratio ~1.9:1 (falla). #888 → ~5.0:1 ✓ */
  max-width: 500px;
  margin: 0 auto 3rem;
  letter-spacing: 0.015em;
}

/* Badge ANTORR */
.closing-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 2.25rem;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 2px;
  transition: border-color 0.3s ease;
}
.closing-badge:hover { border-color: rgba(255,255,255,0.09); }

.closing-badge-name {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232,232,232,0.5);
  user-select: none;
}

.closing-badge-sub {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(161,161,170,0.75); /* 0.3 original → ratio ~1.7:1 (falla). 0.75 → ~4.7:1 ✓ */
  user-select: none;
}


/* ══════════════════════════════════════════
   16. FOOTER MÍNIMO
══════════════════════════════════════════ */
.footer-minimal {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 0.22 original → ratio ~1.3:1 (falla grave). 0.75 → ~4.7:1 ✓ */
.footer-copy {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(161,161,170,0.75);
}

.footer-contact {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(161,161,170,0.75); /* 0.22 original → falla. 0.75 → ~4.7:1 ✓ */
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}
.footer-contact::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(0,143,76,0.5);
  transition: width 0.3s ease;
}
.footer-contact:hover { color: rgba(161,161,170,1); }
.footer-contact:hover::after { width: 100%; }


/* ══════════════════════════════════════════
   17. SCROLL REVEAL (JS-driven)
══════════════════════════════════════════ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados — filas 1 y 2 */
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.36s; }
/* Delays escalonados — fila 2 (tarjetas 4-6) */
.reveal-delay-4 { transition-delay: 0.10s; }
.reveal-delay-5 { transition-delay: 0.22s; }
.reveal-delay-6 { transition-delay: 0.36s; }


/* ══════════════════════════════════════════
   18. REDUCED MOTION — accesibilidad
   Si el usuario tiene activado "Reducir movimiento" en su SO,
   pausamos o eliminamos todas las animaciones continuas.
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   19 · SEGUNDO CTA (sección inferior)
══════════════════════════════════════════ */

.second-cta-section {
  position: relative;
  z-index: 10;
  padding: 5rem 1.5rem 4rem;
  display: flex;
  justify-content: center;
  border-top: 1px solid #1C1C1C;
}

.second-cta-inner {
  max-width: 560px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.second-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
}

.second-cta-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #E8E8E8;
  margin: 0;
}

.second-cta-sub {
  font-size: 0.9375rem;
  color: #888;
  line-height: 1.6;
  margin: 0;
}

.second-cta-section .hero-form-wrap {
  width: 100%;
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   20 · MODAL — Registro completo
══════════════════════════════════════════ */

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 4, 4, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Panel */
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #0e0e0e;
  border: 1px solid #252525;
  box-shadow: 7px 7px 0 0 rgba(237, 28, 36, 0.10);
  padding: 2.5rem 2.25rem;
  transform: translateY(14px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.is-open .modal-panel {
  transform: translateY(0);
}

/* Botón cerrar X */
.modal-close-btn {
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #666;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  padding: 0;
}
.modal-close-btn:hover {
  color: #E8E8E8;
  border-color: #666;
}

/* Encabezado */
.modal-kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 0.75rem;
}
.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #EFEFEF;
  margin: 0 0 1.5rem;
}

/* Email confirmado */
.modal-email-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  background: rgba(237, 28, 36, 0.06);
  border-left: 2px solid rgba(237, 28, 36, 0.4);
  margin-bottom: 1.75rem;
}
.modal-email-label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
}
.modal-email-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  color: #C4C4C4;
  word-break: break-all;
}

/* Campos */
.modal-field {
  margin-bottom: 1.375rem;
}
.modal-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 0.6rem;
}
.modal-input {
  width: 100%;
  background: #111;
  border: 1px solid #252525;
  border-radius: 0;
  color: #E8E8E8;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.modal-input::placeholder { color: #383838; }
.modal-input:focus        { border-color: rgba(237, 28, 36, 0.5); }

/* Botones de rol */
.modal-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.1rem;
}
.role-btn {
  padding: 0.45rem 0.875rem;
  background: #111;
  border: 1px solid #252525;
  border-radius: 0;
  color: #666;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.role-btn:hover {
  border-color: #444;
  color: #C8C8C8;
}
.role-btn.is-active {
  background: rgba(237, 28, 36, 0.1);
  border-color: rgba(237, 28, 36, 0.5);
  color: #E8E8E8;
}

/* Mensajes de error */
.modal-error {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #f87171;
}

/* Botón submit */
.modal-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: #ed1c24;
  border: none;
  border-radius: 0;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  -webkit-appearance: none;
  appearance: none;
  margin-top: 0.5rem;
}
.modal-submit-btn:hover    { background: #c4181f; }
.modal-submit-btn:active   { transform: translateY(1px); }
.modal-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Estado de éxito */
.modal-success-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  gap: 1rem;
}
.modal-success-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 143, 76, 0.35);
  background: rgba(0, 143, 76, 0.07);
  color: #00c46a;
}
.modal-success-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #EFEFEF;
  margin: 0;
}
.modal-success-body {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.65;
  max-width: 340px;
  margin: 0;
}
.modal-success-close {
  padding: 0.6rem 1.75rem;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #777;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  margin-top: 0.25rem;
}
.modal-success-close:hover {
  border-color: #555;
  color: #C8C8C8;
}

/* ══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {

  /* ── Animaciones continuas: se pausan completamente ── */
  .yare-svg-spark,
  .scroll-line,
  .scan-bar,
  .tag-dot,
  .eyebrow-dot {
    animation: none;
  }

  /* ── Modal: sin deslizamiento de entrada ── */
  .modal-panel { transition: none; }
  .modal-overlay { transition: opacity 0.01ms, visibility 0.01ms; }

  /* ── Transiciones de entrada (hero): se vuelven instantáneas ── */
  [class*="animate-[fadeUp"],
  [class*="animate-[fadeIn"] {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }

  /* ── Scroll reveal: visible de inmediato, sin deslizamiento ── */
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4,
  .reveal-delay-5,
  .reveal-delay-6 {
    transition-delay: 0s;
  }

  /* ── Transiciones de hover: se mantienen pero se acortan ── */
  .module-card,
  .pillar-card,
  .module-card::after,
  .pillar-card::before,
  .module-icon-wrap,
  .pillar-icon-wrap,
  .module-title,
  .module-body,
  .module-tag,
  .pillar-body,
  .pillar-icon-wrap svg,
  .module-icon-wrap svg,
  .closing-badge,
  .footer-contact,
  .footer-contact::after,
  .logo-link,
  .logo-arrow,
  .btn-waitlist,
  .input-yare {
    transition-duration: 0.01ms !important;
  }

  /* ── Logotype reveal: instantáneo ── */
  .yare-logotype .yare-fill {
    transition-duration: 0.01ms !important;
  }
}
