/* ==========================================================================
   PIA - Sistema Visual Armónico Unificado (Fintech Luxury - Edición Luminosa)
   Diseño continuo, fluido y con ritmo de secciones de alta gama UX.
   Inspirado en la primera sección (Hero) de PIA con fondos claros:
   - Alternancia sutil de luminosidad entre secciones (#ffffff, #f1f5f9, #f8fafc)
   - Acentos corporativos de alta saturación: Verde Dólar (#059669 / #10b981), Amarillo Oro (#d97706 / #f59e0b) y Azul Océano (#0284c7)
   - Tipografía refinada: Space Grotesk (Titulares) + Atkinson Hyperlegible (Lectura)
   - Cabina tecnológica de alto contraste y narrativa fluida sin cajas aisladas
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Canvas continuo y ambient lighting
   -------------------------------------------------------------------------- */
html {
  overflow-x: clip;
}

.harmonious-landing {
  background-color: #ffffff;
  color: #0f172a;
  font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: clip;
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
  max-width: 100%;
}

/* Contenedor que recorta las luces ambientales para erradicar cualquier desbordamiento horizontal */
.ambient-glows-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Luces ambientales suaves que acompañan el scroll sobre fondo claro */
.ambient-glow {
  position: absolute;
  width: 750px;
  height: 750px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(160px);
  opacity: 0.06;
  z-index: 0;
}

.ambient-glow-cyan {
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
}

.ambient-glow-emerald {
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
}

.ambient-glow-gold {
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   2. Barra de navegación verde corporativo (Fintech Emerald Glassmorphism)
   -------------------------------------------------------------------------- */
.landing-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1380px;
  padding: 6px 18px;
  z-index: 1000;
  /* Fondo con efecto de transparencia (glassmorphism moderno) */
  background: linear-gradient(135deg, rgba(8, 65, 48, 0.65) 0%, rgba(5, 42, 34, 0.72) 100%);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  /* Borde sutil con efecto de halo esmeralda exterior y reflejo especular interior */
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 9999px;
  box-shadow: 
    0 16px 36px -8px rgba(0, 0, 0, 0.35),
    0 0 20px -2px rgba(52, 211, 153, 0.20),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px 0 rgba(52, 211, 153, 0.18);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.landing-nav:hover {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 
    0 20px 42px -8px rgba(0, 0, 0, 0.40),
    0 0 28px -1px rgba(52, 211, 153, 0.30),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 1px 0 rgba(52, 211, 153, 0.25);
}

/* Ocultamiento automático de la barra al hacer scroll hacia abajo manteniendo centrado */
.landing-nav.nav-hidden {
  transform: translate(-50%, -140%);
  box-shadow: none;
  pointer-events: none;
}

.landing-nav-inner {
  max-width: 100%;
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

/* Botón hamburguesa para dispositivos móviles y tablets */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(52, 211, 153, 0.6);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.landing-nav .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

.landing-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.landing-nav .nav-menu > li {
  flex-shrink: 0;
}

.landing-nav .nav-menu > li > a {
  color: #f1f5f9;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 9999px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.landing-nav .nav-menu > li > a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
}

/* Dropdown "Tu diagnóstico" */
.nav-item-dropdown {
  position: relative;
  flex-shrink: 0;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.45);
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-expanded="true"] {
  background: rgba(16, 185, 129, 0.35);
  color: #ffffff;
  border-color: rgba(52, 211, 153, 0.8);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

.nav-dropdown-caret {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  background: linear-gradient(145deg, rgba(8, 60, 46, 0.85) 0%, rgba(5, 40, 32, 0.92) 100%);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 20px -2px rgba(52, 211, 153, 0.18),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.18);
  list-style: none;
  margin: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: navDropdownFade 0.2s ease-out;
}

.nav-submenu[hidden] {
  display: none !important;
}

@keyframes navDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-submenu li {
  margin: 0;
  padding: 0;
}

.nav-submenu a {
  display: block;
  color: #e2e8f0;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.nav-submenu a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #34d399;
  transform: translateX(3px);
}

.nav-submenu-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 4px;
  padding-top: 4px;
}

.landing-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.landing-nav #loginBtn {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  padding: 6px 16px !important;
  font-size: 0.86rem !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.landing-nav .nav-actions .btn-gold {
  padding: 6px 16px !important;
  font-size: 0.86rem !important;
  border-radius: 9999px !important;
  white-space: nowrap;
}

.landing-nav #loginBtn:hover {
  background: #ffffff !important;
  color: #064e3b !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .landing-nav {
    top: 12px;
    width: calc(100% - 24px);
    padding: 8px 16px;
    border-radius: 9999px;
  }

  .nav-toggle {
    display: flex;
  }

  .landing-nav-inner {
    position: relative;
  }

  .landing-nav .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: linear-gradient(145deg, rgba(6, 48, 38, 0.88) 0%, rgba(4, 35, 28, 0.94) 100%);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 20px;
    padding: 16px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: 
      0 24px 50px rgba(0, 0, 0, 0.55),
      0 0 24px -2px rgba(52, 211, 153, 0.20),
      inset 0 1px 1px 0 rgba(255, 255, 255, 0.20);
    z-index: 1050;
    animation: floatingCardEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes floatingCardEnter {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .landing-nav .nav-menu.is-open {
    display: flex;
  }

  .landing-nav .nav-menu > li > a {
    padding: 11px 16px;
    display: block;
    font-size: 0.94rem;
    border-radius: 10px;
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 12px;
  }

  .nav-submenu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 14px;
    padding: 6px;
  }
}

@media (max-width: 640px) {
  .landing-nav {
    top: 10px;
    padding: 7px 14px;
  }
  .landing-nav .nav-actions {
    gap: 8px;
  }
  .landing-nav .nav-actions .btn-gold {
    padding: 6px 12px !important;
    font-size: 0.82rem !important;
  }
  .landing-nav #loginBtn {
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
  }
}

/* --------------------------------------------------------------------------
   3. Hero Section (La Referencia Maestra)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 104px 24px 40px;
  text-align: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .hero-section {
    padding: 86px 16px 32px;
  }
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #065f46;
  margin-bottom: 26px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero-headline {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  color: #0f172a;
}

.aurora-text {
  position: relative;
  display: inline-block;
}

.aurora-text-visual {
  position: relative;
  display: inline-block;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .aurora-text-visual {
    background-image: linear-gradient(135deg,
        #059669 0%,
        #d97706 25%,
        #0284c7 50%,
        #b45309 75%,
        #059669 100%);
    background-size: 280% 280%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: auroraShift 9s ease infinite;
  }
}

@keyframes auroraShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.typed-spacing {
  display: inline-block;
  white-space: nowrap;
  vertical-align: bottom;
  overflow: hidden;
  opacity: 1 !important;
  max-width: 100%;
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: clamp(1.65rem, 5.5vw, 2.4rem);
    line-height: 1.25;
  }
  .typed-spacing {
    white-space: normal;
    overflow: visible;
    display: inline;
  }
}

.typed-spacing.is-visible {
  opacity: 1 !important;
}

.typed-spacing::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 3px;
  vertical-align: -0.05em;
  background-color: #06b6d4;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.typed-spacing.is-typing::after {
  opacity: 1;
  animation: pia-typed-cursor-blink 0.85s step-end infinite;
}

@keyframes pia-typed-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  color: #475569;
  max-width: 860px;
  margin: 0 auto 34px auto;
  line-height: 1.65;
}

.hero-ctas-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  border-radius: 9999px;
  padding: 14px 28px;
  font-size: 1.02rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.55);
  filter: brightness(1.08);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a0f02 !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  border-radius: 9999px;
  padding: 14px 28px;
  font-size: 1.02rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.6);
  filter: brightness(1.08);
}

.hero-trust-subtext {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.88rem;
  color: #64748b;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   4. Cabina de Control Showcase (Hero Cockpit Frame)
   Marco de alto contraste tecnológico que destaca el video / simulador
   -------------------------------------------------------------------------- */
.cockpit-showcase-wrapper {
  max-width: 1040px;
  margin: 30px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.cockpit-frame {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 35px -10px rgba(6, 182, 212, 0.15);
}

.cockpit-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.cockpit-window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cockpit-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cockpit-dot-red { background: #ef4444; opacity: 0.8; }
.cockpit-dot-yellow { background: #f59e0b; opacity: 0.8; }
.cockpit-dot-green { background: #10b981; opacity: 0.8; }

.cockpit-status-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cockpit-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-weight: 600;
}

.cockpit-body {
  position: relative;
}

.cockpit-bottom-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px 24px;
  background: #0b1120;
  border-top: 1px solid #334155;
}

@media (max-width: 768px) {
  .cockpit-bottom-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.cockpit-metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cockpit-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cockpit-metric-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.cockpit-metric-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4b. Capítulos interactivos de la Fórmula A (De tu decisión a la automatización)
   -------------------------------------------------------------------------- */
.video-chapters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 840px) {
  .video-chapters-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-chapter-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.video-chapter-card:hover {
  transform: translateY(-3px);
  border-color: #10b981;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), 0 0 20px rgba(16, 185, 129, 0.08);
}

.video-chapter-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #0f172a;
  border: 1px solid #cbd5e1;
}

.video-chapter-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-chapter-placeholder {
  width: 100%;
  height: 100%;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.video-chapter-placeholder:hover .video-play-mini {
  transform: scale(1.1);
  background: rgba(16, 185, 129, 0.4);
  border-color: rgba(16, 185, 129, 0.8);
}

.video-play-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.video-chapter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.video-chapter-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.06em;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
}

.video-chapter-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: #065f46;
  background: #ecfdf5;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}

.video-chapter-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 8px;
}

.video-chapter-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}

.video-chapter-action {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.video-chapter-card:hover .video-chapter-action {
  gap: 9px;
  color: #0369a1;
}

/* --------------------------------------------------------------------------
   5. Cabeceras y arquitectura de secciones con ritmo UX
   -------------------------------------------------------------------------- */
.harmonious-section {
  width: 100%;
  padding: 84px 24px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.harmonious-section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .harmonious-section {
    padding: 56px 16px;
  }
}

/* Alternancia cromática sutil entre secciones para una navegación orientada */
#como-funciona.harmonious-section {
  background-color: #f1f5f9;
  border-top: none;
  border-bottom: none;
}

#certezas.harmonious-section {
  background-color: #ffffff;
  border-top: none;
  border-bottom: none;
}

#comparativa.harmonious-section {
  background-color: #f8fafc;
  border-top: none;
  border-bottom: none;
}

#precios.harmonious-section {
  background-color: #ffffff;
  border-top: none;
  border-bottom: none;
}

#faq.harmonious-section {
  background-color: #f1f5f9;
  border-top: none;
  border-bottom: none;
}

#suscripcion.harmonious-section {
  background-color: #ffffff;
  border-top: none;
  border-bottom: none;
}

.sec-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 52px;
  position: relative;
  z-index: 2;
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  margin-bottom: 16px;
}

.sec-tag-emerald {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.sec-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0 0 16px;
}

.sec-desc {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: #475569;
  margin: 0 auto;
  max-width: 660px;
}

/* --------------------------------------------------------------------------
   6. Narrativa Fluida (Los 3 Pilares sin grillas cuadradas repetitivas)
   -------------------------------------------------------------------------- */
.fluid-story-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  width: 100%;
}

.fluid-pillar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

.fluid-pillar:hover {
  border-color: #0284c7;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

/* Orientación asimétrica dinámica en zigzag (Paso 1 izq, Paso 2 der, Paso 3 izq) */
@media (min-width: 960px) {
  .fluid-pillar.fluid-pillar-left {
    width: 86%;
    max-width: 980px;
    align-self: flex-start;
    margin-right: auto;
    margin-left: 0;
  }

  .fluid-pillar.fluid-pillar-right {
    width: 86%;
    max-width: 980px;
    align-self: flex-end;
    margin-left: auto;
    margin-right: 0;
  }
}

@media (min-width: 860px) {
  .fluid-pillar {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .fluid-pillar.fluid-pillar-reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .fluid-pillar.fluid-pillar-reverse .fluid-pillar-text {
    order: 2;
  }
  .fluid-pillar.fluid-pillar-reverse .fluid-pillar-visual {
    order: 1;
  }
}

.pillar-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: inline-block;
}

.pillar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 16px;
}

.pillar-desc {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 20px;
}

.pillar-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #1e293b;
}

.pillar-checks li .check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Micro-visuales integrados dentro de cada pilar */
.micro-visual-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.micro-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.micro-visual-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.micro-visual-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.api-perm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
  color: #334155;
}
.api-perm-row:last-child {
  border-bottom: none;
}

.perm-status-allowed {
  color: #059669;
  font-weight: 600;
}

.perm-status-blocked {
  color: #dc2626;
  font-weight: 700;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Micro visual para Freno */
.brake-gauge {
  text-align: center;
  padding: 12px 0;
}
.brake-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: #059669;
  margin-bottom: 4px;
}
.brake-sub {
  font-size: 0.85rem;
  color: #64748b;
}

/* Micro visual para Copiloto */
.copilot-bubble {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   7. Comparativa de Alto Contraste (Battlecard en lugar de tabla pesada)
   -------------------------------------------------------------------------- */
.battlecard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 840px) {
  .battlecard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.battlecard {
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.battlecard-traditional {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.battlecard-pia {
  background: #ffffff;
  border: 2px solid #10b981;
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.12), 0 4px 16px rgba(15, 23, 42, 0.04);
  position: relative;
}

.battlecard-pia-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.battlecard-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.battlecard-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0f172a;
}

.battlecard-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.battlecard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.battlecard-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #334155;
}

.battlecard-item strong {
  color: #0f172a;
}

.battlecard-icon-bad {
  color: #ef4444;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.battlecard-icon-good {
  color: #059669;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. Precios Transparentes (Explorer Demo, Inversionista Pro, Avanzado)
   -------------------------------------------------------------------------- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 44px;
}

.pricing-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  transition: color 0.2s ease;
}

.pricing-toggle-label.is-active {
  color: #0f172a;
}

.pricing-toggle-savings {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.74rem;
  font-weight: 700;
}

.pricing-toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e2e8f0;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.pricing-toggle-switch.is-annual {
  background: linear-gradient(135deg, #0284c7, #10b981);
  border-color: #10b981;
}

.pricing-toggle-switch:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

.pricing-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing-toggle-switch.is-annual .pricing-toggle-knob {
  transform: translateX(24px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: #0284c7;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.pricing-card.featured {
  background: #ffffff;
  border: 2px solid #10b981;
  box-shadow: 0 16px 44px rgba(16, 185, 129, 0.15), 0 4px 20px rgba(15, 23, 42, 0.04);
}

.pricing-card-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.badge-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a0f02;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.badge-subtle {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.pricing-plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.pricing-plan-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.5;
  min-height: 42px;
}

.pricing-amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #0f172a;
}

.pricing-period {
  font-size: 0.88rem;
  color: #64748b;
}

.price-annual-note {
  font-size: 0.82rem;
  color: #059669;
  font-weight: 600;
  margin: 0 0 18px;
  min-height: 20px;
  line-height: 1.4;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: #334155;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.pricing-features .check-icon {
  color: #059669;
  font-weight: 700;
  flex-shrink: 0;
}

.btn-plan {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  border: none;
}

.btn-plan-secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.btn-plan-secondary:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.btn-plan-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-plan-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

/* Tarjeta de transparencia radical sobre comisiones */
.pricing-transparency-card {
  margin: 50px auto 0;
  max-width: 980px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.pricing-transparency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 12px;
}

.pricing-transparency-text {
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 20px;
}

.transparency-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.transparency-tab {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.transparency-tab.is-active,
.transparency-tab:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.transparency-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  border: 1px solid #e2e8f0;
}

/* --------------------------------------------------------------------------
   9. Sobrescrituras para bloques Watermelon FAQ-4 en tema claro
   -------------------------------------------------------------------------- */
.harmonious-landing .wm-faq4-badge {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.harmonious-landing .wm-faq4-title {
  color: #0f172a;
}

.harmonious-landing .wm-faq4-desc {
  color: #475569;
}

.harmonious-landing .wm-faq4-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.harmonious-landing .wm-faq4-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.harmonious-landing .wm-faq4-item.is-open {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
}

.harmonious-landing .wm-faq4-trigger {
  color: #0f172a;
}

.harmonious-landing .wm-faq4-trigger-icon {
  background: #f1f5f9;
  color: #64748b;
}

.harmonious-landing .wm-faq4-item.is-open .wm-faq4-trigger-icon {
  background: #ecfdf5;
  color: #059669;
}

.harmonious-landing .wm-faq4-content {
  color: #475569;
}

.harmonious-landing .wm-faq4-content strong {
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   10. Footer Avanzado
   -------------------------------------------------------------------------- */
.landing-footer {
  background: #090c13;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 24px 36px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .landing-footer {
    padding: 48px 16px 28px;
  }
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}

@media (max-width: 860px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links-list a:hover {
  color: #38bdf8;
  transform: translateX(2px);
}

.footer-legal-notice {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 24px 28px;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 28px;
}

.footer-legal-notice p {
  margin: 0 0 14px;
}

.footer-legal-notice p:last-child {
  margin-bottom: 0;
}

.footer-legal-notice strong {
  color: #cbd5e1;
}

.footer-tagline-wrapper {
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding: 40px 16px 28px;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  overflow: hidden;
}

.footer-tagline {
  display: block;
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.65rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  padding: 0 10px;
}

.footer-tagline .typed-spacing {
  overflow: visible !important;
  max-width: 100% !important;
  white-space: normal;
  display: inline;
  word-break: normal;
}

.footer-tagline .aurora-text-visual {
  background-image: linear-gradient(135deg,
      #10b981 0%,
      #34d399 25%,
      #f59e0b 50%,
      #38bdf8 75%,
      #10b981 100%) !important;
  background-size: 250% 250% !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: auroraShift 8s ease-in-out infinite alternate !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.35));
}

@media (max-width: 768px) {
  .footer-tagline-wrapper {
    padding: 28px 12px 18px;
    margin-top: 24px;
  }
  .footer-tagline {
    font-size: clamp(1.25rem, 6.2vw, 2.1rem);
    line-height: 1.22;
    letter-spacing: 0;
  }
}

/* --------------------------------------------------------------------------
   11. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   12. Transiciones Gráficas con Curvas de Trading entre Secciones
   -------------------------------------------------------------------------- */
.trading-curve-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 3;
  margin-top: -2px;
  margin-bottom: -2px;
}

.trading-curve-divider svg {
  display: block;
  width: 100%;
  height: 58px;
}

@media (min-width: 768px) {
  .trading-curve-divider svg {
    height: 76px;
  }
}

/* Variantes cromáticas: el contenedor y .curve-bg-top adoptan el fondo de la
   sección de origen (superior), mientras que .curve-fill adopta el fondo de la
   sección de destino (inferior). De esta forma, la curva con velas japonesas
   es el límite exacto donde cambia el color, erradicando cualquier línea recta. */

/* Cada `.curve-fill` recibe además un `stroke` del mismo color que su
   propio `fill` (grosor 2px): sin esto, el navegador antialiasea el borde
   del <path> de forma independiente del <rect> `.curve-bg-top` que tiene
   debajo (mismo <svg>, misma curva, pero dos formas distintas) y deja un
   hairline de 1px con el color del <rect> superior asomando justo en la
   curva -- muy visible en el par blanco/slate (bug reportado 2026-09-20:
   "se ve con 2 colores, blanco y gris, justo en la curva de separación"
   entre el Hero y ¿Cómo funciona?). El stroke, al ser del mismo color que
   el fill, no cambia el diseño: sólo tapa esa costura submilimétrica. */

/* 1. Blanco a Slate (#ffffff -> #f1f5f9) */
.trading-curve-divider.divider-white-to-slate {
  background-color: transparent;
}
.divider-white-to-slate .curve-bg-top {
  fill: transparent;
}
.divider-white-to-slate .curve-fill {
  fill: #f1f5f9;
  stroke: #f1f5f9;
  stroke-width: 2px;
}

/* 2. Slate a Blanco (#f1f5f9 -> #ffffff) */
.trading-curve-divider.divider-slate-to-white {
  background-color: #f1f5f9;
}
.divider-slate-to-white .curve-bg-top {
  fill: #f1f5f9;
}
.divider-slate-to-white .curve-fill {
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 2px;
}

/* 3. Blanco a Softslate (#ffffff -> #f8fafc) */
.trading-curve-divider.divider-white-to-softslate {
  background-color: transparent;
}
.divider-white-to-softslate .curve-bg-top {
  fill: transparent;
}
.divider-white-to-softslate .curve-fill {
  fill: #f8fafc;
  stroke: #f8fafc;
  stroke-width: 2px;
}

/* 4. Softslate a Blanco (#f8fafc -> #ffffff) */
.trading-curve-divider.divider-softslate-to-white {
  background-color: #f8fafc;
}
.divider-softslate-to-white .curve-bg-top {
  fill: #f8fafc;
}
.divider-softslate-to-white .curve-fill {
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 2px;
}

/* 5. Blanco a Footer Oscuro (#ffffff -> #090c13) */
.trading-curve-divider.divider-to-footer {
  background-color: #ffffff;
}
.divider-to-footer .curve-bg-top {
  fill: #ffffff;
}
.divider-to-footer .curve-fill {
  fill: #090c13;
  stroke: #090c13;
  stroke-width: 2px;
}

/* 6. Slate a Footer Oscuro (#f1f5f9 -> #090c13) */
.trading-curve-divider.divider-slate-to-footer {
  background-color: #f1f5f9;
}
.divider-slate-to-footer .curve-bg-top {
  fill: #f1f5f9;
}
.divider-slate-to-footer .curve-fill {
  fill: #090c13;
  stroke: #090c13;
  stroke-width: 2px;
}

.trading-curve-line {
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

.trading-shaded-area {
  pointer-events: none;
}

.candlestick-group {
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   13. Numeración Gráfica y Conectores de Flujo en "Tres Certezas Esenciales"
   -------------------------------------------------------------------------- */
.pillar-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 16px 6px 6px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pillar-badge-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.pillar-badge-circle.badge-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.pillar-badge-circle.badge-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.pillar-badge-circle.badge-gold {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.pillar-badge-meta {
  display: flex;
  flex-direction: column;
}

.pillar-badge-category {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f172a;
  text-transform: uppercase;
  line-height: 1.1;
}

.pillar-badge-sub {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* Conectores gráficos fluidos y dinámicos entre los 3 pilares */
.certeza-flow-track {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  margin: -10px auto;
  overflow: visible;
  padding: 0 20px;
  box-sizing: border-box;
}

.certeza-flow-track svg {
  width: 100%;
  max-width: 960px;
  height: 74px;
  display: block;
  overflow: visible;
}

.flow-track-glow {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.35));
}

.flow-track-line {
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.2));
}

@media (max-width: 959px) {
  .certeza-flow-track svg {
    height: 48px;
  }
}

/* --------------------------------------------------------------------------
   14. Centrado de Switch Mensual / Anual en Precios
   -------------------------------------------------------------------------- */
.pricing-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 12px auto 44px;
}

.pricing-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  margin: 0 auto !important;
  padding: 8px 24px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

/* --------------------------------------------------------------------------
   15. Contraste y Colores en Preguntas Frecuentes y Suscripción
   -------------------------------------------------------------------------- */
#faq.wm-faq4-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 84px 24px 96px !important;
  background-color: #f1f5f9 !important;
  box-sizing: border-box !important;
  border-top: none !important;
  border-bottom: none !important;
}

#faq .wm-faq4-header,
#faq .wm-faq4-grid {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

#faq .wm-faq4-badge {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #059669 !important;
  font-weight: 700 !important;
}

#faq .wm-faq4-title {
  color: #0f172a !important;
}

#faq .wm-faq4-desc {
  color: #475569 !important;
}

#faq .wm-faq4-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, transform 0.25s ease !important;
}

#faq .wm-faq4-item:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08) !important;
}

#faq .wm-faq4-item.is-open {
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12) !important;
}

#faq .wm-faq4-trigger {
  color: #0f172a !important;
  font-weight: 700 !important;
}

#faq .wm-faq4-trigger-icon {
  color: #0284c7 !important;
}

#faq .wm-faq4-content,
#faq .wm-faq4-content p,
#faq .wm-faq4-answer {
  color: #334155 !important;
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
}

/* Suscripción (Recibe novedades de PIA) */
#suscripcion.wm-newsletter-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 60px 24px 84px !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  border-top: none !important;
  border-bottom: none !important;
}

#suscripcion .wm-newsletter-card {
  max-width: 1140px;
  margin: 0 auto;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(6, 182, 212, 0.12) !important;
  border-radius: 28px !important;
  padding: 56px 28px !important;
  position: relative !important;
  overflow: hidden !important;
}

#suscripcion .wm-newsletter-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

#suscripcion .wm-newsletter-subtitle {
  color: #475569 !important;
  font-size: 1.05rem !important;
}

#suscripcion .wm-newsletter-input {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 500 !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

#suscripcion .wm-newsletter-input:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
}

#suscripcion .wm-newsletter-input::placeholder {
  color: #94a3b8 !important;
}

#suscripcion .wm-newsletter-consent {
  color: #334155 !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}

#suscripcion .wm-newsletter-legal {
  color: #64748b !important;
  font-size: 0.82rem !important;
  line-height: 1.6 !important;
}

#suscripcion .wm-newsletter-legal a {
  color: #0284c7 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   16. Unificación del Sistema de Botones y Alto Contraste
   -------------------------------------------------------------------------- */
/* Botón Primario Oro / Ámbar (Alta conversión) */
.btn-gold,
.btn-plan.btn-plan-primary,
.wm-newsletter-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  border-radius: 9999px !important;
  padding: 12px 24px !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28) !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.btn-gold:hover,
.btn-plan.btn-plan-primary:hover,
.wm-newsletter-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.38) !important;
  filter: brightness(1.06) !important;
}

/* Botón Secundario / Outline (Limpio y legible) */
.btn-plan.btn-plan-secondary,
.wm-faq4-action-btn,
#loginBtn,
.video-chapter-action {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9999px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
}

.btn-plan.btn-plan-secondary:hover,
.wm-faq4-action-btn:hover,
#loginBtn:hover,
.video-chapter-action:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0284c7 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

/* Botón de acción en tarjetas de video */
.video-chapter-action {
  color: #0284c7 !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 0.84rem !important;
  margin-top: 10px !important;
}

/* --------------------------------------------------------------------------
   17. Frase de Copyright debajo del Aviso Legal
   -------------------------------------------------------------------------- */
.footer-copyright-below-legal {
  text-align: center;
  margin: 20px auto 28px;
  font-size: 0.84rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
  font-weight: 500;
}

