/* ═══════════════════════════════════════════════════
   CAPACITANDO CHILE — Premium Landing CSS
   Stack: Space Grotesk (headlines) + Inter (body)
   Palette: Navy / Slate / Amber / Sky Blue
═══════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────── */
:root {
  /* Colors */
  --c-primary:     #0F172A;
  --c-primary-deep:#070D1A;
  --c-secondary:   #475569;
  --c-accent:      #F59E0B;
  --c-accent-dark: #D97706;
  --c-tech:        #38BDF8;
  --c-tech-dark:   #0EA5E9;
  --c-light:       #F8FAFC;
  --c-text-dark:   #111827;
  --c-text-body:   #374151;
  --c-text-muted:  #6B7280;
  --c-border:      rgba(71, 85, 105, 0.2);
  --c-border-light:rgba(248, 250, 252, 0.1);
  --c-card-bg:     rgba(15, 23, 42, 0.6);
  --c-card-light:  #FFFFFF;
  --c-surface:     #1E293B;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Fira Mono', monospace;

  /* Fluid spacing */
  --space-xs:  clamp(0.5rem,  1vw, 0.75rem);
  --space-sm:  clamp(0.75rem, 1.5vw, 1rem);
  --space-md:  clamp(1rem,    2vw, 1.5rem);
  --space-lg:  clamp(1.5rem,  3vw, 2.5rem);
  --space-xl:  clamp(2rem,    4vw, 4rem);
  --space-2xl: clamp(3rem,    6vw, 6rem);
  --space-3xl: clamp(4rem,    8vw, 8rem);

  /* Section padding */
  --section-py: clamp(4rem, 8vw, 8rem);

  /* Container */
  --container-max: 1240px;
  --container-px:  clamp(1.25rem, 5vw, 2.5rem);

  /* Border radius */
  --r-sm:  0.5rem;
  --r-md:  0.875rem;
  --r-lg:  1.25rem;
  --r-xl:  1.75rem;
  --r-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.1);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.24), 0 6px 16px rgba(0,0,0,0.14);
  --shadow-glow-amber: 0 0 40px rgba(245,158,11,0.25), 0 0 80px rgba(245,158,11,0.1);
  --shadow-glow-blue:  0 0 40px rgba(56,189,248,0.2);

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout:cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast:   150ms;
  --duration-base:   280ms;
  --duration-slow:   500ms;
  --duration-slower: 800ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text-dark);
  background: var(--c-light);
  overflow-x: hidden;
}

/* Remove default list styles */
ul, ol { list-style: none; }

/* Clean links */
a {
  color: inherit;
  text-decoration: none;
}

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

/* Buttons */
button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus styles — accessible */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--c-accent);
  color: var(--c-primary);
  font-weight: 600;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 1rem; }

/* ─── TYPOGRAPHY SYSTEM ──────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: inherit;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 5rem);   letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.2rem);  letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p { color: var(--c-text-body); }

.text-accent { color: var(--c-accent); }
.text-tech   { color: var(--c-tech); }

/* ─── LAYOUT UTILITIES ───────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background: var(--c-primary);
}

.section--alt {
  background: #F1F5F9;
}

.desktop-br { display: block; }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: var(--r-full);
  padding: 0.75rem 1.75rem;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    background var(--duration-fast),
    color var(--duration-fast);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--duration-fast);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0px) scale(0.98); }

/* Amber / CTA */
.btn--amber {
  background: var(--c-accent);
  color: var(--c-primary);
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.btn--amber:hover {
  background: #FBBF24;
  box-shadow: 0 8px 24px rgba(245,158,11,0.4);
}

/* Ghost (dark bg) */
.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

/* Outline (light bg) */
.btn--outline {
  background: transparent;
  color: var(--c-secondary);
  border: 1.5px solid var(--c-border);
}
.btn--outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* Outline light (dark bg) */
.btn--outline-light {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn--outline-light:hover {
  border-color: rgba(255,255,255,0.5);
  color: white;
  background: rgba(255,255,255,0.06);
}

/* Sizes */
.btn--sm  { font-size: 0.875rem; padding: 0.55rem 1.25rem; }
.btn--lg  { font-size: 1rem; padding: 0.9rem 2.25rem; }
.btn--xl  { font-size: 1.1rem; padding: 1.1rem 2.75rem; }

/* Glow variant */
.btn--glow.btn--amber {
  box-shadow: 0 4px 20px rgba(245,158,11,0.4), 0 0 60px rgba(245,158,11,0.15);
}
.btn--glow.btn--amber:hover {
  box-shadow: 0 8px 30px rgba(245,158,11,0.5), 0 0 80px rgba(245,158,11,0.2);
}

/* ─── SCROLL PROGRESS BAR ────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-tech));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ─── CUSTOM CURSOR (desktop only) ──────────────── */
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-follower { pointer-events: none; }

  .cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--c-accent);
    border-radius: 50%;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 80ms var(--ease-out), opacity 200ms;
  }

  .cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    border-radius: 50%;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: all 180ms var(--ease-out);
  }

  body:has(a:hover, button:hover) .cursor {
    transform: translate(-50%, -50%) scale(1.5);
  }
  body:has(a:hover, button:hover) .cursor-follower {
    width: 48px;
    height: 48px;
    border-color: rgba(245, 158, 11, 0.3);
  }
}

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: var(--urgency-h); /* se ubica debajo de la urgency bar */
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition:
    background var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out),
    padding var(--duration-slow) var(--ease-out);
}

.navbar--scrolled {
  background: rgba(7, 13, 26, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  transition: opacity var(--duration-fast);
}
.navbar__logo:hover { opacity: 0.85; }

.logo-mark { flex-shrink: 0; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-display);
  font-weight: 700;
}

.logo-name {
  font-size: 1rem;
  color: white;
  letter-spacing: -0.02em;
}

.logo-country {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* Nav links */
.navbar__nav { margin-left: auto; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 1.5px;
  background: var(--c-accent);
  border-radius: 1px;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.06);
}

.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

/* ─── NAV DROPDOWN ──────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown__trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
/* Trigger hereda estilos de .nav-link (ya tiene esa clase también) */
.nav-dropdown__trigger::after { display: none; } /* sin subrayado en trigger */

.nav-dropdown__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.nav-dropdown.is-open .nav-dropdown__chevron { transform: rotate(180deg); opacity: 1; }

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: #FFFFFF;
  border: 1px solid #E0E7FF;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
  padding: 8px 0;
  z-index: 1100;
  animation: subnav-drop 0.15s ease;
}
.nav-dropdown.is-open .nav-dropdown__menu { display: block; }

.nav-dropdown__menu a {
  display: block;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 500;
  color: #0F172A;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown__menu a:hover {
  background: #EEF2FF;
  color: #1D4ED8;
}
.nav-dropdown__menu a:first-child { border-radius: 8px 8px 0 0; }
.nav-dropdown__menu a:last-child  { border-radius: 0 0 8px 8px; }

/* ─── MOBILE MENU — grupos SAP ──────────────────────────────────────────── */
.mobile-menu__group { padding: 4px 0; }
.mobile-menu__group-title {
  display: block;
  padding: 10px 24px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.mobile-menu__link--sub {
  font-size: 0.875rem !important;
  padding-left: 36px !important;
  opacity: 0.85;
}
.mobile-menu__link--sub:hover { opacity: 1; }

/* ─── SUBNAV ANTIGUO — ocultar si queda alguno ──────────────────────────── */
.sap-subnav { display: none !important; }

/* Navbar actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background var(--duration-fast);
}

.hamburger:hover { background: rgba(255,255,255,0.08); }

.hamburger__line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.8);
  border-radius: 1px;
  transition:
    transform var(--duration-base) var(--ease-out),
    opacity var(--duration-base);
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 26, 0.97);
  backdrop-filter: blur(24px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 1rem;
  letter-spacing: -0.02em;
  transition: color var(--duration-fast);
}
.mobile-menu__link:hover { color: var(--c-accent); }

.mobile-menu__cta {
  margin-top: 1.5rem;
  font-size: 1.1rem !important;
}

.mobile-menu__contact {
  margin-top: 2rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

/* ─── SECTION LABELS ─────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.25rem;
}

.section-label--light { color: rgba(245,158,11,0.8); }

.label-line {
  display: block;
  width: 32px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  flex-shrink: 0;
}

/* Section header */
.section-header {
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.section-title {
  color: var(--c-text-dark);
  margin-bottom: 1.25rem;
}

.section-title--light { color: var(--c-light); }

.section-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-sub--muted { color: rgba(248,250,252,0.5); }

/* ─── HERO — SCROLL VIDEO ────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-primary-deep);
  color: white;
  will-change: transform;  /* hint al browser para el pin */
}

/* ── Video wrap ── */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--c-primary-deep); /* fallback mientras carga */
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%; /* 10% extra para el parallax sin bordes blancos */
  top: -5%;
  object-fit: cover;
  object-position: center 60%; /* centra la máquina en el encuadre */
  will-change: transform;
}

/* Overlay gradiente: oscurece bordes para que el texto sea legible */
.hero__video-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Franja superior oscura (zona del navbar) */
    linear-gradient(to bottom, rgba(7,13,26,0.65) 0%, rgba(7,13,26,0.15) 25%, transparent 45%),
    /* Franja inferior oscura (zona del texto/CTAs) */
    linear-gradient(to top, rgba(7,13,26,0.85) 0%, rgba(7,13,26,0.4) 30%, transparent 60%),
    /* Vignette lateral izquierda (legibilidad de headlines) */
    linear-gradient(to right, rgba(7,13,26,0.55) 0%, rgba(7,13,26,0.1) 50%, transparent 75%);
  z-index: 1;
}

/* ── Scroll progress bar del video (línea ámbar debajo del hero) ── */
.hero__video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-tech));
  z-index: 10;
  pointer-events: none;
  transition: none; /* actualizado por JS directo */
}

/* ── Estado de carga del video ── */
.hero__video-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-deep);
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero__video-loading.is-hidden {
  opacity: 0;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(245,158,11,0.2);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Indicador de scroll para el video (hint al usuario) ── */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  animation: scrollIndFade 1s ease 1.5s both;
}

.hero__scroll-hint svg {
  animation: bounceDown 1.6s ease-in-out infinite;
}

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

/* ── Perspectiva grid (encima del video) ── */
/* Perspective grid — encima del video, dentro de video-wrap */
.hero__grid {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 220%;
  height: 55%;
  background-image:
    linear-gradient(rgba(56,189,248,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: translateX(-50%) perspective(700px) rotateX(58deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

/* Glow orbs — encima del video, dentro de video-wrap */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 2;
}

.hero__glow--amber {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hero__glow--blue {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(56,189,248,0.07) 0%, transparent 70%);
  left: 5%;
  bottom: 10%;
}

/* Machine visual */
.hero__machine {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: min(580px, 52vw);
  opacity: 0;
  transform: translateX(30px);
  transition: all 1s var(--ease-out);
  pointer-events: none;
}

.hero__machine.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.machine-glow {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 30%;
  background: radial-gradient(ellipse, rgba(245,158,11,0.15) 0%, transparent 70%);
  filter: blur(20px);
}

.machine-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(245,158,11,0.12)) drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  animation: machineBob 6s ease-in-out infinite;
}

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

/* Hero content — por encima del video y sus overlays */
.hero__content {
  position: relative;
  z-index: 5;
  padding-top: calc(var(--urgency-h) + 72px); /* urgency bar + navbar */
}

.hero__inner {
  max-width: 640px;
  padding: var(--space-3xl) 0;
}

/* Label */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
}

.label-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}

/* Hero headline */
.hero__headline {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
}

.headline-accent {
  background: linear-gradient(135deg, var(--c-accent) 0%, #FCD34D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero sub */
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

/* Hero CTAs */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(16px);
}

/* Hero badges */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(12px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-full);
  padding: 0.4rem 0.875rem;
  backdrop-filter: blur(8px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  animation: scrollIndFade 2s ease-in-out 2s both;
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes scrollIndFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── STATS BAR ──────────────────────────────────── */
.stats-bar {
  background: var(--c-primary);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(245,158,11,0.03) 50%, transparent 100%);
}

.stats-bar__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  line-height: 1;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
}

.stat-plus,
.stat-prefix {
  font-size: 0.6em;
  color: var(--c-accent);
  font-weight: 700;
}

.stat-item__label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  margin-top: 0.4rem;
  letter-spacing: 0.01em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.stat-item--highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.stat-item__icon {
  color: var(--c-accent);
  flex-shrink: 0;
}

/* ─── WHY SECTION ────────────────────────────────── */
.why-section {
  background: var(--c-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Why Cards */
.why-card {
  position: relative;
  background: white;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: var(--r-lg);
  padding: 2rem;
  overflow: hidden;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base);
  cursor: default;
  opacity: 0;
  transform: translateY(24px);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245,158,11,0.2);
}

.why-card--featured {
  background: var(--c-primary);
  border-color: rgba(245,158,11,0.2);
}

.why-card--featured .why-card__title,
.why-card--featured .why-card__text {
  color: white;
}

.why-card--featured .why-card__tag { color: var(--c-accent); }
.why-card--featured .why-card__icon { color: var(--c-accent); }
.why-card--featured .why-card__text { color: rgba(255,255,255,0.6); }

.why-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(245,158,11,0.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  margin-bottom: 1.25rem;
  transition: background var(--duration-base), transform var(--duration-base);
}

.why-card:hover .why-card__icon {
  background: rgba(245,158,11,0.14);
  transform: scale(1.05);
}

.why-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}

.why-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-text-dark);
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

.why-card__text {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.why-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.why-card__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.why-card__bullets li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--c-accent);
}

/* Accent line at bottom */
.why-card__accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  transition: width var(--duration-slow) var(--ease-out);
}

.why-card:hover .why-card__accent { width: 100%; }

/* ─── COURSES SECTION ────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Course Cards */
.course-card {
  background: var(--c-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
  opacity: 0;
  transform: translateY(32px);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,158,11,0.15);
}

.course-card--featured {
  border-color: rgba(245,158,11,0.25);
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(245,158,11,0.2);
}

.course-card--featured:hover {
  transform: translateY(-14px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.3);
}

.course-card__featured-tag {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-accent);
  padding: 0.3rem 0.875rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* Subtítulo colectivo sobre las 3 cards */
.courses-machines-intro {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.courses-machines-intro svg { flex-shrink: 0; margin-top: 2px; }
.courses-machines-intro p {
  font-size: 0.84rem;
  color: rgba(248,250,252,0.65);
  line-height: 1.5;
  margin: 0;
}
.courses-machines-intro p strong { color: #FCD34D; }

/* Course visual */
.course-card__visual {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-position 0.6s ease;
}
.course-card:hover .course-card__visual {
  background-position: center 40%;
}

/* Gradientes temáticos de fallback */
.course-card__visual--retro {
  /* Fallback: tierra cálida */
  background-color: #3D1F05;
}
.course-card__visual--loader {
  /* Fallback: azul acero */
  background-color: #0A1E30;
}
.course-card__visual--excavator {
  /* Fallback: roca oscura / cantera */
  background-color: #1C1C08;
}

/* Decoración de fallback: ícono central cuando no hay foto */
.course-card__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  /* patrón sutil tipo grip metálico */
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 8px
    );
  z-index: 0;
  pointer-events: none;
}

.course-card__bg {
  position: absolute;
  inset: 0;
}

.course-card__bg--retro {
  background: linear-gradient(135deg, #1A3040 0%, #0F1F2F 50%, #162334 100%);
}

.course-card__bg--loader {
  background: linear-gradient(135deg, #1A2B1A 0%, #0F1A0F 50%, #1A2E1A 100%);
}

.course-card__bg--excavator {
  background: linear-gradient(135deg, #2A1A0F 0%, #1A0F0A 50%, #2A1E0F 100%);
}

/* Grid texture overlay */
.course-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

.course-card__machine {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 85%;
  padding: 0.5rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.course-card__tag-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: white;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
}

/* Course content */
.course-card__content {
  padding: 1.75rem;
}

.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-full);
}

.meta-pill--cert {
  color: var(--c-accent);
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.2);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.course-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.course-card__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.course-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.course-card__features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

.course-card__cta {
  width: 100%;
  justify-content: center;
}

/* ─── BENEFITS SECTION ───────────────────────────── */
.benefits-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.benefits-text .section-label { justify-content: flex-start; }
.benefits-text .section-title { text-align: left; }

.benefits-text__body {
  font-size: 1.05rem;
  color: var(--c-text-body);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.benefits-highlight {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: white;
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.benefits-highlight__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.benefits-highlight__text {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}
.benefits-highlight__text strong {
  color: var(--c-text-dark);
  font-weight: 600;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: var(--r-md);
  padding: 1.25rem;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base);
  opacity: 0;
  transform: translateY(16px);
}

.benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.benefit-item__icon {
  width: 40px;
  height: 40px;
  background: rgba(245,158,11,0.08);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  flex-shrink: 0;
}

.benefit-item__icon--blue {
  background: rgba(56,189,248,0.08);
  color: var(--c-tech);
}

.benefit-item__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-text-dark);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.benefit-item__text {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* ─── PLANS SECTION ──────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
}

/* Plan Cards */
.plan-card {
  background: var(--c-surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base);
  opacity: 0;
  transform: translateY(24px);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.plan-card--featured {
  background: var(--c-primary);
  border-color: rgba(245,158,11,0.3);
  transform: scale(1.04);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,158,11,0.2);
  z-index: 1;
}

.plan-card--featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.3);
}

.plan-card__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-accent);
  padding: 0.3rem 1rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  white-space: nowrap;
}

.plan-card__header {
  padding: 2rem 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* El badge ocupa ~36px — el header del plan destacado necesita espacio extra arriba */
.plan-card--featured .plan-card__header,
.plan-card--hero .plan-card__header {
  padding-top: 3.5rem;
}

.plan-card__type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin-bottom: 0.5rem;
}

.plan-card__type--light { color: var(--c-accent); }

.plan-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.plan-card__sub {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-from { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.price-from--light { color: rgba(245,158,11,0.7); }

.price-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
}
.price-main--light { color: var(--c-accent); }

.price-per { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.price-per--light { color: rgba(245,158,11,0.5); }

.plan-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 400;
}

.plan-feature--included {
  color: rgba(255,255,255,0.75);
}
.plan-feature--included svg { color: #34D399; flex-shrink: 0; }

.plan-feature--not-included {
  color: rgba(255,255,255,0.25);
}
.plan-feature--not-included svg { color: rgba(255,255,255,0.2); flex-shrink: 0; }

.plan-feature--light { color: rgba(255,255,255,0.85); }
.plan-feature--light svg { flex-shrink: 0; }

.plan-card__cta { width: 100%; justify-content: center; }

.plans-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  margin-top: var(--space-xl);
  font-style: italic;
}

/* ─── TESTIMONIALS ───────────────────────────────── */
.testimonials-wrapper {
  position: relative;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  transition: transform var(--duration-slower) var(--ease-out);
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.testimonial-card:hover::before { opacity: 1; }

.testimonial-card__quote { flex-shrink: 0; }

.testimonial-card__text {
  font-size: 0.92rem;
  color: var(--c-text-body);
  line-height: 1.8;
  font-style: normal;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-style: normal;
  margin-top: auto;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-avatar--blue { background: #0369A1; }
.author-avatar--amber { background: var(--c-accent); color: var(--c-primary); }

.author-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-text-dark);
  display: block;
  letter-spacing: -0.01em;
}

.author-role {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  display: block;
  margin-top: 0.1rem;
}

.author-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: rgba(71,85,105,0.6);
  margin-top: 0.2rem;
}

.testimonial-card__stars {
  color: var(--c-accent);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Slider controls */
.slider-controls {
  display: none; /* hidden in desktop grid view */
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  background: white;
  color: var(--c-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--duration-fast),
    border-color var(--duration-fast),
    transform var(--duration-fast);
}

.slider-btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-primary);
  transform: scale(1.05);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-border);
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
  border: none;
}

.slider-dot.is-active {
  background: var(--c-accent);
  transform: scale(1.3);
}

/* ─── FAQ SECTION ────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-2xl);
  align-items: start;
}

.faq-header .section-label { justify-content: flex-start; }
.faq-header .section-title { text-align: left; }
.faq-header__sub {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.faq-item {
  background: white;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.faq-item.is-open {
  border-color: rgba(245,158,11,0.2);
  box-shadow: 0 4px 20px rgba(245,158,11,0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text-dark);
  text-align: left;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.faq-question:hover { color: var(--c-accent); }
.faq-item.is-open .faq-question { color: var(--c-accent); }

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
  color: var(--c-secondary);
}

.faq-item.is-open .faq-icon { transform: rotate(180deg); color: var(--c-accent); }

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  display: block;
}

.faq-answer[hidden] { display: none; }

.faq-answer p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.8;
  border-top: 1px solid rgba(15,23,42,0.06);
  padding-top: 1rem;
}

/* ─── CTA SECTION ────────────────────────────────── */
.cta-section {
  position: relative;
  background: var(--c-primary-deep);
  padding: var(--space-3xl) 0;
  overflow: hidden;
  color: white;
  text-align: center;
}

.cta-section__bg { position: absolute; inset: 0; }

.cta-section__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(245,158,11,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(56,189,248,0.04) 0%, transparent 60%);
}

.cta-section__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-section__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
}

.cta-section__glow--left {
  background: rgba(245,158,11,0.08);
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
}

.cta-section__glow--right {
  background: rgba(56,189,248,0.06);
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 0.45rem 1.25rem;
  border-radius: var(--r-full);
  margin-bottom: 2rem;
}

.cta-badge__dot {
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.cta-section__title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cta-section__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.cta-section__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cta-section__trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--c-primary-deep);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__top {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
  transition: opacity var(--duration-fast);
}
.footer__logo:hover { opacity: 1; }

.footer__tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition:
    color var(--duration-fast),
    border-color var(--duration-fast),
    background var(--duration-fast);
}

.social-link:hover {
  color: var(--c-accent);
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.06);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__nav a:hover { color: rgba(255,255,255,0.9); }

.footer__nav--upcoming { color: rgba(255,255,255,0.3) !important; }

.tag-soon {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--c-tech);
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-full);
}

.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast);
}

a.footer__contact-item:hover { color: rgba(255,255,255,0.85); }

.footer__contact-item--plain { cursor: default; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.25);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  transition: color var(--duration-fast);
}

.footer__legal a:hover { color: rgba(255,255,255,0.6); }

/* ─── SCROLL ANIMATION STATES ────────────────────── */

/* Elements start hidden, JS reveals them */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
[data-animate="fade-up"]:nth-child(2) { transition-delay: 80ms; }
[data-animate="fade-up"]:nth-child(3) { transition-delay: 160ms; }
[data-animate="fade-up"]:nth-child(4) { transition-delay: 240ms; }

/* ─── RESPONSIVE: TABLET LANDSCAPE (1025–1200px) ─── */
@media (max-width: 1200px) and (min-width: 1025px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .courses-grid { gap: 1rem; }
  .plans-row { gap: 1rem; }
  .why-card { padding: 1.5rem; }
  /* Plan hero: columnas más compactas */
  .plan-hero-features { gap: 0 0.75rem; }
}

/* ─── RESPONSIVE: TABLET (≤ 1024px) ─────────────── */
@media (max-width: 1024px) {
  /* Layout general */
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  /* Courses */
  .courses-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .course-card--featured { transform: none; }
  .courses-machines-intro { flex-direction: column; gap: 0.75rem; }

  /* Benefits */
  .benefits-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
  .benefits-text { text-align: center; }
  .benefits-text .section-label { justify-content: center; }
  .benefits-text .section-title { text-align: center; }

  /* Plans: hero colapsa a 1 columna interna */
  .plan-card--hero { grid-template-columns: 1fr; }
  .plan-card--hero .plan-card__header { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .plan-hero-features { grid-template-columns: 1fr 1fr; }
  .plans-row--2 { grid-template-columns: repeat(2, 1fr); }
  .plans-deadline-banner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Testimonials */
  .testimonials-slider { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* FAQ */
  .faq-layout { grid-template-columns: 1fr; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero__machine { width: 48vw; opacity: 0.3; }
}

/* ─── RESPONSIVE: MOBILE (≤ 768px) ──────────────── */
@media (max-width: 768px) {
  :root {
    --section-py: clamp(3rem, 6vw, 5rem);
    --urgency-h: 40px;
  }

  .desktop-br { display: none; }

  /* Navbar */
  .navbar__nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .navbar__inner { height: 60px; }

  /* Urgency bar mobile — ya gestionado arriba en su propio bloque */

  /* Hero */
  .hero__machine { width: 90vw; opacity: 0.15; right: -10%; }
  .hero__inner { padding: var(--space-2xl) 0 var(--space-xl); }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats-bar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .stat-divider { display: none; }
  .stat-item--highlight { grid-column: 1/-1; justify-content: center; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Courses */
  .courses-grid { max-width: 100%; }
  .course-card__visual { height: 200px; }
  .courses-machines-intro { flex-direction: column; gap: 0.5rem; font-size: 0.8rem; }
  .courses-price-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    padding: 0.65rem 1rem;
    text-align: left;
    width: 100%;
  }
  .courses-price-alert svg { flex-shrink: 0; margin-top: 2px; }

  /* Benefits */
  .benefits-grid { grid-template-columns: 1fr; }

  /* Plans */
  .plans-row--hero { gap: 1rem; }
  .plans-row--2 { grid-template-columns: 1fr; gap: 1rem; }
  .plan-card--hero { grid-template-columns: 1fr; }
  .plan-card--hero .plan-card__header { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .plan-hero-features { grid-template-columns: 1fr; gap: 0; }
  .plans-deadline-banner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .plans-deadline-banner .btn { width: 100%; text-align: center; justify-content: center; }

  /* Testimonials */
  .testimonials-slider { grid-template-columns: 1fr; overflow: hidden; }
  .testimonials-slider .testimonial-card:not(:first-child) { display: none; }
  .slider-controls { display: flex; }

  /* FAQ */
  .faq-layout { gap: var(--space-xl); }
  .faq-header .btn { width: 100%; justify-content: center; }

  /* CTA */
  .cta-section__actions { flex-direction: column; align-items: center; }
  .cta-section__actions .btn { width: 100%; max-width: 360px; justify-content: center; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

}

/* ─── RESPONSIVE: MÓVIL PEQUEÑO (≤ 480px) ───────── */
@media (max-width: 480px) {
  :root { --urgency-h: 36px; }

  /* Stats */
  .stats-bar__grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .stat-item { text-align: center; }
  .stat-item--highlight { grid-column: 1/-1; justify-content: center; text-align: center; flex-direction: column; }

  /* Hero compacto */
  .hero__inner { padding: var(--space-xl) 0 var(--space-lg); }
  .hero__headline { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero__sub { font-size: 0.9rem; }
  .hero__badges { gap: 0.5rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.3rem 0.65rem; }

  /* Cursos */
  .course-card__visual { height: 170px; }

  /* Plans */
  .price-main { font-size: 1.2rem; }
  .plan-card__header { padding: 1.25rem 1rem 1rem; }
  .plan-card__body { padding: 1rem; }
  .plan-card--hero .plan-card__cta { font-size: 0.9rem; }

  /* Benefits */
  .benefits-grid { grid-template-columns: 1fr; }

  /* FAQ */
  .faq-question { font-size: 0.86rem; padding: 1rem 1.1rem; }

  /* Footer */
  .footer__grid { gap: 1.5rem; }
  .footer__legal { gap: 1rem; }

  /* Urgency bar: ya gestionado en bloque propio */
}

/* ─── PRINT / REDUCED MOTION ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate="fade-up"],
  .hero__label, .hero__headline, .hero__sub, .hero__ctas, .hero__badges,
  .why-card, .course-card, .benefit-item, .plan-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════
   URGENCY BAR — PRECIO SUBE 27 MAYO
═══════════════════════════════════════════════════ */
:root {
  --urgency-h: 48px; /* valor inicial; JS lo actualiza al height real */
}
.urgency-bar {
  background: linear-gradient(90deg, #92400E 0%, #B45309 40%, #D97706 100%);
  color: #fff;
  /* Sin height fijo — crece con el contenido */
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  box-shadow: 0 2px 12px rgba(245,158,11,0.4);
  transition: transform 0.35s ease;
}
.urgency-bar.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}
.urgency-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  justify-content: center;
  /* sin overflow:hidden para que el countdown no quede recortado */
}
.urgency-bar__icon { font-size: 1rem; flex-shrink: 0; }
.urgency-bar__text {
  font-size: 0.82rem;
  text-align: center;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
}

/* Tablet — el texto puede envolver pero el contador se oculta */
@media (max-width: 900px) {
  .urgency-bar__inner { gap: 0.4rem; }
  .urgency-bar__countdown { display: none; }
  .urgency-bar__cta { display: none; }
  .urgency-bar__text { white-space: nowrap; font-size: 0.78rem; }
}

/* Móvil — solo texto e icono */
@media (max-width: 540px) {
  .urgency-bar__text { font-size: 0.72rem; white-space: normal; }
  .urgency-bar__icon { display: none; }
}
.urgency-bar__countdown {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  flex-shrink: 0;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2rem;
  line-height: 1;
}
.countdown-unit span { font-size: 0.9rem; font-weight: 700; }
.countdown-unit small { font-size: 0.55rem; opacity: 0.8; margin-top: 1px; }
.countdown-sep { font-weight: 700; opacity: 0.7; align-self: flex-start; margin-top: 1px; }
.urgency-bar__cta {
  background: #fff;
  color: #92400E;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.urgency-bar__cta:hover { background: #FEF3C7; }
.urgency-bar__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
}
.urgency-bar__close:hover { color: #fff; }

/* ── Compensar navbar que viene después de la barra ── */
body.urgency-visible .navbar { top: 0; }

/* ═══════════════════════════════════════════════════
   COURSES SECTION — PHOTO CARDS
═══════════════════════════════════════════════════ */
.courses-price-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.84rem;
  color: #FCD34D;
  margin-top: 0.5rem;
}

.course-card__photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(7,13,26,0.15) 0%,
    rgba(7,13,26,0.5)  55%,
    rgba(7,13,26,0.88) 100%
  );
}
/* Los badges encima del overlay */
.course-card__tag-badge,
.course-card__price-up-badge,
.course-card__featured-tag {
  z-index: 2;
}

.course-card__price-up-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(180,83,9,0.9);
  color: #FEF3C7;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* ═══════════════════════════════════════════════════
   PLANS SECTION — DEADLINE BANNER + 5 PLANS GRID
═══════════════════════════════════════════════════ */
.plans-deadline-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.plans-deadline-banner__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FCD34D;
}
.plans-deadline-banner__left svg { flex-shrink: 0; }
.plans-deadline-banner__left strong { display: block; font-size: 0.9rem; color: #FDE68A; }
.plans-deadline-banner__left span { font-size: 0.78rem; opacity: 0.85; }

/* ── Layout 1-2-2 para planes ── */
.plans-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.plans-row--hero {
  grid-template-columns: 1fr;
}
.plans-row--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) {
  .plans-row--2 { grid-template-columns: 1fr; }
}

/* Plan hero — ocupa ancho completo, layout horizontal interior */
.plan-card--hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.plan-card--hero .plan-card__header {
  border-right: 1px solid rgba(255,255,255,0.1);
}
.plan-card--hero .plan-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plan-hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.plan-features--hero {
  margin-bottom: 0;
}
.plan-card--hero .plan-card__cta {
  margin-top: 1.5rem;
  text-align: center;
}
@media (max-width: 900px) {
  .plan-card--hero {
    grid-template-columns: 1fr;
  }
  .plan-card--hero .plan-card__header {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .plan-hero-features {
    grid-template-columns: 1fr;
  }
}

/* Price warning badge on each plan */
.plan-price-warning {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #F97316;
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}
.plan-price-warning--light { color: #FDE68A; }

/* Matrícula $0 note */
.plans-note strong { color: var(--c-accent); }


/* ═══════════════════════════════════════════════════
   SAP SECTION — Estilos para hub y páginas de módulos
   Sección independiente, no afecta a sitio anterior
═══════════════════════════════════════════════════ */

/* ─── LOGO ACCENT (compartido: SAP + HOME) ────── */
.logo-accent {
  color: var(--c-accent);
}

/* ─── BREADCRUMB (navegación de vuelta al hub) ── */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}
.breadcrumb:hover { color: var(--c-tech); }

/* ─── SAP HUB — HERO ─────────────────────────── */
.sap-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(4rem, 8vw, 7rem);
  /* Foto de fondo */
  background-image: url('../images/sap/hero-sap.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Capa oscura sobre la foto — garantiza legibilidad del texto */
.sap-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(7, 13, 26, 0.82) 0%,
      rgba(7, 13, 26, 0.65) 50%,
      rgba(7, 13, 26, 0.30) 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* Viñeta inferior para transición suave al siguiente bloque */
.sap-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--c-primary-deep, #070d1a));
  pointer-events: none;
  z-index: 0;
}

.sap-hero__inner {
  position: relative;
  z-index: 1;
}

/* Columnas split ya no necesarias — layout de texto solo */
.sap-hero__content { width: 100%; max-width: 680px; }
.sap-hero__image   { display: none; }

.sap-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* ─── ROTATING WORD ──────────────────────────────── */
.sap-hero__rotating-word {
  display: inline-block;
  position: relative;
  /* Reserva el ancho del texto más largo para evitar saltos de layout */
  min-width: max-content;
}

.sap-hero__word {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  white-space: nowrap;
}

.sap-hero__word.is-visible {
  position: relative;  /* ocupa espacio en el flujo */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sap-hero__word.is-leaving {
  position: absolute;
  opacity: 0;
  transform: translateY(-12px);
}

.sap-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(248,250,252,0.88);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.sap-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ─── SAP HUB — MODULES GRID ─────────────────── */
.sap-modules {
  background: #0d1117;
}

.sap-category {
  margin-bottom: 3.5rem;
}
.sap-category:last-child { margin-bottom: 0; }

.sap-category__title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-tech);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(56,189,248,0.15);
}

.sap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ─── SAP CARD (enlace a módulo) ─────────────── */
.sap-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.sap-card:hover {
  background: rgba(56,189,248,0.06);
  border-color: rgba(56,189,248,0.25);
  transform: translateY(-3px);
}

.sap-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--c-tech);
  letter-spacing: 0.04em;
}

.sap-card__body {
  flex: 1;
  min-width: 0;
}

.sap-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-light);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.sap-card__desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(248,250,252,0.4);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sap-card__arrow {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-tech);
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 100px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.sap-card:hover .sap-card__arrow {
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.5);
  transform: translateX(2px);
}

/* ─── SAP MODULE HERO (páginas individuales) ──── */
.sap-module-hero {
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--c-primary-deep);
  position: relative;
  overflow: hidden;
}

.sap-module-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 90% 20%, rgba(56,189,248,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(245,158,11,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.sap-module-hero .container {
  position: relative;
  z-index: 1;
}

.sap-module-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-tech);
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: var(--r-md);
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

.sap-module-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--c-light);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 0.5rem;
}

.sap-module-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: rgba(248,250,252,0.45);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.sap-module-hero__desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(248,250,252,0.6);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.sap-module-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ─── SAP STATS BAR ──────────────────────────── */
.sap-module-stats {
  background: rgba(56,189,248,0.04);
  border-top: 1px solid rgba(56,189,248,0.08);
  border-bottom: 1px solid rgba(56,189,248,0.08);
  padding: 2.5rem 0;
}

.sap-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .sap-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.sap-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
  padding: 0.75rem;
}

.sap-stat-item__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--c-tech);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sap-stat-item__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(248,250,252,0.4);
  letter-spacing: 0.03em;
}

/* ─── SAP PROGRAM LIST ────────────────────────── */
.sap-module-program {
  background: #0d1117;
}

.sap-program-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.sap-program-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s ease;
}
.sap-program-item:last-child { border-bottom: none; }
.sap-program-item:hover { background: rgba(56,189,248,0.03); }

.sap-program-item__num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-tech);
  opacity: 0.6;
  padding-top: 0.25rem;
  min-width: 2rem;
}

.sap-program-item__body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-light);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.sap-program-item__body p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(248,250,252,0.45);
  line-height: 1.6;
  margin: 0;
}

/* ─── SAP AUDIENCE GRID ───────────────────────── */
.sap-module-audience {
  background: var(--c-primary-deep);
}

.sap-audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.sap-audience-item {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--c-tech);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(248,250,252,0.7);
  line-height: 1.55;
}

/* ─── SAP CTA (wrapper simplificado) ─────────── */
/* Las clases base (.cta-section, .cta-badge, etc.) ya existen.
   Solo añadimos el wrapper interno para las páginas SAP. */
.cta-section__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* ─── FOOTER SIMPLIFICADO (SAP + HOME) ───────── */
/* El footer de sitio anterior usa .footer__grid (4 cols complejas).
   Las páginas SAP y HOME usan una versión de 2 columnas más limpia. */
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__brand .logo-text {
  font-size: 1.1rem;
  color: var(--c-light);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.footer__copy {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(248,250,252,0.3);
  text-align: center;
}

.footer__copy a {
  color: rgba(248,250,252,0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__copy a:hover { color: rgba(248,250,252,0.8); }

/* ─── SAP RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .sap-hero__ctas,
  .sap-module-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .sap-program-item {
    padding: 1.25rem 1.25rem;
    gap: 1rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}


/* ═══════════════════════════════════════════════════
   MÁSTERS SAP — Hub y tarjetas de programas completos
═══════════════════════════════════════════════════ */

/* ─── SECCIÓN MÁSTERS ────────────────────────────── */
.master-section {
  background: linear-gradient(180deg, #0a0e16 0%, #0d1117 100%);
}

.master-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.master-intro__text { flex: 1; min-width: 280px; }

.master-intro__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--r-full);
  padding: 0.45rem 1rem;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ─── GRID DE MÁSTERS ────────────────────────────── */
.master-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .master-grid { grid-template-columns: 1fr; }
}

/* ─── TARJETA MÁSTER ─────────────────────────────── */
.master-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  padding: 2rem 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.master-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.master-card:hover {
  background: rgba(245,158,11,0.03);
  border-color: rgba(245,158,11,0.2);
  transform: translateY(-4px);
}
.master-card:hover::before { opacity: 1; }

/* ─── ENCABEZADO DE TARJETA ──────────────────────── */
.master-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.master-card__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  opacity: 0.7;
}

.master-card__hours {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(248,250,252,0.35);
  white-space: nowrap;
}

.master-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--c-light);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ─── MÓDULOS INCLUIDOS ──────────────────────────── */
.master-card__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.master-card__module-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--c-tech);
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: var(--r-sm);
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.04em;
}

/* ─── DESCRIPCIÓN ────────────────────────────────── */
.master-card__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(248,250,252,0.45);
  line-height: 1.65;
  flex: 1;
}

/* ─── META + CTA ─────────────────────────────────── */
.master-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.master-card__certs {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(248,250,252,0.3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.master-card__certs::before {
  content: '🎓';
  font-size: 0.72rem;
}

/* ─── SECCIÓN MÓDULOS INDIVIDUALES ───────────────── */
.modules-section {
  background: #0a0e16;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ─── POR QUÉ ELEGIRNOS (reutiliza .why-card) ────── */
.sap-why-section {
  background: var(--c-primary-deep);
}

/* ─── HIGHLIGHTS — QUÉ APRENDERÁS ───────────────── */
.sap-highlights-section {
  background: #0d1117;
}

.sap-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.75rem;
}

.sap-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(248,250,252,0.65);
  line-height: 1.5;
}

.sap-highlight-item::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-tech);
  margin-top: 0.45rem;
}

/* ─── CURRICULUM ─────────────────────────────────── */
.sap-curriculum-section {
  background: var(--c-primary-deep);
}

.sap-curriculum__part {
  margin-bottom: 2.5rem;
}
.sap-curriculum__part:last-child { margin-bottom: 0; }

.sap-curriculum__part-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(56,189,248,0.05);
  border: 1px solid rgba(56,189,248,0.12);
  border-radius: var(--r-md);
  margin-bottom: 1rem;
}

.sap-curriculum__part-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-tech);
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: var(--r-sm);
  padding: 0.2rem 0.6rem;
}

.sap-curriculum__part-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-light);
  letter-spacing: -0.01em;
}

.sap-curriculum__part-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(248,250,252,0.35);
  margin-left: auto;
  white-space: nowrap;
}

/* Reuse .faq-item styles but with overrides for curriculum */
.sap-curriculum__part .faq-item {
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-md);
  margin-bottom: 0.5rem;
}

.sap-curriculum__part .faq-item.is-open {
  border-color: rgba(56,189,248,0.18);
}

.sap-curriculum__part .faq-question {
  font-size: 0.875rem;
  padding: 1rem 1.25rem;
  gap: 0.75rem;
}

.sap-curriculum__part .faq-item.is-open .faq-question {
  color: var(--c-tech);
}

.sap-curriculum__part .faq-icon { color: rgba(248,250,252,0.3); }
.sap-curriculum__part .faq-item.is-open .faq-icon { color: var(--c-tech); }

.sap-curriculum__part .faq-answer {
  padding: 0.75rem 1.25rem 1.25rem;
}

.curriculum-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.curriculum-bullets li {
  font-family: var(--font-body);
  font-size: 0.835rem;
  color: rgba(248,250,252,0.55);
  line-height: 1.55;
  padding-left: 1.25rem;
  position: relative;
}

.curriculum-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--c-tech);
  opacity: 0.5;
  font-size: 0.7rem;
}

/* ─── MODALIDAD ──────────────────────────────────── */
.sap-modality-section {
  background: #0d1117;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.sap-modality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.sap-modality-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
}

.sap-modality-item__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.sap-modality-item__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-light);
  letter-spacing: -0.01em;
}

.sap-modality-item__desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(248,250,252,0.4);
  line-height: 1.55;
  margin: 0;
}

/* ─── CERT PILL (en hero de módulo) ─────────────── */
.sap-cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(248,250,252,0.5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-full);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}

.sap-cert-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-tech);
  flex-shrink: 0;
}

/* ─── HUB STATS BAR ──────────────────────────────── */
.hub-stats {
  background: rgba(56,189,248,0.04);
  border-top: 1px solid rgba(56,189,248,0.08);
  border-bottom: 1px solid rgba(56,189,248,0.08);
  padding: 2rem 0;
}

.hub-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .hub-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

.hub-stats__item {
  text-align: center;
  padding: 0.5rem;
}

.hub-stats__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--c-tech);
  letter-spacing: -0.04em;
  display: block;
  line-height: 1.1;
}

.hub-stats__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(248,250,252,0.35);
  margin-top: 0.3rem;
  display: block;
}

/* ─── AUDIENCE GRID (3 cards) ────────────────────── */
.sap-audience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.sap-audience-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}

.sap-audience-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.sap-audience-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-light);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.sap-audience-card__desc {
  font-family: var(--font-body);
  font-size: 0.825rem;
  color: rgba(248,250,252,0.4);
  line-height: 1.6;
  margin: 0;
}


/* ═══════════════════════════════════════════════════
   SAP IDENTITY — Visual overrides
   ─ Scope: ONLY .sap-*, .master-*, .hub-stats,
            .modules-section, .breadcrumb, .btn--primary
   ─ .btn--primary is safe globally: sitio anterior pages
     never use this class
   ─ Does NOT affect sitio anterior
═══════════════════════════════════════════════════ */

/* ─── BOTÓN PRIMARY (azul corporativo) ──────────── */
/* Define el botón principal ausente. sitio anterior no lo usa. */
.btn--primary {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1D4ED8 100%);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.5);
}

/* ─── HERO SAP (hub) ────────────────────────────── */
.sap-hero {
  /* Mantiene la foto de fondo definida arriba — solo se añade color de respaldo */
  background-color: #0B0F19;
}
.sap-hero::before {
  background:
    linear-gradient(
      105deg,
      rgba(7, 13, 26, 0.82) 0%,
      rgba(7, 13, 26, 0.65) 50%,
      rgba(7, 13, 26, 0.30) 100%
    );
}
/* Acento de título en hero SAP → azul, no ámbar */
.sap-hero .text-accent {
  color: #3B82F6;
}

/* ─── STATS BAR (hub) ───────────────────────────── */
.hub-stats {
  background: rgba(37, 99, 235, 0.05);
  border-top-color:    rgba(37, 99, 235, 0.12);
  border-bottom-color: rgba(37, 99, 235, 0.12);
}
.hub-stats__value {
  color: #3B82F6;
}
.hub-stats__label {
  color: rgba(249, 250, 251, 0.55);
}

/* ─── SECCIÓN MÁSTERS ────────────────────────────── */
.master-section {
  background: linear-gradient(180deg, #0B0F19 0%, #111827 100%);
}
.master-intro__badge {
  color: #3B82F6;
  background:   rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

/* ─── TARJETAS MÁSTER ────────────────────────────── */
.master-card {
  background:   #1a2236;
  border-color: rgba(255, 255, 255, 0.08);
}
.master-card:hover {
  background:   #1e2a40;
  border-color: rgba(37, 99, 235, 0.32);
}
.master-card::before {
  background: linear-gradient(90deg, #2563EB, transparent);
}
.master-card__label {
  color:   #3B82F6;
  opacity: 1;
}
.master-card__hours {
  color: rgba(249, 250, 251, 0.45);
}
.master-card__desc {
  color: rgba(249, 250, 251, 0.6);
}
.master-card__module-tag {
  color:        #60A5FA;
  background:   rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.18);
}
.master-card__certs {
  color: rgba(249, 250, 251, 0.4);
}
.master-card__footer {
  border-top-color: rgba(255, 255, 255, 0.07);
}

/* ─── SECCIÓN MÓDULOS INDIVIDUALES (hub grid) ────── */
.modules-section {
  background:         #0f172a;
  border-top-color:   rgba(37, 99, 235, 0.07);
}
.sap-modules {
  background: #111827;
}

/* ─── CATEGORÍA Y CARDS DEL GRID ─────────────────── */
.sap-category__title {
  color:              #3B82F6;
  border-bottom-color: rgba(37, 99, 235, 0.18);
}
.sap-card {
  background:   #1a2236;
  border-color: rgba(255, 255, 255, 0.07);
}
.sap-card:hover {
  background:   #1e2a40;
  border-color: rgba(37, 99, 235, 0.3);
}
.sap-card__icon {
  background:   rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.18);
  color:        #3B82F6;
}
.sap-card__name {
  color: #F9FAFB;
}
.sap-card__desc {
  color: rgba(249, 250, 251, 0.55);
}
.sap-card__arrow {
  color: rgba(56,189,248,0.7);
  border-color: rgba(56,189,248,0.2);
}
.sap-card:hover .sap-card__arrow {
  color: var(--c-tech);
  border-color: rgba(56,189,248,0.45);
  background: rgba(56,189,248,0.08);
}

/* ─── SAP WHY ────────────────────────────────────── */
.sap-why-section {
  background: #0B0F19;
}

/* ─── HERO MÓDULO (páginas individuales) ─────────── */
.sap-module-hero {
  background: #0B0F19;
}
.sap-module-hero::before {
  background:
    radial-gradient(ellipse 60% 70% at 90% 20%, rgba(37, 99, 235, 0.1)  0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at  5% 90%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}
.sap-module-hero__badge {
  color:        #3B82F6;
  background:   rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}
.sap-module-hero__subtitle {
  color: rgba(249, 250, 251, 0.55);
}
.sap-module-hero__desc {
  color: rgba(249, 250, 251, 0.7);
}

/* ─── STATS BAR (módulo) ─────────────────────────── */
.sap-module-stats {
  background:         rgba(37, 99, 235, 0.05);
  border-top-color:    rgba(37, 99, 235, 0.1);
  border-bottom-color: rgba(37, 99, 235, 0.1);
}
.sap-stat-item__value {
  color: #3B82F6;
}
.sap-stat-item__label {
  color: rgba(249, 250, 251, 0.55);
}

/* ─── PROGRAMA DEL CURSO ─────────────────────────── */
.sap-module-program {
  background: #111827;
}
.sap-program-list {
  border-color: rgba(255, 255, 255, 0.07);
}
.sap-program-item {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.sap-program-item:hover {
  background: rgba(37, 99, 235, 0.04);
}
.sap-program-item__num {
  color: #3B82F6;
}
.sap-program-item__body h4 {
  color: #F9FAFB;
}
.sap-program-item__body p {
  color: rgba(249, 250, 251, 0.6);
}

/* ─── AUDIENCIA (módulo) ─────────────────────────── */
.sap-module-audience {
  background: #0B0F19;
}
.sap-audience-item {
  background:        #1a2236;
  border-color:      rgba(255, 255, 255, 0.07);
  border-left-color: #2563EB;
  color:             rgba(249, 250, 251, 0.75);
}
.sap-audience-card {
  background:   #1a2236;
  border-color: rgba(255, 255, 255, 0.07);
}
.sap-audience-card__title {
  color: #F9FAFB;
}
.sap-audience-card__desc {
  color: rgba(249, 250, 251, 0.6);
}

/* ─── HIGHLIGHTS ─────────────────────────────────── */
.sap-highlights-section {
  background: #111827;
}
.sap-highlight-item {
  background:   #1a2236;
  border-color: rgba(255, 255, 255, 0.06);
  color:        rgba(249, 250, 251, 0.7);
}
.sap-highlight-item::before {
  background: #3B82F6;
}

/* ─── CURRICULUM ─────────────────────────────────── */
.sap-curriculum-section {
  background: #0B0F19;
}
.sap-curriculum__part-header {
  background:   rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.14);
}
.sap-curriculum__part-badge {
  color:        #3B82F6;
  background:   rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}
.sap-curriculum__part-title {
  color: #F9FAFB;
}
.sap-curriculum__part-sub {
  color: rgba(249, 250, 251, 0.45);
}
.sap-curriculum__part .faq-item {
  border-color: rgba(255, 255, 255, 0.06);
}
.sap-curriculum__part .faq-item.is-open {
  border-color: rgba(37, 99, 235, 0.22);
}
.sap-curriculum__part .faq-item.is-open .faq-question {
  color: #3B82F6;
}
.sap-curriculum__part .faq-icon {
  color: rgba(249, 250, 251, 0.3);
}
.sap-curriculum__part .faq-item.is-open .faq-icon {
  color: #3B82F6;
}
.curriculum-bullets li {
  color: rgba(249, 250, 251, 0.65);
}
.curriculum-bullets li::before {
  color:   #3B82F6;
  opacity: 0.6;
}

/* ─── MODALIDAD ──────────────────────────────────── */
.sap-modality-section {
  background:       #111827;
  border-top-color: rgba(37, 99, 235, 0.07);
}
.sap-modality-item {
  background:   #1a2236;
  border-color: rgba(255, 255, 255, 0.07);
}
.sap-modality-item__title {
  color: #F9FAFB;
}
.sap-modality-item__desc {
  color: rgba(249, 250, 251, 0.6);
}

/* ─── CERT PILL ──────────────────────────────────── */
.sap-cert-pill {
  color:        rgba(249, 250, 251, 0.6);
  background:   rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.12);
}
.sap-cert-pill__dot {
  background: #3B82F6;
}

/* ─── BREADCRUMB ─────────────────────────────────── */
.breadcrumb:hover {
  color: #3B82F6;
}

/* ─── HERO CON IMAGEN — patrón reutilizable por módulo ─ */
/* Cada módulo añade una clase .sap-module-hero--{codigo}
   con su propia imagen. El overlay garantiza legibilidad. */

.sap-module-hero--mm {
  background-image:
    /* Overlay: gradiente oscuro azul — texto siempre legible */
    linear-gradient(
      135deg,
      rgba(11, 15, 25, 0.88) 0%,
      rgba(11, 15, 25, 0.72) 50%,
      rgba(11, 15, 25, 0.82) 100%
    ),
    url('../images/sap/hero-mm.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* ─── TIPOGRAFÍA GLOBAL EN SECCIONES OSCURAS SAP ──── */
/* .section-title hereda color: var(--c-text-dark) = #111827.
   En los fondos azul-oscuro de SAP sería invisible.
   Scoped a los contenedores SAP específicos. */
.sap-hero .section-label,
.master-section .section-label,
.modules-section .section-label,
.sap-why-section .section-label,
.sap-highlights-section .section-label,
.sap-curriculum-section .section-label,
.sap-modality-section .section-label,
.sap-module-program .section-label,
.sap-module-audience .section-label {
  color: #3B82F6;
}

.master-section .section-title,
.modules-section .section-title,
.sap-why-section .section-title,
.sap-highlights-section .section-title,
.sap-curriculum-section .section-title,
.sap-modality-section .section-title,
.sap-module-program .section-title,
.sap-module-audience .section-title {
  color: #F9FAFB;
}

.master-section .section-sub,
.modules-section .section-sub,
.sap-why-section .section-sub,
.sap-highlights-section .section-sub,
.sap-curriculum-section .section-sub,
.sap-modality-section .section-sub,
.sap-module-program .section-sub,
.sap-module-audience .section-sub {
  color: rgba(249, 250, 251, 0.55);
}


/* ═══════════════════════════════════════════════════
   SAP IDENTITY — Responsive fixes
   Scope: ONLY SAP-specific selectors y
          .navbar__inner > direct children (safe: sitio anterior
          wraps links en .navbar__nav, SAP no)
═══════════════════════════════════════════════════ */

/* ─── NAVBAR SAP: padding lateral (sin clase .container) ─ */
/* sitio anterior usa .container.navbar__inner → ya tiene padding.
   SAP usa solo .navbar__inner → necesita padding propio.
   :not(.container) evita doble padding en sitio anterior. */
.navbar__inner:not(.container) {
  padding-left:  clamp(1.25rem, 5vw, 2.5rem);
  padding-right: clamp(1.25rem, 5vw, 2.5rem);
}

/* ─── RESPONSIVE: TABLET Y MOBILE SAP ────────────── */
@media (max-width: 768px) {

  /* ── Navbar móvil SAP ─────────────────────────── */
  /* SAP no envuelve los links en .navbar__nav, así que
     el selector .navbar__nav { display:none } no los oculta.
     Este selector es seguro: en sitio anterior los links están
     dentro de .navbar__nav → NO son hijos directos de __inner. */
  .navbar__inner > .navbar__links {
    display: none;
  }
  /* CTA del navbar SAP (clase .navbar__cta) — también ocultar en mobile */
  .navbar__inner > .navbar__cta {
    display: none;
  }

  /* ── Hero SAP: botones full-width en mobile ────── */
  .sap-hero__ctas .btn,
  .sap-module-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Master intro: colapsar badge a su propio renglón ─ */
  .master-intro {
    flex-direction: column;
    gap: 1.25rem;
  }
  .master-intro__badge {
    align-self: flex-start;
  }

  /* ── Hub stats: reducir font-size en stats value ─ */
  .hub-stats__value {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  /* ── SAP module stats bar: botones y texto ─────── */
  .sap-stat-item__value {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  }

  /* ── Footer nav: evitar overflow ───────────────── */
  .footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
}

/* ─── RESPONSIVE: MÓVIL PEQUEÑO (≤ 480px) SAP ────── */
@media (max-width: 480px) {

  /* ── Stats grid: override inline style 5-col (sap-mm) ─ */
  /* !important necesario para vencer el inline style
     style="grid-template-columns: repeat(5,1fr)" */
  .sap-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem;
  }

  /* ── Hub stats: 2 cols en pantallas pequeñas ────── */
  .hub-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* ── Curriculum header: evitar overflow en línea ─ */
  .sap-curriculum__part-header {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }
  /* El "sub" (ej. "8 horas") deja de empujarse con margin-left:auto */
  .sap-curriculum__part-sub {
    margin-left: 0;
    width: 100%;
  }

  /* ── Module hero badge: compactar en pantallas tiny ─ */
  .sap-module-hero__badge {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  /* ── Cert pill: evitar overflow ─────────────────── */
  .sap-cert-pill {
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
    letter-spacing: 0.04em;
  }

  /* ── Master card footer: stack en muy pequeño ───── */
  .master-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* ── Breadcrumb: reducir tamaño ─────────────────── */
  .breadcrumb {
    font-size: 0.8rem;
  }

  /* ── Section header margin ───────────────────────── */
  .sap-module-hero .container {
    padding-top: 0.5rem;
  }
}

/* ─── RESPONSIVE: TABLET MEDIO (≤ 900px) SAP ───────── */
@media (max-width: 900px) {

  /* ── Master intro: text full-width ──────────────── */
  .master-intro__text {
    min-width: 100%;
  }

  /* ── Why-grid SAP: 2 columnas en tablet ─────────── */
  .sap-why-section .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ─── RESPONSIVE: MOBILE SAP why-grid 1 col ─────────── */
/* Sobreescribe la regla anterior de 900px para mobile.
   Sin esto, .sap-why-section .why-grid mantiene 2 cols
   por mayor especificidad, aplastando el 1fr global de 768px. */
@media (max-width: 640px) {
  .sap-why-section .why-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
  /* Why-cards más compactas en mobile */
  .sap-why-section .why-card {
    padding: 1.5rem;
  }
}

/* ─── RESPONSIVE: DESKTOP GRANDE (≥ 1400px) SAP ─────── */
@media (min-width: 1400px) {
  /* Master grid a 3 columnas en pantallas muy anchas */
  .master-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── OVERFLOW HORIZONTAL: prevención global SAP ────── */
/* Evita que cualquier elemento SAP rompa el viewport */
.sap-hero,
.sap-module-hero,
.master-section,
.modules-section,
.sap-module-stats,
.sap-module-program,
.sap-module-audience,
.sap-highlights-section,
.sap-curriculum-section,
.sap-modality-section,
.hub-stats {
  overflow-x: hidden;
}


/* ═══════════════════════════════════════════════════
   SAP IDENTITY — Bug fixes visuales
═══════════════════════════════════════════════════ */

/* ─── FIX 0: Section titles invisibles en secciones SAP sin clase wrapper ─ */
/* Afecta a secciones <section class="section" style="background:#0d1117;">
   que contienen .sap-audience-cards o tienen .faq-list como hijo directo.
   sitio anterior tiene .faq-list dentro de .faq-layout → NO es hijo directo de
   .container → el selector :has(> .faq-list) NO lo afecta. */

/* Audiencia: "¿Para quién es este curso?" */
.container:has(.sap-audience-cards) .section-title,
.container:has(.sap-audience-cards) .section-label {
  color: #F9FAFB;
}
.container:has(.sap-audience-cards) .section-label {
  color: #3B82F6;
}

/* FAQ SAP standalone: "Resolvemos tus dudas"
   :has(> .faq-list) = faq-list es hijo DIRECTO del container → solo SAP */
.container:has(> .faq-list) .section-title {
  color: #F9FAFB;
}
.container:has(> .faq-list) .section-label {
  color: #3B82F6;
}

/* FAQ items dentro de secciones SAP dark (faq-list hijo directo de container)
   En sitio anterior faq-list va dentro de .faq-layout → no aplica */
.container > .faq-list .faq-item {
  background:   #1a2236;
  border-color: rgba(255, 255, 255, 0.07);
}
.container > .faq-list .faq-item.is-open {
  background:   #1e2a40;
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow:   none;
}
.container > .faq-list .faq-question {
  color: #F9FAFB;
}
.container > .faq-list .faq-question:hover {
  color: #3B82F6;
}
.container > .faq-list .faq-item.is-open .faq-question {
  color: #3B82F6;
}
.container > .faq-list .faq-icon {
  color: rgba(249, 250, 251, 0.35);
}
.container > .faq-list .faq-item.is-open .faq-icon {
  color: #3B82F6;
}
.container > .faq-list .faq-answer p {
  color:       rgba(249, 250, 251, 0.65);
  border-top:  1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.875rem;
}

/* ─── FIX 1: Logo "Capacitando" invisible ───────────── */
/* .logo-text no tiene color definido → hereda #111827 del body.
   En la navbar (siempre dark) el texto queda invisible.
   Aplica a navbar y footer SAP, sin afectar sitio anterior
   (sitio anterior usa .logo-name y .logo-country con colores propios). */
.navbar .logo-text {
  color: #ffffff;
}
.footer .logo-text {
  color: #ffffff;
}

/* ─── FIX 1b: Stats bar fondo sólido ────────────────── */
/* rgba(37,99,235,0.05) sobre body #F8FAFC = casi blanco.
   Reemplazar con fondo sólido para garantizar contraste. */
.sap-module-stats {
  background:         #0d1525;
  border-top-color:    rgba(37, 99, 235, 0.15);
  border-bottom-color: rgba(37, 99, 235, 0.15);
}
.hub-stats {
  background:         #0d1525;
  border-top-color:    rgba(37, 99, 235, 0.15);
  border-bottom-color: rgba(37, 99, 235, 0.15);
}
/* Asegurar que los labels sean visibles sobre fondo sólido */
.sap-stat-item__label,
.hub-stats__label {
  color: rgba(249, 250, 251, 0.6);
}

/* ─── FIX 1c: Why-cards en SAP (background white heredado) ─ */
/* .why-card { background: white } es correcto para sitio anterior.
   Scoped a .sap-why-section para no afectarla. */
.sap-why-section .why-card {
  background:   #1a2236;
  border-color: rgba(255, 255, 255, 0.07);
}
.sap-why-section .why-card:hover {
  background:   #1e2a40;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow:   0 8px 32px rgba(0, 0, 0, 0.3);
}
.sap-why-section .why-card--featured {
  background:   #1e2a40;
  border-color: rgba(37, 99, 235, 0.3);
}
.sap-why-section .why-card__title {
  color: #F9FAFB;
}
.sap-why-section .why-card__text {
  color: rgba(249, 250, 251, 0.65);
}
.sap-why-section .why-card--featured .why-card__title,
.sap-why-section .why-card--featured .why-card__text {
  color: #F9FAFB;
}
.sap-why-section .why-card--featured .why-card__text {
  color: rgba(249, 250, 251, 0.65);
}
.sap-why-section .why-card__tag {
  color: #3B82F6;
}
.sap-why-section .why-card--featured .why-card__tag {
  color: #60A5FA;
}
.sap-why-section .why-card__icon {
  background: rgba(37, 99, 235, 0.12);
  color:      #3B82F6;
}
.sap-why-section .why-card--featured .why-card__icon {
  background: rgba(37, 99, 235, 0.2);
  color:      #60A5FA;
}
.sap-why-section .why-card:hover .why-card__icon {
  background: rgba(37, 99, 235, 0.2);
}
.sap-why-section .why-card__bullets li {
  color: rgba(249, 250, 251, 0.6);
}
.sap-why-section .why-card__bullets li svg {
  color: #3B82F6;
}
.sap-why-section .why-card__accent {
  background: linear-gradient(90deg, #2563EB, transparent);
}

/* ─── FIX 2: FAQ acordeón fondo blanco en curriculum ─── */
/* El base .faq-item { background: white } se filtra al curriculum.
   Sobrescribir solo dentro del contexto SAP curriculum. */
.sap-curriculum__part .faq-item {
  background: #1a2236;
}
.sap-curriculum__part .faq-item.is-open {
  background: #1e2a40;
  box-shadow: none;
}
/* Pregunta: texto oscuro heredado → forzar blanco */
.sap-curriculum__part .faq-question {
  color: #F9FAFB;
}
.sap-curriculum__part .faq-question:hover {
  color: #3B82F6;
}
/* Respuesta: border-top era oscuro sobre blanco → invertir */
.sap-curriculum__part .faq-answer p {
  color:        rgba(249, 250, 251, 0.65);
  border-top:   1px solid rgba(255, 255, 255, 0.07);
  padding-top:  0.875rem;
}
/* Ícono de colapso */
.sap-curriculum__part .faq-icon {
  color: rgba(249, 250, 251, 0.35);
}
.sap-curriculum__part .faq-item.is-open .faq-icon {
  color: #3B82F6;
}
.sap-curriculum__part .faq-item.is-open .faq-question {
  color: #3B82F6;
}



/* ─── HERO IMAGES — módulos SAP individuales ────────── */
/* Overlay: gradiente oscuro → texto siempre legible.
   Path relativo desde assets/css/ → ../images/sap/  */

.sap-module-hero--abap {
  background-image:
    linear-gradient(135deg, rgba(11,15,25,0.88) 0%, rgba(11,15,25,0.70) 50%, rgba(11,15,25,0.82) 100%),
    url('../images/sap/hero-abap.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.sap-module-hero--basis {
  background-image:
    linear-gradient(135deg, rgba(11,15,25,0.88) 0%, rgba(11,15,25,0.70) 50%, rgba(11,15,25,0.82) 100%),
    url('../images/sap/hero-basis.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.sap-module-hero--bw {
  background-image:
    linear-gradient(135deg, rgba(11,15,25,0.88) 0%, rgba(11,15,25,0.70) 50%, rgba(11,15,25,0.82) 100%),
    url('../images/sap/hero-bw.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.sap-module-hero--co {
  background-image:
    linear-gradient(135deg, rgba(11,15,25,0.88) 0%, rgba(11,15,25,0.70) 50%, rgba(11,15,25,0.82) 100%),
    url('../images/sap/hero-co.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.sap-module-hero--ewm {
  background-image:
    linear-gradient(135deg, rgba(11,15,25,0.88) 0%, rgba(11,15,25,0.70) 50%, rgba(11,15,25,0.82) 100%),
    url('../images/sap/hero-ewm.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.sap-module-hero--fi {
  background-image:
    linear-gradient(135deg, rgba(11,15,25,0.88) 0%, rgba(11,15,25,0.70) 50%, rgba(11,15,25,0.82) 100%),
    url('../images/sap/hero-fi.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.sap-module-hero--hana {
  background-image:
    linear-gradient(135deg, rgba(11,15,25,0.88) 0%, rgba(11,15,25,0.70) 50%, rgba(11,15,25,0.82) 100%),
    url('../images/sap/hero-hana.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.sap-module-hero--hcm {
  background-image:
    linear-gradient(135deg, rgba(11,15,25,0.88) 0%, rgba(11,15,25,0.70) 50%, rgba(11,15,25,0.82) 100%),
    url('../images/sap/hero-hcm.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.sap-module-hero--sd {
  background-image:
    linear-gradient(135deg, rgba(11,15,25,0.88) 0%, rgba(11,15,25,0.70) 50%, rgba(11,15,25,0.82) 100%),
    url('../images/sap/hero-sd.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.sap-module-hero--sf {
  background-image:
    linear-gradient(135deg, rgba(11,15,25,0.88) 0%, rgba(11,15,25,0.70) 50%, rgba(11,15,25,0.82) 100%),
    url('../images/sap/hero-sf.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.sap-module-hero--pm {
  background-image:
    linear-gradient(135deg, rgba(11,15,25,0.88) 0%, rgba(11,15,25,0.70) 50%, rgba(11,15,25,0.82) 100%),
    url('../images/sap/hero-ma:am.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}


/* ═══════════════════════════════════════════════════
   SAP — LIGHT THEME (Opción A: Corporate Light)
   Reemplaza paleta dark navy/negro por azules corporativos limpios.
   Scope: SOLO selectores SAP — NO toca sitio anterior.
═══════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────
   SAP SUBNAV — Barra de navegación secundaria por categoría
   Aparece debajo del navbar principal en todas las páginas SAP.
   Sticky bajo el navbar (top: 64px) al hacer scroll.
──────────────────────────────────────────────────── */
.sap-subnav {
  background: #FFFFFF;
  border-bottom: 1px solid #E0E7FF;
  position: sticky;
  top: 64px;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.06);
}

.sap-subnav__inner {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: stretch;
  height: 48px;
}

.sap-subnav__link {
  display: flex;
  align-items: center;
  padding: 0 1.4rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E40AF;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid #E0E7FF;
  transition: color 0.15s, background 0.15s;
  gap: 0.4rem;
}
.sap-subnav__link::before {
  content: '⭐';
  font-size: 0.75rem;
  opacity: 0.8;
}
.sap-subnav__link:hover {
  color: #1D4ED8;
  background: #EEF2FF;
}

.sap-subnav__group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.sap-subnav__trigger {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1.25rem;
  background: none;
  border: none;
  border-right: 1px solid #E0E7FF;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.sap-subnav__trigger:hover,
.sap-subnav__group.is-open .sap-subnav__trigger {
  color: #1D4ED8;
  background: #EEF2FF;
}

.sap-subnav__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: currentColor;
}
.sap-subnav__group.is-open .sap-subnav__chevron {
  transform: rotate(180deg);
}

.sap-subnav__dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 260px;
  background: #FFFFFF;
  border: 1px solid #E0E7FF;
  border-top: 3px solid #1D4ED8;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 32px rgba(29, 78, 216, 0.13);
  display: none;
  z-index: 1000;
  overflow: hidden;
}
.sap-subnav__group.is-open .sap-subnav__dropdown {
  display: block;
  animation: subnav-drop 0.18s ease;
}
@keyframes subnav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sap-subnav__dropdown a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.12s, background 0.12s, padding-left 0.15s;
  border-bottom: 1px solid #F0F4FF;
}
.sap-subnav__dropdown a:last-child { border-bottom: none; }
.sap-subnav__dropdown a:hover {
  color: #1D4ED8;
  background: #EEF2FF;
  padding-left: 1.6rem;
}

/* Mobile: scrollable horizontal */
@media (max-width: 768px) {
  .sap-subnav {
    top: 56px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sap-subnav::-webkit-scrollbar { display: none; }
  .sap-subnav__inner {
    width: max-content;
    min-width: 100%;
    height: 44px;
  }
  .sap-subnav__link,
  .sap-subnav__trigger {
    font-size: 0.8rem;
    padding: 0 0.9rem;
  }
}


/* ────────────────────────────────────────────────────
   HUB (sap/index.html) — Fondos y textos en claro
──────────────────────────────────────────────────── */

/* Hub stats: banda azul sólida */
.hub-stats {
  background: #1D4ED8;
  border-top: none;
  border-bottom: none;
}
.hub-stats__value {
  color: #FFFFFF;
  text-shadow: none;
}
.hub-stats__label {
  color: rgba(255,255,255,0.82);
}

/* Master section: fondo gris nieve */
.master-section {
  background: #F8FAFC;
}
.master-card {
  background: #FFFFFF;
  border-color: #E0E7FF;
}
.master-card:hover {
  border-color: #A5B4FC;
  box-shadow: 0 8px 32px rgba(29, 78, 216, 0.1);
}
.master-card__title { color: #0F172A; }
.master-card__desc  { color: #475569; }
.master-card__label,
.master-card__hours {
  color: #6366F1;
  background: #EEF2FF;
}
.master-card__module-tag {
  color: #1D4ED8;
  background: #DBEAFE;
  border-color: #BFDBFE;
}
.master-card__certs { color: #6B7280; }

/* Módulos individuales section */
.modules-section { background: #FFFFFF; }
.sap-category__title { color: #1E40AF; }
.sap-card {
  background: #FFFFFF;
  border-color: #E0E7FF;
}
.sap-card:hover {
  border-color: #A5B4FC;
  box-shadow: 0 4px 20px rgba(29, 78, 216, 0.1);
}
.sap-card__icon    { color: #1D4ED8; background: #DBEAFE; }
.sap-card__name    { color: #0F172A; }
.sap-card__desc    { color: #475569; }
.sap-card__arrow   { color: #1D4ED8; border-color: #BFDBFE; }
.sap-card:hover .sap-card__arrow { color: #1D4ED8; border-color: #93C5FD; background: #EFF6FF; }

/* Why section (hub) */
.sap-why-section { background: #F8FAFC; }
.sap-why-section .why-card {
  background: #FFFFFF;
  border-color: #E0E7FF;
  color: #475569;
}
.sap-why-section .why-card:hover {
  border-color: #A5B4FC;
  box-shadow: 0 8px 32px rgba(29, 78, 216, 0.1);
  background: #FAFBFF;
}
.sap-why-section .why-card--featured {
  background: #1D4ED8;
  border-color: #1D4ED8;
}
.sap-why-section .why-card__title { color: #0F172A; }
.sap-why-section .why-card__text  { color: #475569; }
.sap-why-section .why-card--featured .why-card__title,
.sap-why-section .why-card--featured .why-card__text { color: #FFFFFF; }
.sap-why-section .why-card--featured .why-card__text { color: rgba(255,255,255,0.88); }
.sap-why-section .why-card__icon {
  background: #DBEAFE;
  color: #1D4ED8;
}
.sap-why-section .why-card--featured .why-card__icon {
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
}
.sap-why-section .why-card:hover .why-card__icon { background: #BFDBFE; }
.sap-why-section .why-card__tag  { color: #1D4ED8; background: #DBEAFE; }
.sap-why-section .why-card--featured .why-card__tag {
  color: #BFDBFE;
  background: rgba(255,255,255,0.12);
}
.sap-why-section .why-card__bullets li { color: #475569; }
.sap-why-section .why-card__bullets li svg { color: #1D4ED8; }
.sap-why-section .why-card__accent { background: linear-gradient(90deg, #1D4ED8, transparent); }

/* Section labels / titles en el hub */
.master-section .section-label,
.modules-section .section-label,
.sap-why-section .section-label    { color: #1D4ED8; }
.master-section .section-title,
.modules-section .section-title,
.sap-why-section .section-title    { color: #0F172A; }
.master-section .section-sub,
.modules-section .section-sub,
.sap-why-section .section-sub      { color: #475569; }

/* Intro badge master */
.master-intro__badge {
  color: #1E40AF;
  background: #DBEAFE;
  border-color: #BFDBFE;
}


/* ────────────────────────────────────────────────────
   PÁGINAS DE MÓDULO (sap-mm, sap-fi, ...) — Fondos y textos
──────────────────────────────────────────────────── */

/* Stats bar: banda azul */
.sap-module-stats {
  background: #1D4ED8;
  border-top: none;
  border-bottom: none;
}
.sap-stat-item__value { color: #FFFFFF; }
.sap-stat-item__label { color: rgba(255,255,255,0.82); }

/* Why/Features module pages */
.sap-highlights-section  { background: #F8FAFC; }
.sap-highlight-item {
  background: #FFFFFF;
  border-color: #E0E7FF;
  color: #475569;
}
.sap-highlight-item::before { background: #1D4ED8; }

/* Curriculum */
.sap-curriculum-section { background: #FFFFFF; }
.sap-curriculum__part-header {
  background: #EEF2FF;
  border-color: #C7D2FE;
}
.sap-curriculum__part-badge {
  color: #1D4ED8;
  background: #DBEAFE;
  border-color: #BFDBFE;
}
.sap-curriculum__part-title { color: #0F172A; }
.sap-curriculum__part-sub   { color: #475569; }
.sap-curriculum__part .faq-item {
  background: #FFFFFF;
  border-color: #E0E7FF;
}
.sap-curriculum__part .faq-item.is-open {
  background: #F8FAFF;
  border-color: #A5B4FC;
  box-shadow: 0 2px 8px rgba(29,78,216,0.06);
}
.sap-curriculum__part .faq-question       { color: #0F172A; }
.sap-curriculum__part .faq-question:hover { color: #1D4ED8; }
.sap-curriculum__part .faq-item.is-open .faq-question { color: #1D4ED8; }
.sap-curriculum__part .faq-answer p {
  color: #475569;
  border-top: 1px solid #E0E7FF;
  padding-top: 0.875rem;
}
.sap-curriculum__part .faq-icon { color: #9CA3AF; }
.sap-curriculum__part .faq-item.is-open .faq-icon { color: #1D4ED8; }
.curriculum-bullets li { color: #475569; }
.curriculum-bullets li::before { color: #1D4ED8; opacity: 1; }

/* Audience */
.sap-module-audience { background: #F8FAFC; }
.sap-audience-item {
  background: #FFFFFF;
  border-color: #E0E7FF;
  border-left-color: #1D4ED8;
  color: #475569;
}
.sap-audience-card {
  background: #FFFFFF;
  border-color: #E0E7FF;
}
.sap-audience-card__title { color: #0F172A; }
.sap-audience-card__desc  { color: #475569; }

/* Modality */
.sap-modality-section {
  background: #FFFFFF;
  border-top-color: #E0E7FF;
}
.sap-modality-item {
  background: #F8FAFC;
  border-color: #E0E7FF;
}
.sap-modality-item__title { color: #0F172A; }
.sap-modality-item__desc  { color: #475569; }

/* Program list */
.sap-module-program { background: #F8FAFC; }
.sap-program-list   { border-color: #E0E7FF; }
.sap-program-item   { border-bottom-color: #F0F4FF; }
.sap-program-item:hover { background: #F0F4FF; }
.sap-program-item__num  { color: #1D4ED8; }
.sap-program-item__body h4 { color: #0F172A; }
.sap-program-item__body p  { color: #475569; }

/* Cert pill */
.sap-cert-pill {
  color: #1E40AF;
  background: #DBEAFE;
  border-color: #BFDBFE;
}
.sap-cert-pill__dot { background: #1D4ED8; }

/* Breadcrumb (sobre el hero oscuro — se mantiene claro) */
.breadcrumb       { color: rgba(255,255,255,0.72); }
.breadcrumb:hover { color: #BFDBFE; }

/* Section labels/titles en páginas de módulo */
.sap-highlights-section .section-label,
.sap-curriculum-section .section-label,
.sap-modality-section .section-label,
.sap-module-program .section-label,
.sap-module-audience .section-label  { color: #1D4ED8; }
.sap-highlights-section .section-title,
.sap-curriculum-section .section-title,
.sap-modality-section .section-title,
.sap-module-program .section-title,
.sap-module-audience .section-title  { color: #0F172A; }
.sap-highlights-section .section-sub,
.sap-curriculum-section .section-sub,
.sap-modality-section .section-sub,
.sap-module-program .section-sub,
.sap-module-audience .section-sub    { color: #475569; }

/* FAQ standalone en módulo */
.container > .faq-list .faq-item {
  background: #FFFFFF;
  border-color: #E0E7FF;
}
.container > .faq-list .faq-item.is-open {
  background: #F8FAFF;
  border-color: #A5B4FC;
  box-shadow: 0 2px 8px rgba(29,78,216,0.06);
}
.container > .faq-list .faq-question       { color: #0F172A; }
.container > .faq-list .faq-question:hover { color: #1D4ED8; }
.container > .faq-list .faq-item.is-open .faq-question { color: #1D4ED8; }
.container > .faq-list .faq-icon { color: #9CA3AF; }
.container > .faq-list .faq-item.is-open .faq-icon { color: #1D4ED8; }
.container > .faq-list .faq-answer p {
  color: #475569;
  border-top: 1px solid #E0E7FF;
  padding-top: 0.875rem;
}
/* Estas secciones usan style="background:#0d1117" inline → fondo siempre oscuro */
.container:has(.sap-audience-cards) .section-title { color: #F9FAFB; }
.container:has(.sap-audience-cards) .section-label { color: #3B82F6; }
.container:has(> .faq-list) .section-title          { color: #F9FAFB; }
.container:has(> .faq-list) .section-label          { color: #3B82F6; }


/* ────────────────────────────────────────────────────
   NUEVAS PÁGINAS — Clases custom (sap-hana, sap-bw, sap-basis)
   Estas páginas usan su propio sistema de clases CSS.
   Se añade soporte completo aquí.
──────────────────────────────────────────────────── */

/* Hero content wrapper */
.sap-module-hero__content {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  position: relative;
  z-index: 1;
}

/* Badge pulsante */
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  display: inline-block;
  margin-right: 0.5rem;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* Acento de título hero */
.sap-hero-accent { color: #F59E0B; }

/* Section titles globales (nuevas páginas) */
.sap-section-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.sap-section-subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: #475569;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.sap-accent { color: #1D4ED8; }

/* Stats bar (custom — nuevas páginas) */
.sap-stats-bar {
  background: #1D4ED8;
  padding: 2rem 0;
}
.sap-stats-bar__grid {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .sap-stats-bar__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem; }
}
.sap-stat-value {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: block;
}
.sap-stat-label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 0.25rem;
}

/* Why section (custom) */
.sap-why {
  background: #F8FAFC;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.sap-why__container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}
.sap-why__header {
  text-align: center;
  margin-bottom: 3rem;
}
.sap-why__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.sap-why-card {
  background: #FFFFFF;
  border: 1px solid #E0E7FF;
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.sap-why-card:hover {
  box-shadow: 0 8px 32px rgba(29, 78, 216, 0.1);
  border-color: #A5B4FC;
  transform: translateY(-3px);
}
.sap-why-card__icon  { font-size: 2rem; margin-bottom: 1rem; display: block; }
.sap-why-card__title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 0.6rem;
}
.sap-why-card__text {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.65;
}

/* Audience (custom) */
.sap-audience {
  background: #FFFFFF;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.sap-audience__container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.sap-audience__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}
.sap-audience-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
}
.sap-audience-item h4 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 0.5rem;
}
.sap-audience-item p {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}
/* Override dark values from earlier SAP block */
.sap-audience-item {
  background: #FFFFFF;
  border: 1px solid #E0E7FF;
  border-left: 3px solid #1D4ED8;
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
  color: #475569;
}
.sap-audience-item:hover {
  box-shadow: 0 4px 16px rgba(29,78,216,0.08);
  border-color: #A5B4FC;
  border-left-color: #1D4ED8;
}

/* Highlights (custom) */
.sap-highlights {
  background: #F8FAFC;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.sap-highlights__container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.sap-highlights__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: left;
}
.sap-highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid #E0E7FF;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.2s;
}
.sap-highlight-item:hover { box-shadow: 0 4px 16px rgba(29,78,216,0.08); }
.sap-highlight-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: #DBEAFE;
  color: #1D4ED8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.1rem;
}
.sap-highlight-item > div > strong {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #0F172A;
  display: block;
  margin-bottom: 0.35rem;
}
.sap-highlight-item > div > p {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Curriculum (custom) */
.sap-curriculum {
  background: #FFFFFF;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.sap-curriculum__container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.sap-curriculum__part {
  text-align: left;
  margin-top: 2.5rem;
  border: 1px solid #E0E7FF;
  border-radius: 12px;
  overflow: hidden;
}
.sap-curriculum__part-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #EEF2FF;
  border-bottom: 1px solid #C7D2FE;
}
.sap-part-badge {
  font-family: var(--font-mono, 'DM Mono', monospace);
  font-size: 0.75rem;
  font-weight: 500;
  color: #1D4ED8;
  background: #DBEAFE;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.sap-part-badge--b {
  color: #7C3AED;
  background: #EDE9FE;
  border-color: #DDD6FE;
}
.sap-curriculum__part-header h3 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #0F172A;
  margin: 0;
}
.sap-curriculum__part-intro {
  padding: 1.25rem 1.5rem;
  background: #F8FAFC;
  border-bottom: 1px solid #E0E7FF;
}
.sap-curriculum__part-intro p {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}
.sap-curriculum__bullets {
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #FAFBFF;
}
.sap-curriculum__bullets li {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}
.sap-curriculum__bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #1D4ED8;
  font-size: 0.8rem;
  top: 0.15em;
}

/* FAQ items dentro del curriculum (custom) */
.sap-curriculum .faq-item {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #E0E7FF;
  background: #FFFFFF;
  box-shadow: none;
}
.sap-curriculum .faq-item:last-child { border-bottom: none; }
.sap-curriculum .faq-item.is-open {
  background: #F8FAFF;
  box-shadow: none;
}
.sap-curriculum .faq-question {
  color: #0F172A;
  font-size: 0.9rem;
  padding: 1.1rem 1.5rem;
}
.sap-curriculum .faq-question:hover { color: #1D4ED8; background: #F0F4FF; }
.sap-curriculum .faq-item.is-open .faq-question { color: #1D4ED8; }
.sap-curriculum .faq-icon { color: #9CA3AF; }
.sap-curriculum .faq-item.is-open .faq-icon { color: #1D4ED8; }
.sap-curriculum .faq-answer { padding: 0 1.5rem 1.25rem; }
.sap-curriculum .faq-answer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid #E0E7FF;
  padding-top: 0.75rem;
}
.sap-curriculum .faq-answer ul li {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}
.sap-curriculum .faq-answer ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #1D4ED8;
  font-size: 0.8rem;
  top: 0.15em;
}

/* Modality (custom) */
.sap-modality {
  background: #F8FAFC;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.sap-modality__container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.sap-modality__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.sap-modality-card {
  background: #FFFFFF;
  border: 1px solid #E0E7FF;
  border-radius: 12px;
  padding: 1.75rem;
  text-align: left;
  transition: box-shadow 0.2s;
}
.sap-modality-card:hover { box-shadow: 0 4px 16px rgba(29,78,216,0.08); }
.sap-modality-icon { font-size: 1.75rem; display: block; margin-bottom: 0.875rem; }
.sap-modality-card h4 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 0.5rem;
}
.sap-modality-card p {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* CTA section (custom) */
.sap-cta {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.sap-cta__container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.sap-cta__content { max-width: 680px; margin: 0 auto; }
.sap-cta__title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.sap-cta__desc {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.sap-cta__note {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 1rem;
}

/* Botones custom SAP */
.btn-sap-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  background: #F59E0B;
  color: #0F172A;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-sap-primary:hover {
  background: #D97706;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.35);
}
.btn-sap-primary--large { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

.btn-sap-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn-sap-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.85);
}

/* FAQ section (custom) */
.sap-faq {
  background: #FFFFFF;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.sap-faq__container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.sap-faq__list {
  margin: 2.5rem auto 0;
  text-align: left;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sap-faq .faq-item {
  background: #FFFFFF;
  border: 1px solid #E0E7FF;
  border-radius: 10px;
  box-shadow: none;
}
.sap-faq .faq-item.is-open {
  border-color: #A5B4FC;
  background: #F8FAFF;
  box-shadow: 0 2px 8px rgba(29,78,216,0.06);
}
.sap-faq .faq-question {
  color: #0F172A;
  padding: 1.1rem 1.5rem;
  font-size: 0.9rem;
}
.sap-faq .faq-question:hover { color: #1D4ED8; }
.sap-faq .faq-item.is-open .faq-question { color: #1D4ED8; }
.sap-faq .faq-icon { color: #9CA3AF; }
.sap-faq .faq-item.is-open .faq-icon { color: #1D4ED8; }
.sap-faq .faq-answer { padding: 0 1.5rem 1.25rem; }
.sap-faq .faq-answer p {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
  border-top: 1px solid #E0E7FF;
  padding-top: 0.875rem;
}

/* ─── BUG FIXES post-light-theme ─────────────────────────────────────────── */

/* Fix 1: subnav queda debajo del navbar fijo (height: 60px) */
.sap-subnav { margin-top: 60px; }

/* Fix 2: master-card y sap-card se mantienen blancas en hover */
.master-card:hover { background: #FFFFFF !important; }
.sap-card:hover    { background: #FFFFFF !important; }

/* Fix 3: why-card destacada mantiene fondo azul en hover */
.sap-why-section .why-card--featured:hover {
  background: #1E40AF !important;
  border-color: #1E40AF !important;
}
.sap-why-section .why-card--featured:hover .why-card__title,
.sap-why-section .why-card--featured:hover .why-card__text {
  color: #FFFFFF !important;
}

/* ─── SOCIAL PROOF — TRUST BAR ───────────────────────────────────────────── */
.sap-trust-bar {
  background: #FFFFFF;
  border-top: 1px solid #E9EEF6;
  border-bottom: 1px solid #E9EEF6;
  padding: 2.5rem 0;
}

.sap-trust-bar__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 2rem;
}

.sap-trust-bar__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem 4rem;
}

.sap-trust-bar__logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.sap-trust-bar__logo-item img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.25s ease;
}

.sap-trust-bar__logo-item:hover img {
  filter: grayscale(0%) opacity(1);
}

@media (max-width: 640px) {
  .sap-trust-bar__logos { gap: 2rem 2.5rem; }
  .sap-trust-bar__logo-item img { height: 34px; max-width: 110px; }
}

/* ─── FORMULARIO DE LEADS SAP ───────────────────── */
.lead-section {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  text-align: left;
}

.lead-section .cta-section__sub { margin: 0; }

.lead-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--r-lg);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lead-form__field {
  display: grid;
  gap: 0.42rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lead-form__field input,
.lead-form__field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--r-sm);
  outline: none;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.64);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
}

.lead-form__field select { cursor: pointer; }
.lead-form__field select option { color: #0f172a; background: #fff; }

.lead-form__field input:focus,
.lead-form__field select:focus {
  border-color: var(--c-tech);
  background: rgba(2, 6, 23, 0.9);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.lead-form__field input:invalid:not(:placeholder-shown) { border-color: #fb7185; }

.lead-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 1.25rem;
}

.lead-form__status {
  margin-top: 0.9rem;
  color: #bae6fd;
  font-size: 0.9rem;
  line-height: 1.5;
}

.lead-form__status--error { color: #fca5a5; }

/* Honeypot antispam: oculto para personas, visible para bots */
.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

body.menu-open { overflow: hidden; }

@media (max-width: 840px) {
  .lead-section { grid-template-columns: 1fr; }
  .lead-section__intro { text-align: center; }
  .lead-section .cta-section__sub { margin: 0 auto; }
}

@media (max-width: 540px) {
  .lead-form__grid { grid-template-columns: 1fr; }
  .lead-form { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ─── CAPTACIÓN SAP: HERO + MODAL ───────────────── */
:root { --urgency-h: 0px; }

.navbar {
  top: 0;
  background: rgba(5, 10, 23, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.navbar--scrolled {
  background: rgba(5, 10, 23, 0.94);
}

.sap-hero {
  min-height: max(760px, 100svh);
  padding: clamp(7.5rem, 11vw, 9.25rem) 0 clamp(4rem, 7vw, 6rem);
  background-position: center;
}

.sap-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 10, 23, 0.93) 0%, rgba(5, 10, 23, 0.82) 40%, rgba(5, 10, 23, 0.48) 100%),
    linear-gradient(180deg, rgba(5, 10, 23, 0.2), rgba(5, 10, 23, 0.6));
}

.sap-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.76fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
}

.sap-hero__content { max-width: 660px; }

.sap-hero__title {
  font-size: clamp(3.25rem, 5.3vw, 5.7rem);
  margin-bottom: 1.5rem;
}

.sap-hero__sub { margin-bottom: 2.15rem; }

.hero-lead-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.35rem, 2.7vw, 2rem);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(18, 32, 59, 0.93), rgba(5, 13, 30, 0.93) 72%),
    rgba(9, 18, 37, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.hero-lead-card::before,
.hero-lead-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.hero-lead-card::before {
  width: 260px;
  height: 260px;
  top: -165px;
  right: -115px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 0 0 34px rgba(59, 130, 246, 0.045), 0 0 0 68px rgba(59, 130, 246, 0.03);
}

.hero-lead-card::after {
  width: 180px;
  height: 180px;
  bottom: -130px;
  left: -100px;
  background: rgba(245, 158, 11, 0.08);
  filter: blur(35px);
}

.hero-lead-card__accent {
  height: 3px;
  margin: -2rem -2rem 1.4rem;
  background: linear-gradient(90deg, #f59e0b, #60a5fa 48%, transparent 80%);
}

.hero-lead-card__heading { position: relative; }

.hero-lead-card__eyebrow,
.lead-modal__signal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.45;
}

.hero-lead-card__eyebrow i,
.lead-modal__signal i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), 0 0 15px rgba(245, 158, 11, 0.8);
}

.hero-lead-card h2 {
  margin: 0.55rem 0 0.5rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-lead-card__heading p {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
}

.lead-form {
  position: relative;
  margin-top: 1.35rem;
}

.lead-form__grid {
  gap: 0.8rem;
}

.lead-form__field {
  gap: 0.4rem;
  color: rgba(226, 232, 240, 0.82);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.lead-form__field--wide { grid-column: 1 / -1; }

.lead-form__field input,
.lead-form__field select {
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 9px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.56);
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
}

.lead-form__field input::placeholder { color: rgba(148, 163, 184, 0.6); }

.lead-form__field input:hover,
.lead-form__field select:hover { border-color: rgba(96, 165, 250, 0.5); }

.lead-form__field input:focus,
.lead-form__field select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.17), 0 8px 22px rgba(2, 6, 23, 0.35);
}

.lead-form__submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 52px;
  margin-top: 1rem;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(110deg, #1d4ed8, #2563eb 55%, #3b82f6);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.32);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), filter 180ms var(--ease-out);
}

.lead-form__submit b {
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 180ms var(--ease-out);
}

.lead-form__submit:hover {
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.46);
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.lead-form__submit:hover b { transform: translateX(4px); }
.lead-form__submit:active { transform: translateY(0); }

.lead-form__privacy {
  margin: 0.8rem 0 0;
  color: rgba(148, 163, 184, 0.68);
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: center;
}

.lead-form__status { text-align: center; }

.cta-section__content--compact {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.cta-section__content--compact .cta-section__sub { margin-bottom: 1.8rem; }

/* Modal de orientación compartido por todos los CTA. */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lead-modal.is-open { opacity: 1; pointer-events: auto; }

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(10px);
}

.lead-modal__dialog {
  position: relative;
  width: min(100%, 600px);
  max-height: min(800px, calc(100svh - 2.5rem));
  overflow: auto;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 96% 3%, rgba(37, 99, 235, 0.22), transparent 30%),
    linear-gradient(145deg, #101d37, #070d1d 72%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(16px) scale(0.985);
  transition: transform 220ms var(--ease-out);
}

.lead-modal.is-open .lead-modal__dialog { transform: translateY(0) scale(1); }

.lead-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
}

.lead-modal__close span {
  position: absolute;
  width: 14px;
  height: 1px;
  background: #e2e8f0;
}
.lead-modal__close span:first-child { transform: rotate(45deg); }
.lead-modal__close span:last-child { transform: rotate(-45deg); }
.lead-modal__close:hover { background: rgba(37, 99, 235, 0.32); }

.lead-modal h2 {
  margin: 0.65rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.05rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}
.lead-modal h2 em { color: #60a5fa; font-style: normal; }

.lead-modal__intro {
  max-width: 450px;
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

.lead-modal__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.lead-modal__benefits span {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 99px;
  color: rgba(191, 219, 254, 0.92);
  background: rgba(30, 64, 175, 0.13);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.03em;
}

.lead-form--modal { margin-top: 1.4rem; }
body.lead-modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .sap-hero { min-height: auto; }
  .sap-hero__layout { grid-template-columns: minmax(0, 1fr) minmax(330px, 0.7fr); gap: 2rem; }
}

@media (max-width: 760px) {
  :root { --urgency-h: 0px; }
  .navbar { top: 0; }
  .sap-hero { padding-top: 6.8rem; background-position: 58% center; }
  .sap-hero__layout { grid-template-columns: 1fr; gap: 2.3rem; }
  .sap-hero__content { max-width: 600px; }
  .sap-hero__title { font-size: clamp(3rem, 14vw, 4.4rem); }
  .hero-lead-card { max-width: 570px; width: 100%; }
  .hero-lead-card__accent { margin: -1.35rem -1.35rem 1.2rem; }
}

@media (max-width: 480px) {
  .sap-hero { padding-bottom: 3.5rem; }
  .lead-form__grid { grid-template-columns: 1fr; }
  .lead-form__field--wide { grid-column: auto; }
  .lead-modal { padding: 0.65rem; }
  .lead-modal__dialog { max-height: calc(100svh - 1.3rem); padding: 1.35rem; border-radius: 18px; }
  .lead-modal__close { top: 0.75rem; right: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal,
  .lead-modal__dialog,
  .lead-form__submit,
  .lead-form__submit b { transition: none; }
}

/* ─── FORMULARIOS EN HERO DE MÓDULOS SAP ───────── */
.hero-lead-card__eyebrow,
.lead-modal__signal,
.module-lead-card__signal {
  font-size: clamp(0.68rem, 0.75vw, 0.76rem);
}

.sap-module-hero--form-ready {
  padding-top: clamp(7.5rem, 11vw, 9rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.sap-module-hero__lead-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.72fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  width: min(100% - 2.5rem, var(--container-max, 1240px));
  margin: 0 auto;
}

.sap-module-hero .container .sap-module-hero__lead-layout {
  width: 100%;
}

.sap-module-hero__lead-copy,
.sap-module-hero__lead-layout > .sap-module-hero__content {
  min-width: 0;
  max-width: none;
  margin: 0;
}

.sap-module-hero__lead-copy .sap-module-hero__desc,
.sap-module-hero__lead-layout > .sap-module-hero__content .sap-module-hero__desc {
  max-width: 680px;
}

.module-lead-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2.3vw, 1.75rem);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(16, 29, 55, 0.96), rgba(5, 13, 30, 0.96) 72%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
}

.module-lead-card::after {
  content: '';
  position: absolute;
  right: -58px;
  bottom: -68px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(59, 130, 246, 0.035);
  pointer-events: none;
}

.module-lead-card__signal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #fbbf24;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.module-lead-card__signal i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 0.26rem;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), 0 0 15px rgba(245, 158, 11, 0.8);
}

.module-lead-card h2 {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 0.55rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.module-lead-card h2 em { color: #60a5fa; font-style: normal; }

.module-lead-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
}

.module-lead-card .lead-form { z-index: 1; }

.master-intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin: 2rem 0 2.5rem;
}

.master-intro__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.82rem 1.1rem;
  border: 1px solid rgba(96, 165, 250, 0.36);
  border-radius: 10px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 1px rgba(255,255,255,0.06);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.master-intro__cta:hover {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.24);
  transform: translateY(-2px);
}

.master-intro__cta span { font-size: 1.15rem; }
.master-intro__actions > span { color: rgba(191, 219, 254, 0.62); font-size: 0.82rem; }

.lead-modal--master .lead-modal__dialog {
  border-color: rgba(251, 191, 36, 0.3);
  background:
    radial-gradient(circle at 96% 3%, rgba(245, 158, 11, 0.18), transparent 30%),
    linear-gradient(145deg, #18233e, #080e1e 72%);
}

.lead-modal--master .lead-modal__signal { color: #fbbf24; }
.lead-modal--master .lead-modal__benefits span {
  border-color: rgba(251, 191, 36, 0.22);
  color: #fde68a;
  background: rgba(180, 83, 9, 0.14);
}

.sap-career-proof {
  max-width: 820px !important;
  margin-top: 1.25rem !important;
  color: rgba(226, 232, 240, 0.78) !important;
}

.sap-career-proof__sources {
  display: block;
  margin-top: 0.9rem;
  color: rgba(148, 163, 184, 0.82);
  font-size: 0.77rem;
}

.sap-career-proof__sources a { color: #93c5fd; text-decoration: underline; text-underline-offset: 3px; }
.sap-career-proof__sources a:hover { color: #dbeafe; }

@media (max-width: 960px) {
  .sap-module-hero__lead-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr); gap: 2rem; }
}

@media (max-width: 760px) {
  .sap-module-hero__lead-layout { grid-template-columns: 1fr; width: min(100% - 2.5rem, 620px); }
  .sap-module-hero .container .sap-module-hero__lead-layout { width: 100%; }
  .module-lead-card { max-width: 570px; width: 100%; }
  .master-intro__actions { align-items: flex-start; flex-direction: column; }
}

/* ─── CTA VISIBLE EN CADA MÁSTER + COPY DE VALOR ── */
.master-card__footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
}

.master-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid #2563eb;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(110deg, #1d4ed8, #2563eb);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 650;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), filter 180ms var(--ease-out);
}

.master-card__cta:hover {
  color: #ffffff;
  filter: brightness(1.08);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.master-card__cta b { font-size: 1.1rem; font-weight: 400; }

.sap-career-proof {
  max-width: 780px !important;
  color: #475569 !important;
  font-size: clamp(1rem, 1.45vw, 1.12rem) !important;
  line-height: 1.78 !important;
}

.sap-career-proof__sources { display: none; }

.course-why-lead {
  max-width: 760px;
  margin: 1rem auto 0;
  color: #475569;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.75;
}

.sap-why__header .sap-section-subtitle {
  color: #475569;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .master-card__cta { padding: 0.82rem 0.9rem; }
  .course-why-lead { font-size: 1rem; }
}

/* ─── CATÁLOGO INDIVIDUAL: MISMA FAMILIA VISUAL QUE LOS MÁSTER ─── */
.modules-section .sap-grid {
  align-items: stretch;
}

.modules-section .sap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 410px;
  gap: 0;
  overflow: hidden;
  padding: 1.65rem;
  border: 1px solid #E0E7FF;
  border-radius: var(--r-xl);
  background: #FFFFFF;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.modules-section .sap-card::before {
  content: none;
}

.modules-section .sap-card:hover {
  border-color: #BFDBFE;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
}

.modules-section .sap-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.3rem;
  overflow: hidden;
  border: 1px solid #E0E7FF;
  border-radius: 0.8rem;
  background: #EFF6FF;
  isolation: isolate;
}

.modules-section .sap-card__media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: '';
  pointer-events: none;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), transparent 55%, rgba(37, 99, 235, 0.12));
}

.modules-section .sap-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms var(--ease-out);
}

.modules-section .sap-card:hover .sap-card__media img {
  transform: scale(1.045);
}

.modules-section .sap-card__icon {
  position: absolute;
  top: 1.65rem;
  right: 1.65rem;
  display: inline-flex;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0.22rem 0.55rem;
  border: 1px solid #BFDBFE;
  border-radius: var(--r-sm);
  color: #1D4ED8;
  background: #DBEAFE;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.25;
}

.modules-section .sap-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.modules-section .sap-card__body::before {
  content: 'CURSO ESPECIALIDAD SAP 200 HORAS';
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.85rem;
  padding: 0;
  color: #6366F1;
  background: #EEF2FF;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.modules-section .sap-card__name {
  margin-bottom: 0.75rem;
  color: #0F172A;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.22;
}

.modules-section .sap-card__desc {
  display: block;
  overflow: visible;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.65;
  -webkit-line-clamp: unset;
}

.modules-section .sap-card__arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1.35rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid #2563EB;
  border-radius: 9px;
  color: #FFFFFF;
  background: linear-gradient(110deg, #1D4ED8, #2563EB);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), filter 180ms var(--ease-out);
}

.modules-section .sap-card:hover .sap-card__arrow {
  border-color: #2563EB;
  color: #FFFFFF;
  background: linear-gradient(110deg, #1D4ED8, #2563EB);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .modules-section .sap-card { min-height: 0; padding: 1.4rem; }
  .modules-section .sap-card__icon { top: 1.4rem; right: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .modules-section .sap-card__media img { transition: none; }
}

/* ─── SECCIONES "POR QUÉ": SIN ESPACIOS FANTASMA ─ */
.sap-why-section.section {
  padding-top: clamp(3.25rem, 5vw, 5rem);
  padding-bottom: clamp(3.25rem, 5vw, 5rem);
}

.sap-why-section .section-header {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

/* Los grids de ventajas no deben reservar altura mientras esperan una animación. */
.sap-why-section [data-animate="fade-up"],
.sap-why-section .why-grid[data-animate="fade-up"] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.sap-why-section .why-grid { margin: 0; }

.sap-why {
  padding-top: clamp(3.25rem, 5vw, 5rem);
  padding-bottom: clamp(3.25rem, 5vw, 5rem);
}

.sap-why__header { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

/* Seguridad adicional: estas cards siempre se renderizan, incluso si el navegador omite IntersectionObserver. */
.sap-why-section,
.sap-why {
  min-height: 0 !important;
  height: auto !important;
}

.sap-why-section .why-grid,
.sap-why .sap-why__cards {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  height: auto !important;
  min-height: 0 !important;
}

.sap-why-section .why-card,
.sap-why .sap-why-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}
