/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  color-scheme: light only;
  --red: #e8112d;
  --red-dark: #c20d24;
  --navy: #0a0a0a;
  --navy-2: #1c1c1c;
  --cream: #ffffff;
  --gray: #555555;
  --green: #0a0a0a;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,0.25);
  --ff: 'Poppins', sans-serif;
  --ff-serif: system-ui, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--ff);
  color: var(--navy);
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
  touch-action: pan-y;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,17,45,0.10), transparent 70%);
  pointer-events: none;
  transform: translate(-50%,-50%);
  z-index: 0;
  transition: opacity .3s;
  top: 0; left: 0;
}

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-logo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  animation: pulseLoader 1.1s ease-in-out infinite;
}
@keyframes pulseLoader {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: .7; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3), box-shadow .35s, background .3s, color .3s;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(232,17,45,0.55);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 34px -8px rgba(232,17,45,0.6); }
.btn-outline {
  background: #fff;
  border: 2px solid #fff;
  color: var(--navy);
}
.btn-outline:hover { transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { transform: translateY(-3px) scale(1.03); }
.btn.full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .4s, padding .4s, box-shadow .4s;
}
.header.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 8px 30px -15px rgba(0,0,0,.15);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; transition: transform .4s; }
.logo:hover img { transform: rotate(-8deg) scale(1.05); }
.logo-text { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.logo-text em { color: var(--red); font-style: normal; }

.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-link {
  font-size: .92rem; font-weight: 500;
  position: relative;
  padding: 6px 0;
  color: #fff;
  transition: color .3s;
}
.header.scrolled .nav-link { color: var(--navy); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width .35s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--red); }
.header.scrolled .nav-link.active { color: var(--red); }
.nav-cta { white-space: nowrap; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  z-index: 110;
}
.burger span {
  width: 26px; height: 2px; background: #fff;
  transition: transform .3s, opacity .3s, background .3s;
}
.header.scrolled .burger span { background: var(--navy); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background-color: #2a0a0e;
  background-image:
    linear-gradient(90deg, rgba(30,6,10,0.92) 0%, rgba(40,10,14,0.6) 34%, rgba(40,10,14,0.1) 60%, rgba(40,10,14,0) 100%),
    url('img/hero-frente.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
  padding-top: 110px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .5;
  animation: floatY 8s ease-in-out infinite;
}
.s1 { width: 260px; height: 260px; background: rgba(232,17,45,0.25); top: -60px; right: 10%; animation-delay: 0s; }
.s2 { width: 180px; height: 180px; background: rgba(255,255,255,0.08); bottom: 10%; left: 4%; animation-delay: 1.5s; }
.s3 { width: 120px; height: 120px; background: rgba(255,255,255,0.12); top: 40%; right: 30%; animation-delay: 3s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(10px); }
}

.hero-grid {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.hero-top {
  display: block;
}
.hero-logo-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-logo-side > img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-text { color: #fff; }
.hero-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.hero-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow);
}
.tag-pill {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .85rem;
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .accent { color: var(--red); }
.hero-tagline-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-tagline {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  color: #ffd9de;
}
.hero-sub { max-width: 480px; color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.02rem; }
.hero-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.hero-pill svg { flex-shrink: 0; color: #ff6b7d; }
.hero-pill-link { transition: background .3s, transform .3s; }
.hero-pill-link:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

.hero-actions { display: flex; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.hero-actions .btn { border-radius: 6px; }

.hero-img { position: relative; }
.hero-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.hero-photo {
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.hero-photo.zoomed img { transform: scale(1.35); }
/* ===== MARQUEE ===== */
.marquee {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}
.marquee-track span {
  font-weight: 700; font-size: .95rem; letter-spacing: 1px;
  padding-right: 60px;
  text-transform: uppercase;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTION COMMON ===== */
.section-tag {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.2rem;
  margin-bottom: 12px;
  text-align: center;
}
.section-tag.light { color: var(--red); }
.section-tag--big {
  font-size: 1.2rem;
}
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: var(--navy);
  text-align: center;
}
.section-title.light { color: #fff; }
.section-sub {
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 40px;
  text-align: justify;
}
.section-sub.light { color: rgba(255,255,255,0.7); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center.section-sub { text-align: center; }

/* ===== ABOUT ===== */
.about {
  padding: 110px 0;
  background: #f7f7f7;
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,17,45,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.about::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -100px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,17,45,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* banderas */
.hero-flags {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}
.flag-img {
  width: 42px; height: 28px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 3px 10px -3px rgba(0,0,0,0.4);
  transition: transform .3s;
}
.flag-img:hover { transform: translateY(-4px) scale(1.12); }

.about-heading { margin-bottom: 60px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.about-text p { color: var(--gray); line-height: 1.8; text-align: justify; }
.about-p2 { margin-top: 18px; }

.explore-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s;
}
.explore-more:hover { color: var(--red); }
.explore-arrow {
  width: 40px; height: 40px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  animation: bounceDown 1.6s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== PROPUESTAS ACADEMICAS ===== */
.academic-intro {
  padding: 100px 0 90px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.academic-intro::before {
  content: '';
  position: absolute;
  top: 50%; left: -140px;
  transform: translateY(-50%);
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,17,45,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.academic-side-shape {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.academic-side-shape--left {
  background: linear-gradient(to bottom, rgba(232,17,45,0.35) 0%, rgba(232,17,45,0.04) 100%);
  clip-path: polygon(0 0, 38% 0, 6% 100%, 0 100%);
}
.academic-side-shape--right {
  background: linear-gradient(to top, rgba(232,17,45,0.35) 0%, rgba(232,17,45,0.04) 100%);
  clip-path: polygon(94% 0, 100% 0, 100% 100%, 62% 100%);
}
.academic-intro > .container { position: relative; z-index: 1; }
.academic-intro::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,17,45,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.academic-question {
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.academic-arrow-wrap { display: flex; justify-content: center; margin: 36px 0 50px; }
.academic-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  animation: bounceDown 1.6s ease-in-out infinite;
}
/* zigzag de propuestas académicas */
.academic-zigzag {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.zz-item + .zz-item { margin-top: -110px; }
.zz-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.zz-line path {
  fill: none;
  stroke: rgba(232,17,45,0.4);
  stroke-width: 2;
  stroke-dasharray: 7 8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.zz-item {
  width: 46%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.zz-left { align-self: flex-start; }
.zz-right { align-self: flex-end; }
.zz-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}
.zz-img {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f2f2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.zz-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.zz-img img[src=""], .zz-img img:not([src]) { display: none; }

/* animación reveal de arriba hacia abajo */
.reveal-down {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-down.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== COURSES ===== */
.courses {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
}
.courses::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,17,45,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.courses::after {
  content: '';
  position: absolute;
  bottom: -120px; left: 10%;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,10,10,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.modalidad-tag {
  margin-top: 10px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.course-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.14);
}
.course-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f0f0f0, #e2e2e2);
  overflow: hidden;
}
.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.course-card:hover .course-card-img img { transform: scale(1.06); }
.course-card-img img[src=""], .course-card-img img:not([src]) { display: none; }
.course-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.course-card-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  position: relative;
  padding-bottom: 12px;
}
.course-card-body h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: rgba(0,0,0,0.12);
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}
.course-card-body p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.6;
  text-align: justify;
}

/* ===== FACILITIES ===== */
.facilities {
  padding: 110px 0 80px;
  background: linear-gradient(180deg, #ffd9de 0%, #ffeef0 45%, #ffffff 100%);
  color: var(--navy);
  position: relative;
  overflow: hidden;
}

/* galería */
.gallery-wrap {
  position: relative;
  margin-top: 50px;
  overflow: hidden;
  touch-action: pan-y;
}
.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  padding: 0 40px;
}
.gallery-slide {
  flex: 0 0 calc(33.333% - 14px);
  aspect-ratio: 1080 / 1345;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
  display: block;
}
.gallery-slide:hover img { transform: scale(1.06); }

.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .3s, background .3s;
}
.gallery-btn:hover { transform: translateY(-50%) scale(1.1); background: var(--red-dark); }
.gallery-btn.prev { left: 6px; }
.gallery-btn.next { right: 6px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.gallery-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background .3s, transform .3s;
  border: none;
}
.gallery-dot.active {
  background: var(--red);
  transform: scale(1.3);
}

@media (max-width: 760px) {
  .gallery-track { padding: 0 40px; gap: 20px; }
  .gallery-slide { flex: 0 0 100%; }
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 110px 0 180px;
  background: var(--red);
  overflow: hidden;
  position: relative;
}
/* fondo con las 2 imagenes (mitad y mitad) */
.testi-bg {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 0;
}
.testi-bg-half {
  flex: 1;
  background-size: cover;
  background-position: center 66%;
}
.testi-bg-left { background-position: center 80%; }
/* degradado rojo suave que une las 2 imagenes por el medio */
.testi-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(232,17,45,0.15) 0%,
    rgba(232,17,45,0.80) 28%,
    rgba(232,17,45,0.92) 50%,
    rgba(232,17,45,0.80) 72%,
    rgba(232,17,45,0.15) 100%);
  pointer-events: none;
}
.testimonials .container,
.testimonials .testi-track-wrap { position: relative; z-index: 2; }
.testimonials .section-tag, .testimonials .section-title { color: #fff; }
.testi-track-wrap { overflow: hidden; margin-top: 280px; }
.testi-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: testiScroll 30s linear infinite;
  padding: 0 24px;
}
.testi-track:hover { animation-play-state: paused; }
.testi-card {
  width: 340px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 24px;
  padding: 30px 26px;
}
.testi-card p { color: var(--navy); font-style: normal; line-height: 1.6; text-align: center; }
@keyframes testiScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== CTA ===== */
/* ===== CONTACT ===== */
.contact {
  padding: 110px 0 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -100px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,17,45,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.contact::after {
  content: '';
  position: absolute;
  bottom: 60px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,17,45,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.contact-hablemos {
  text-align: center;
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin: 6px 0 16px;
}
.contact-social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 40px;
  flex-wrap: wrap;
}
.contact-social-btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .3s, opacity .3s;
  color: #fff;
}
.contact-social-btn:hover { transform: translateY(-4px); opacity: .88; }
.contact-social-btn.wa { background: #25d366; }
.contact-social-btn.ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-social-btn.fb { background: #1877f2; }

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #f9f9f9;
  border-radius: var(--radius);
  padding: 40px;
  display: grid; gap: 16px;
  box-shadow: var(--shadow);
}
.form-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 4px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e3e3e8;
  border-radius: 12px;
  font-family: var(--ff);
  font-size: .92rem;
  background: #fff;
  transition: border-color .3s, box-shadow .3s;
  color: var(--navy);
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(232,17,45,0.12);
}
.form-success {
  display: none;
  color: var(--red);
  font-weight: 600;
  text-align: center;
}
.form-success.show { display: block; animation: fadeUpSmall .5s ease; }
@keyframes fadeUpSmall { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.map-wrap { width: 100%; margin-top: 70px; filter: grayscale(.15); }

/* ===== CTA FINAL ===== */
.cta-final {
  padding: 80px 0;
  background: #f7f7f7;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232,17,45,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box {
  display: inline-block;
  border: 3px solid var(--navy);
  border-radius: 24px;
  padding: 36px 48px;
  margin-bottom: 28px;
}
.cta-box p {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}
.cta-box strong { color: var(--red); }
.cta-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  transition: color .3s;
}
.cta-link:hover { color: var(--red); }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: #fff; padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #fff; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: .9rem; }
.footer-links h4 { margin-bottom: 16px; font-size: .95rem; }
.footer-links a, .footer-links p { display: block; color: rgba(255,255,255,0.65); margin-bottom: 10px; font-size: .9rem; transition: color .3s; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { text-align: center; padding: 24px 0; font-size: .82rem; color: rgba(255,255,255,0.5); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s;
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

.wa-float {
  position: fixed; right: 24px; bottom: 84px;
  width: 56px; height: 56px;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 91;
  transition: transform .3s, box-shadow .3s;
  animation: waPulse 2.2s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(37,211,102,0.5); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 12px rgba(37,211,102,0); }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.fade-up, .fade-in, .fade-in-left, .fade-in-right, .reveal-up, .reveal-line {
  opacity: 0;
  transition: opacity .8s ease, transform .8s ease;
}
.fade-up { transform: translateY(30px); }
.fade-in { transform: scale(.95); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }
.reveal-up { transform: translateY(40px); }

.fade-up.visible, .fade-in.visible, .fade-in-left.visible, .fade-in-right.visible, .reveal-up.visible, .reveal-line.visible {
  opacity: 1;
  transform: none;
}

.course-card.reveal-up:nth-child(2) { transition-delay: .1s; }
.course-card.reveal-up:nth-child(3) { transition-delay: .2s; }
.course-card.reveal-up:nth-child(4) { transition-delay: .3s; }
.course-card.reveal-up:nth-child(5) { transition-delay: .4s; }
.course-card.reveal-up:nth-child(6) { transition-delay: .5s; }
.facility-card.reveal-up:nth-child(2) { transition-delay: .15s; }
.facility-card.reveal-up:nth-child(3) { transition-delay: .3s; }

/* hero title char animation */
.hero-title .line {
  opacity: 0;
  transform: translateY(60px);
  animation: titleIn .9s cubic-bezier(.2,.9,.2,1) forwards;
}
.hero-title .line:nth-child(2) { animation-delay: .15s; }
@keyframes titleIn {
  to { opacity: 1; transform: translateY(0); }
}
.tag-pill { animation: titleIn .7s ease forwards; opacity: 0; transform: translateY(20px); }
.hero-sub.fade-up, .hero-actions.fade-up, .hero-stats.fade-up { opacity: 1; transform: none; }
.hero-sub { animation: titleIn .9s ease .3s forwards; opacity: 0; transform: translateY(20px); }
.hero-actions { animation: titleIn .9s ease .45s forwards; opacity: 0; transform: translateY(20px); }
.hero-stats { animation: titleIn .9s ease .6s forwards; opacity: 0; transform: translateY(20px); }
.hero-img.fade-in { animation: heroImgIn 1s ease .3s forwards; opacity: 0; transform: scale(.9); }
@keyframes heroImgIn { to { opacity: 1; transform: scale(1); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-logo-side { order: -1; }
  .hero-logo-side > img { max-width: 180px; }
  .about-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: 1fr; }
  .facility-card img, .facility-card.big img { height: 240px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 70%; height: 100vh;
    background: var(--navy);
    padding: 110px 30px 30px;
    gap: 22px;
    z-index: 105;
  }
  .nav-links.open .nav-link { color: #fff; font-size: 1.05rem; }
  .burger { display: flex; }
  .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .testi-card { width: 260px; padding: 24px 20px; }
  /* en móvil: una sola imagen a la vez, rotando */
  .testi-bg { display: block; }
  .testi-bg-half {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
  }
  .testi-bg-half.active { opacity: 1; }
  .testi-overlay {
    background: linear-gradient(180deg,
      rgba(232,17,45,0.5) 0%,
      rgba(232,17,45,0.2) 32%,
      rgba(232,17,45,0.85) 66%,
      rgba(232,17,45,0.95) 100%);
  }
  .cards-grid { grid-template-columns: 1fr; max-width: 400px; }
  .facilities .section-sub { text-align: justify; }
  .academic-zigzag { gap: 26px; }
  .zz-item { width: 72%; gap: 8px; }
  .zz-item + .zz-item { margin-top: 0; }
  .zz-text { font-size: .92rem; }
  .zz-img { aspect-ratio: 5 / 4; border-radius: 12px; }
  .form-row { grid-template-columns: 1fr; }
  /* en móvil: foto vertical del frente */
  .hero {
    background-image:
      linear-gradient(180deg, rgba(30,6,10,0.55) 0%, rgba(30,6,10,0.35) 35%, rgba(30,6,10,0.7) 78%, rgba(30,6,10,0.9) 100%),
      url('img/hero-frente-vertical.jpeg');
    align-items: flex-start;
    padding-top: 130px;
  }
  .hero-photos { gap: 10px; }
  .hero-photo { border-radius: 12px; aspect-ratio: 3/4; }
  .hero-photo-2 img { object-position: 10% 30%; }
}

@media (max-width: 480px) {
  .hero-photos { gap: 6px; }
}
