/* ==========================================================================
   GETTIN' BETTER — ACADEMIA STEM
   Tokens Oficiales & Sistema de Diseño Refinado (UX & UI Premium)
   ========================================================================== */

:root {
  /* ── Fondos (Light-first & Dark Impact) ───────────────────────────── */
  --bg-page: #FDFBF7;              /* Vainilla Puro */
  --bg-warm: #F5EFE4;              /* Vainilla Cálido */
  --bg-card: #FFFFFF;              /* Tarjetas y paneles */
  
  --bg-dark: #160715;              /* Ciruela Profundo (Hero, Footer) */
  --bg-dark-card: #220C21;         /* Contenedores en dark */
  --bg-dark-hover: #2E102D;
  --bg-dark-border: rgba(255, 154, 118, 0.16);

  /* ── Colores de Acento (Brand Kit Gettin' Better) ─────────────────── */
  --accent: #FF9A76;              /* Damasco Vibrante */
  --accent-hover: #FFAF92;        /* Damasco Iluminado */
  --accent-deep: #E07A56;         /* Damasco Profundo para headings */
  --accent-soft: rgba(255, 154, 118, 0.10);
  --accent-glow: rgba(255, 154, 118, 0.28);

  --mandarina: #E8511A;            /* Mandarina CTA Oficial */
  --mandarina-hover: #C93F0E;
  --mandarina-glow: rgba(232, 81, 26, 0.35);

  /* ── Colores Específicos Ejes STEAM ───────────────────────────────── */
  --stem-science: #2A9D8F;         /* Esmeralda / Ciencias */
  --stem-tech: #3A86FF;            /* Azul Eléctrico / Tecnología & Código */
  --stem-eng: #F4A261;             /* Ámbar Cálido / Ingeniería */
  --stem-arts: #E85D75;            /* Magenta Rosado / Artes & Creatividad */
  --stem-math: #8E589F;            /* Lavanda Ciruela / Matemáticas Rigurosas */

  /* ── Textos ──────────────────────────────────────────────────────── */
  --text-heading: #1A0A19;         /* Casi Negro Ciruela */
  --text-body: #3D2A3C;            /* Ciruela Texto */
  --text-muted: rgba(61, 42, 60, 0.72);
  
  --text-inverse: #F7F3EB;         /* Vainilla Lectura para dark */
  --text-inverse-muted: #C5ADC4;   /* Lavanda Grisáceo */

  /* ── Tipografía ──────────────────────────────────────────────────── */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ── Bordes y Sombras ────────────────────────────────────────────── */
  --border-light: 1px solid rgba(26, 10, 25, 0.08);
  --border-medium: 1px solid rgba(26, 10, 25, 0.14);
  --border-dark: 1px solid rgba(255, 154, 118, 0.16);

  --shadow-sm: 0 2px 10px rgba(22, 7, 21, 0.04);
  --shadow-md: 0 8px 24px rgba(22, 7, 21, 0.06);
  --shadow-lg: 0 16px 40px rgba(22, 7, 21, 0.09);
  --shadow-dark: 0 20px 45px rgba(0, 0, 0, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

section[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Tipografía Global ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.18;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(224, 122, 86, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-tag--dark {
  background-color: rgba(255, 154, 118, 0.12);
  color: var(--accent);
  border-color: rgba(255, 154, 118, 0.3);
}

.section-heading-center {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Botones & CTAs ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background-color: var(--mandarina);
  color: #FFFFFF;
  box-shadow: 0 4px 18px var(--mandarina-glow);
}

.btn--primary:hover {
  background-color: var(--mandarina-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--mandarina-glow);
}

.btn--secondary {
  background-color: transparent;
  color: var(--text-heading);
  border: 1.5px solid rgba(26, 10, 25, 0.2);
}

.btn--secondary:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  background-color: var(--accent-soft);
  transform: translateY(-2px);
}

.btn--outline-light {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-inverse);
  border: 1.5px solid rgba(255, 154, 118, 0.28);
}

.btn--outline-light:hover {
  background-color: rgba(255, 154, 118, 0.15);
  border-color: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn--sm {
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
}

/* ── Header & Navbar ───────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--border-light);
  transition: var(--transition);
}

.header.scrolled,
.header.menu-open {
  background-color: rgba(253, 251, 247, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 10, 25, 0.1);
  box-shadow: 0 4px 20px rgba(22, 7, 21, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.header__logo:hover {
  opacity: 0.85;
}

.header__vertical-badge {
  background-color: var(--bg-warm);
  border: 1px solid rgba(26, 10, 25, 0.1);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.header__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.header__link:hover {
  color: var(--accent-deep);
  background-color: var(--accent-soft);
  transform: translateY(-1px);
}

.header__link--active {
  color: var(--mandarina);
  font-weight: 700;
}

/* ── Hamburger / Sandwich Toggle (Mobile) ─────────────────────── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(26, 10, 25, 0.18);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  z-index: 1002;
}

.nav-toggle:hover {
  background: rgba(255, 154, 118, 0.12);
  border-color: var(--accent);
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.25s ease;
  transform-origin: center;
}

.header.scrolled .nav-toggle,
.header.menu-open .nav-toggle {
  border-color: rgba(26, 10, 25, 0.22);
}

.header.scrolled .nav-toggle__line,
.header.menu-open .nav-toggle__line {
  background-color: var(--text-heading);
}

/* Morph sandwich to X when open */
.nav-toggle.open {
  background: rgba(232, 81, 26, 0.1) !important;
  border-color: var(--mandarina) !important;
}

.nav-toggle.open .nav-toggle__line {
  background-color: var(--mandarina) !important;
}

.nav-toggle.open .nav-toggle__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open .nav-toggle__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open .nav-toggle__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Mobile Navigation Drawer ────────────────────────────────── */
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(253, 251, 247, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(232, 81, 26, 0.25);
  box-shadow: 0 18px 36px rgba(22, 7, 21, 0.14);
  z-index: 1001;
}

.nav-mobile-menu.open {
  display: block;
  animation: slideDownNav 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownNav {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-mobile-menu__inner {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(26, 10, 25, 0.03);
  border: 1px solid rgba(26, 10, 25, 0.08);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-heading);
  transition: var(--transition);
}

.nav-mobile-item__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-mobile-item__icon {
  font-size: 1.35rem;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
}

.nav-mobile-item__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-heading);
}

.nav-mobile-item__arrow {
  font-size: 1.15rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-mobile-item:hover,
.nav-mobile-item:active {
  background: rgba(255, 154, 118, 0.14);
  border-color: rgba(232, 81, 26, 0.35);
}

.nav-mobile-item:hover .nav-mobile-item__label,
.nav-mobile-item:active .nav-mobile-item__label {
  color: var(--mandarina);
}

.nav-mobile-item:hover .nav-mobile-item__arrow,
.nav-mobile-item:active .nav-mobile-item__arrow {
  transform: translateX(4px);
  color: var(--mandarina);
}

.nav-mobile-cta-wrap {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(26, 10, 25, 0.08);
}

.nav-mobile-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, var(--mandarina) 0%, #F26A36 100%);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(232, 81, 26, 0.28);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.nav-mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 81, 26, 0.4);
  color: #FFFFFF !important;
}

/* ── Hero Section (Dark Impact) ────────────────────────────────────── */
.hero {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 81, 26, 0.18) 0%, rgba(142, 88, 159, 0.12) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}

.hero__badge-wrap {
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero__title-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #FFFFFF 60%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-inverse-muted);
  max-width: 780px;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 154, 118, 0.14);
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-inverse-muted);
  font-weight: 500;
}

.hero__trust-item .material-symbols-outlined {
  color: var(--accent);
  font-size: 1.15rem;
}

/* ── Sección Desafío / Dolor ───────────────────────────────────────── */
.section-challenge {
  padding: 6rem 0;
  background-color: var(--bg-page);
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.challenge-card {
  background-color: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(224, 122, 86, 0.35);
}

.challenge-card__icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-color: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.challenge-card__icon-wrap .material-symbols-outlined {
  font-size: 1.8rem;
}

.challenge-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-heading);
}

.challenge-card__text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Sección 5 Ejes STEAM ─────────────────────────────────────────── */
.section-pillars {
  padding: 6rem 0;
  background-color: var(--bg-warm);
  position: relative;
}

.section-pillars .container {
  width: 92%;
  max-width: 1320px;
}

/* ── Mobile & Tablet STEAM Navigation Controls ────────────────────── */
.steam-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.steam-nav-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.steam-nav-pills::-webkit-scrollbar {
  display: none;
}

.steam-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.95rem;
  background: var(--bg-card);
  border: 1px solid rgba(26, 10, 25, 0.1);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(22, 7, 21, 0.04);
}

.steam-pill__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  color: #FFFFFF;
}

.steam-pill--science .steam-pill__letter { background: var(--stem-science); }
.steam-pill--tech .steam-pill__letter { background: var(--stem-tech); }
.steam-pill--eng .steam-pill__letter { background: var(--stem-eng); }
.steam-pill--arts .steam-pill__letter { background: var(--stem-arts); }
.steam-pill--math .steam-pill__letter { background: var(--stem-math); }

.steam-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 10, 25, 0.2);
}

.steam-pill.active {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
  box-shadow: 0 6px 16px rgba(22, 7, 21, 0.18);
}

.steam-nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.steam-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(26, 10, 25, 0.12);
  background: var(--bg-card);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.steam-arrow:hover {
  background: var(--bg-page);
  border-color: var(--mandarina);
  color: var(--mandarina);
  transform: scale(1.06);
}

.steam-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.steam-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(26, 10, 25, 0.16);
  border: none;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.steam-dot.active {
  width: 28px;
  border-radius: 10px;
}

.steam-dot--science.active { background: var(--stem-science); }
.steam-dot--tech.active { background: var(--stem-tech); }
.steam-dot--eng.active { background: var(--stem-eng); }
.steam-dot--arts.active { background: var(--stem-arts); }
.steam-dot--math.active { background: var(--stem-math); }

/* ── Grid de las 5 Tarjetas STEAM ─────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.pillar-card {
  background-color: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.pillar-card--science::before { background-color: var(--stem-science); }
.pillar-card--tech::before { background-color: var(--stem-tech); }
.pillar-card--eng::before { background-color: var(--stem-eng); }
.pillar-card--arts::before { background-color: var(--stem-arts); }
.pillar-card--math::before { background-color: var(--stem-math); }

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(22, 7, 21, 0.1);
}

.pillar-card--science:hover { border-color: rgba(42, 157, 143, 0.4); }
.pillar-card--tech:hover { border-color: rgba(58, 134, 255, 0.4); }
.pillar-card--eng:hover { border-color: rgba(244, 162, 97, 0.45); }
.pillar-card--arts:hover { border-color: rgba(232, 93, 117, 0.4); }
.pillar-card--math:hover { border-color: rgba(142, 88, 159, 0.45); }

.pillar-card__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.65rem;
  font-weight: 900;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 1rem;
}

.pillar-card--science .pillar-card__letter {
  color: var(--stem-science);
  background-color: rgba(42, 157, 143, 0.12);
  border: 1px solid rgba(42, 157, 143, 0.25);
}
.pillar-card--tech .pillar-card__letter {
  color: var(--stem-tech);
  background-color: rgba(58, 134, 255, 0.12);
  border: 1px solid rgba(58, 134, 255, 0.25);
}
.pillar-card--eng .pillar-card__letter {
  color: var(--stem-eng);
  background-color: rgba(244, 162, 97, 0.16);
  border: 1px solid rgba(244, 162, 97, 0.35);
}
.pillar-card--arts .pillar-card__letter {
  color: var(--stem-arts);
  background-color: rgba(232, 93, 117, 0.12);
  border: 1px solid rgba(232, 93, 117, 0.25);
}
.pillar-card--math .pillar-card__letter {
  color: var(--stem-math);
  background-color: rgba(142, 88, 159, 0.14);
  border: 1px solid rgba(142, 88, 159, 0.3);
}

.pillar-card__name {
  margin-bottom: 0.75rem;
}

.pillar-card__main-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.15;
}

.pillar-card__subtitle {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.pillar-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.pillar-card__topics {
  list-style: none;
  margin-top: auto;
  border-top: var(--border-light);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pillar-card__topic-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.35;
}

.pillar-card__topic-item .material-symbols-outlined {
  font-size: 1rem;
  color: var(--accent-deep);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Reglas Responsivas STEAM ─────────────────────────────────────── */
@media (min-width: 1080px) {
  .steam-nav-wrap,
  .steam-dots {
    display: none !important;
  }
}

@media (max-width: 1079px) {
  .section-pillars {
    padding: 4.5rem 0;
  }

  .pillars-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.25rem;
    padding: 0.5rem 0.25rem 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pillars-grid::-webkit-scrollbar {
    display: none;
  }

  .pillar-card {
    flex: 0 0 min(84vw, 320px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

@media (max-width: 600px) {
  .steam-nav-arrows {
    display: none;
  }

  .steam-nav-wrap {
    justify-content: center;
  }

  .steam-pill {
    padding: 0.38rem 0.72rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .pillar-card {
    flex: 0 0 85vw;
    padding: 1.5rem 1.2rem;
  }
}

/* ── Sección Método Bespoke STEM (Ciclo de 4 Pasos) ────────────────── */
.section-method {
  padding: 6rem 0;
  background-color: var(--bg-page);
}

.method-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}

.method-step {
  background-color: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: var(--transition);
}

.method-step:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.method-step__num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.method-step__title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.method-step__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Sección Rutas por Perfil (Tabs) ───────────────────────────────── */
.section-profiles {
  padding: 6rem 0;
  background-color: var(--bg-warm);
}

.profile-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.profile-tab-btn {
  background-color: var(--bg-card);
  border: var(--border-medium);
  color: var(--text-body);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.profile-tab-btn:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
}

.profile-tab-btn.active {
  background-color: var(--text-heading);
  color: #FFFFFF;
  border-color: var(--text-heading);
  box-shadow: var(--shadow-sm);
}

.profile-content-panel {
  display: none;
  background-color: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.35s ease;
}

.profile-content-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.profile-panel__info h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.profile-panel__info p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.profile-panel__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.profile-panel__feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.profile-panel__feature-item .material-symbols-outlined {
  color: var(--mandarina);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.profile-panel__box {
  background-color: var(--bg-page);
  border: 1.5px dashed rgba(224, 122, 86, 0.4);
  border-radius: var(--radius-md);
  padding: 2.2rem;
}

.profile-panel__box h4 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--accent-deep);
}

.profile-panel__box ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Sección Resultados y Testimonios ──────────────────────────────── */
.section-results {
  padding: 6rem 0;
  background-color: var(--bg-page);
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-bottom: 4rem;
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-inverse-muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Sección Planes & Formatos ─────────────────────────────────────── */
.section-plans {
  padding: 6rem 0;
  background-color: var(--bg-warm);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.plan-card {
  background-color: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.plan-card--featured {
  border: 2px solid var(--mandarina);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.plan-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--mandarina);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
}

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

.plan-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.plan-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.plan-card__features {
  list-style: none;
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}

.plan-card__feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

.plan-card__feature-item .material-symbols-outlined {
  color: var(--accent-deep);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Sección FAQs Acordeón ─────────────────────────────────────────── */
.section-faqs {
  padding: 6rem 0;
  background-color: var(--bg-page);
}

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.4rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  color: var(--accent-deep);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.8rem;
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.8rem 1.6rem;
}

/* ── Sección Contacto / Diagnóstico (Formulario) ───────────────────── */
.section-cta-form {
  padding: 6rem 0;
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  position: relative;
}

.cta-form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-form-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.cta-form-info p {
  font-size: 1.1rem;
  color: var(--text-inverse-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-form-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-inverse);
}

.cta-benefit-item .material-symbols-outlined {
  color: var(--accent);
}

.cta-card-form {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  box-shadow: var(--shadow-dark);
}

.cta-card-form h3 {
  font-size: 1.45rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.cta-card-form p {
  font-size: 0.9rem;
  color: var(--text-inverse-muted);
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-inverse-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 154, 118, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: #FFFFFF;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control option {
  background-color: var(--bg-dark);
  color: #FFFFFF;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  background-color: #0E040D;
  color: var(--text-inverse-muted);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 154, 118, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-inverse-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.82rem;
}

/* ── Floating WhatsApp Button ──────────────────────────────────────── */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background-color: #25D366;
  color: #FFFFFF;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .profile-panel-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cta-form-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 820px) {
  .header__nav {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
  }

  .header__logo {
    height: 38px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 0 4.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .floating-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .header__inner {
    height: 64px;
  }

  .header__brand {
    gap: 0.5rem;
  }

  .header__logo {
    height: 34px;
  }

  .header__vertical-badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
  }
}

@media (max-width: 360px) {
  .header__vertical-badge {
    display: none;
  }
}
