/* ============================================================
   EDUCSIE — Estilos globales
   Paleta vibrante: azul, naranja, amarillo, rojo, blanco
   Tipografía: Poppins (Google Fonts)
   ============================================================ */

/* --- Variables --- */
:root {
  --blue:       #2563eb;
  --blue-dk:    #1d4ed8;
  --blue-lt:    #eff6ff;
  --sky:        #0ea5e9;
  --orange:     #f97316;
  --orange-dk:  #ea6c09;
  --orange-lt:  #fff7ed;
  --yellow:     #fbbf24;
  --yellow-lt:  #fefce8;
  --red:        #f43f5e;
  --red-lt:     #fff1f2;
  --green:      #22c55e;
  --purple:     #7c3aed;

  --dark:       #0f172a;
  --dark-2:     #1e293b;
  --gray:       #64748b;
  --gray-lt:    #e2e8f0;
  --light:      #f8fafc;
  --white:      #ffffff;
  --text:       #1e293b;

  /* Aliases para compatibilidad */
  --color-primary:    var(--blue);
  --color-primary-dk: var(--blue-dk);
  --color-dark:       var(--dark);
  --color-dark-2:     var(--dark-2);
  --color-light:      var(--light);
  --color-white:      var(--white);
  --color-gray:       var(--gray);
  --color-gray-lt:    var(--gray-lt);
  --color-text:       var(--text);

  --font-main:  'Poppins', 'Segoe UI', system-ui, sans-serif;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-pill:50px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.14);
  --transition: .25s ease;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); }

.navbar__brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}

.navbar__brand-dot {
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin-left: 2rem;
  flex: 1;
}

.navbar__nav a {
  color: var(--gray);
  font-size: .88rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--blue);
  background: var(--blue-lt);
}

/* Dropdown */
.navbar__dropdown { position: relative; }
.navbar__dropdown-toggle { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.navbar__dropdown-toggle::after { content: '▾'; font-size: .7rem; opacity: .6; }

.navbar__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .6rem);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 210px;
  padding: .5rem 0;
  z-index: 200;
  border: 1px solid var(--gray-lt);
}

.navbar__dropdown:hover .navbar__dropdown-menu { display: block; }
.navbar__dropdown-menu a { display: block; color: var(--text); padding: .55rem 1.2rem; font-size: .86rem; }
.navbar__dropdown-menu a:hover { background: var(--blue-lt); color: var(--blue); }

.navbar__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-main);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,.5);
  transform: translateY(-1px);
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
}

.btn-orange:hover { box-shadow: 0 6px 24px rgba(249,115,22,.5); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}

.btn-outline:hover { background: var(--blue-lt); }

.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white);
}

.btn-outline-light:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-2); }

.btn-white { background: var(--white); color: var(--blue); font-weight: 700; }
.btn-white:hover { background: var(--blue-lt); }

.btn-lg { padding: .85rem 2rem; font-size: 1rem; }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: .4rem;
  background: none;
  border: none;
}

.navbar__hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO — imagen de fondo con zoom Ken Burns + overlay
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--dark); /* fallback si no hay imagen */
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Imagen de fondo con animación Ken Burns (zoom lento) */
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../imgs/hero-bg.jpg') center / cover no-repeat;
  animation: ken-burns 22s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes ken-burns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.18); }
}

/* Overlay semitransparente para legibilidad del texto */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 20, 50, 0.72) 0%,
    rgba(15, 23, 42, 0.55) 60%,
    rgba(10, 20, 50, 0.65) 100%
  );
  z-index: 0;
}

/* Blobs de color animados */
.blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  opacity: .13;
  filter: blur(50px);
  animation: blob-morph 10s ease-in-out infinite;
  pointer-events: none;
}

.blob--blue   { background: var(--blue);   width: 420px; height: 420px; top: -80px;   right: 4%;  animation-duration: 11s; }
.blob--orange { background: var(--orange); width: 300px; height: 300px; bottom: 5%;   right: 20%; animation-duration: 8s;  animation-delay: -3s; }
.blob--yellow { background: var(--yellow); width: 260px; height: 260px; top: 30%;     left: 2%;   animation-duration: 13s; animation-delay: -6s; }
.blob--red    { background: var(--red);    width: 200px; height: 200px; bottom: 20%;  left: 15%;  animation-duration: 9s;  animation-delay: -2s; }

@keyframes blob-morph {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%     { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%     { border-radius: 50% 50% 30% 70% / 30% 30% 70% 70%; }
  75%     { border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%; }
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

/* gradient-text sobre fondo oscuro: amarillo → naranja */
.hero .gradient-text {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* gradient-text genérico (secciones claras) */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.8;
}

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

/* Tarjetas flotantes del hero — apiladas en columna */
.hero__visual { display: flex; justify-content: center; align-items: center; }

.hero__card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 300px;
}

.hero__card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.hero__card:nth-child(1) {
  border-top: 3px solid var(--yellow);
  animation: float 5s ease-in-out infinite;
}

.hero__card:nth-child(2) {
  border-top: 3px solid var(--orange);
  animation: float 5s ease-in-out infinite;
  animation-delay: -2.5s;
}

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

.hero__card-icon  { font-size: 1.6rem; margin-bottom: .6rem; }
.hero__card-title { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: .3rem; }
.hero__card-desc  { font-size: .8rem; color: rgba(255,255,255,.72); line-height: 1.6; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 60%, var(--blue) 100%);
  padding: 1.6rem 2rem;
}

.stats-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}

.stats-bar__item { text-align: center; color: var(--white); }
.stats-bar__number { font-size: 2rem; font-weight: 800; line-height: 1; }
.stats-bar__label  { font-size: .82rem; opacity: .85; margin-top: .2rem; }

/* ============================================================
   SECCIÓN GENÉRICA
   ============================================================ */
.section { padding: 5.5rem 2rem; }
.section--light { background: var(--light); }
.section--dark  { background: var(--dark);  color: var(--white); }
.section--blue-lt { background: var(--blue-lt); }
.section--orange-lt { background: var(--orange-lt); }

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

.section__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: var(--radius-pill);
  margin-bottom: .8rem;
}

.tag--blue   { background: var(--blue-lt);   color: var(--blue); }
.tag--orange { background: var(--orange-lt);  color: var(--orange); }
.tag--yellow { background: var(--yellow-lt);  color: #92400e; }
.tag--red    { background: var(--red-lt);     color: var(--red); }
.tag--white  { background: rgba(255,255,255,.15); color: var(--white); }

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section--dark .section__title { color: var(--white); }

.section__subtitle {
  color: var(--gray);
  max-width: 580px;
  margin-bottom: 3rem;
  font-size: .97rem;
  line-height: 1.75;
}

.section--dark .section__subtitle { color: rgba(255,255,255,.65); }

/* Animaciones de entrada */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   PARALLAX BAND
   ============================================================ */
.parallax-band {
  position: relative;
  padding: 7rem 2rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--sky) 100%);
  background-attachment: fixed;
  background-size: cover;
  overflow: hidden;
}

/* overlay para legibilidad */
.parallax-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.35);
}

.parallax-band__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.parallax-band__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: .8rem;
}

.parallax-band__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.parallax-band__text {
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  font-size: .97rem;
  margin-bottom: 1.8rem;
}

/* Panel glass sobre la derecha */
.parallax-panel {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  animation: float 6s ease-in-out infinite;
}

.parallax-panel__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  font-size: .92rem;
  font-weight: 500;
}

.parallax-panel__item:last-child { border-bottom: none; }

.parallax-panel__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Segunda banda parallax */
.parallax-band-2 {
  position: relative;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 50%, var(--yellow) 100%);
  background-attachment: fixed;
  background-size: cover;
  overflow: hidden;
}

.parallax-band-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.2);
}

.parallax-band-2__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.parallax-band-2__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.parallax-band-2__text {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* ============================================================
   SLIDER (testimonios)
   ============================================================ */
.slider-wrapper { position: relative; }

.slider { overflow: hidden; }

.slider__track {
  display: flex;
  transition: transform .45s cubic-bezier(.25,.1,.25,1);
}

.slider__slide {
  flex: 0 0 33.333%;
  padding: .5rem .75rem;
  box-sizing: border-box;
}

@media (max-width: 800px) { .slider__slide { flex: 0 0 100%; } }
@media (max-width: 1100px) and (min-width: 801px) { .slider__slide { flex: 0 0 50%; } }

.testimonial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  height: 100%;
}

.testimonial-card__text {
  font-size: .93rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.4rem;
  font-style: italic;
  line-height: 1.75;
}

.testimonial-card__author { display: flex; align-items: center; gap: .85rem; }

.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-card__name { font-weight: 700; font-size: .9rem; color: var(--white); }
.testimonial-card__role { font-size: .78rem; color: rgba(255,255,255,.5); }

/* Controles del slider */
.slider__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.slider__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.slider__btn:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.7);
}

.slider__dots { display: flex; gap: .5rem; }

.slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.slider__dot.active {
  background: var(--yellow);
  transform: scale(1.3);
}

/* ============================================================
   ACORDEÓN
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: .6rem; }

.accordion-item {
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.accordion-item.open {
  box-shadow: var(--shadow-sm);
  border-color: var(--blue);
}

.accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  font-family: var(--font-main);
  gap: 1rem;
  transition: background var(--transition);
}

.accordion-toggle:hover { background: var(--blue-lt); }
.accordion-item.open .accordion-toggle { background: var(--blue-lt); color: var(--blue); }

.accordion-toggle__icon {
  font-size: .8rem;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--blue);
}

.accordion-item.open .accordion-toggle__icon { transform: rotate(180deg); }

.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-item.open .accordion-body { max-height: 2000px; }

.accordion-body__inner {
  padding: 1rem 1.4rem 1.4rem;
  border-top: 1px solid var(--gray-lt);
}

.accordion-body__inner ul { margin-top: .7rem; display: flex; flex-direction: column; gap: .4rem; }

.accordion-body__inner ul li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.6;
}

.accordion-body__inner ul li::before {
  content: '→';
  color: var(--blue);
  flex-shrink: 0;
  font-size: .8rem;
  margin-top: .1rem;
}

.accordion-body__inner p { font-size: .88rem; color: var(--gray); margin: .8rem 0 .4rem; }

/* Acordeón sobre fondo oscuro (FAQ) */
.section--dark .accordion-item { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section--dark .accordion-item.open { border-color: var(--yellow); }
.section--dark .accordion-toggle { color: var(--white); }
.section--dark .accordion-toggle:hover { background: rgba(255,255,255,.07); }
.section--dark .accordion-item.open .accordion-toggle { background: rgba(255,255,255,.07); color: var(--yellow); }
.section--dark .accordion-toggle__icon { color: var(--yellow); }
.section--dark .accordion-body__inner { border-top-color: rgba(255,255,255,.1); }
.section--dark .accordion-body__inner ul li { color: rgba(255,255,255,.72); }
.section--dark .accordion-body__inner ul li::before { color: var(--yellow); }
.section--dark .accordion-body__inner p { color: rgba(255,255,255,.72); }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-lt);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: var(--blue);
}

.feature-card__icon {
  width: 54px; height: 54px;
  background: var(--blue-lt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--dark); }
.feature-card__desc  { font-size: .86rem; color: var(--gray); line-height: 1.65; }

/* ============================================================
   SERVICIOS GRID
   ============================================================ */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

/* Colores por índice: nth-child */
.servicio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  border-top: 4px solid var(--blue);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.servicio-card:nth-child(2) { border-top-color: var(--orange); }
.servicio-card:nth-child(3) { border-top-color: var(--yellow); }
.servicio-card:nth-child(4) { border-top-color: var(--red); }
.servicio-card:nth-child(5) { border-top-color: var(--green); }
.servicio-card:nth-child(6) { border-top-color: var(--purple); }

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

.servicio-card__icon { font-size: 1.8rem; margin-bottom: .8rem; }
.servicio-card__title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.servicio-card__desc  { font-size: .86rem; color: var(--gray); line-height: 1.65; }

/* ============================================================
   MODALIDADES
   ============================================================ */
.modalidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.modalidad-card {
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: default;
}

.modalidad-card:hover {
  background: rgba(255,255,255,.14);
  border-color: var(--yellow);
  transform: translateY(-3px);
}

.modalidad-card__icon { font-size: 1.6rem; margin-bottom: .6rem; }
.modalidad-card__name { font-size: .88rem; font-weight: 600; color: var(--white); line-height: 1.4; }

/* ============================================================
   CAPACITACIONES
   ============================================================ */
.capacitaciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: .8rem;
}

.cap-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--white);
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius);
  padding: .95rem 1.1rem;
  font-size: .87rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.cap-item:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(249,115,22,.12);
  transform: translateX(4px);
}

.cap-item__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: .3rem;
}

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--white);
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.category-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 20px rgba(37,99,235,.15);
  transform: translateY(-4px);
}

.category-card__icon { font-size: 1.8rem; margin-bottom: .5rem; }
.category-card__name { font-size: .85rem; font-weight: 600; color: var(--dark); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-lt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pricing-card--featured {
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(37,99,235,.18);
}

.pricing-card__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: var(--white);
  padding: .25rem 1rem;
  border-radius: var(--radius-pill);
  font-size: .74rem;
  font-weight: 700;
}

.pricing-card__name   { font-weight: 700; color: var(--gray); margin-bottom: .5rem; }
.pricing-card__price  { font-size: 2.4rem; font-weight: 800; color: var(--dark); line-height: 1; }
.pricing-card__price sup { font-size: 1rem; font-weight: 700; vertical-align: super; }
.pricing-card__period { font-size: .82rem; color: var(--gray); margin-bottom: 1.5rem; }

.pricing-card__features { text-align: left; margin-bottom: 1.8rem; }
.pricing-card__features li {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .4rem 0; font-size: .87rem;
  border-bottom: 1px solid var(--gray-lt);
}
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__features li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info__icon {
  width: 44px; height: 44px;
  background: var(--blue-lt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info__label { font-size: .76rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; }
.contact-info__value { font-size: .92rem; color: var(--text); }

.contact-form {
  background: var(--white);
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.4rem; color: var(--dark); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 50%, var(--yellow) 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner__title {
  position: relative;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: .8rem;
}

.cta-banner__subtitle {
  position: relative;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 4rem 2rem 1.5rem;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.5rem;
}

.footer__brand { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: .8rem; }
.footer__tagline { font-size: .87rem; margin-bottom: 1.3rem; max-width: 260px; line-height: 1.65; }

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

.footer__social a {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  transition: all var(--transition);
  font-weight: 700;
}

.footer__social a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(249,115,22,.1);
}

.footer__col-title { font-size: .82rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; letter-spacing: .05em; text-transform: uppercase; }
.footer__col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer__col ul a { font-size: .84rem; transition: color var(--transition); }
.footer__col ul a:hover { color: var(--orange); }

.footer__bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer__bottom a:hover { color: var(--orange); }

/* ============================================================
   MODALES
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; animation: fadeIn .2s ease; }

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

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
  overflow: hidden;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--gray-lt);
}

.modal__title { font-size: 1.1rem; font-weight: 700; }

.modal__close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gray);
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.modal__close:hover { background: var(--gray-lt); }
.modal__body   { padding: 1.6rem; }
.modal__footer { padding: 1rem 1.6rem; border-top: 1px solid var(--gray-lt); display: flex; gap: .75rem; justify-content: flex-end; }

/* Formularios */
.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font-main);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  color: var(--text);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.toast {
  background: var(--dark);
  color: var(--white);
  padding: .9rem 1.4rem;
  border-radius: var(--radius);
  font-size: .87rem;
  font-family: var(--font-main);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 240px;
  animation: toastIn .25s ease;
}

@keyframes toastIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

.toast--success { border-left: 4px solid var(--green); }
.toast--error   { border-left: 4px solid var(--red); }
.toast--info    { border-left: 4px solid var(--blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .navbar__nav     { display: none; }
  .navbar__actions { display: none; }
  .navbar__hamburger { display: flex; }

  .navbar.mobile-open {
    flex-wrap: wrap;
    height: auto;
    padding-bottom: 1rem;
  }

  .navbar.mobile-open .navbar__nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: .1rem;
    margin-left: 0;
    margin-top: .5rem;
  }

  .navbar.mobile-open .navbar__nav a { padding: .6rem 0; }

  .navbar.mobile-open .navbar__actions {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-left: 0;
    margin-top: .5rem;
  }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }

  .parallax-band__inner { grid-template-columns: 1fr; }
  .contact-grid         { grid-template-columns: 1fr; }

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

@media (max-width: 520px) {
  .section { padding: 3.5rem 1.2rem; }
  .footer__inner  { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .stats-bar__inner { gap: 1.5rem; }
}
