:root {
  --rojo: #ef2f35;
  --amarillo: #ffe600;
  --azul: #079bd3;
  --azul-oscuro: #252f55;
  --blanco: #ffffff;
  --gris: #f5f6fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  color: var(--azul-oscuro);
  background: var(--gris);
}

.navbar {
  height: 88px;
  background: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.logo h3 {
  color: var(--rojo);
}

.logo span {
  font-weight: bold;
  color: var(--azul-oscuro);
}

nav a {
  margin: 0 14px;
  text-decoration: none;
  color: var(--azul-oscuro);
  font-weight: bold;
}

.btn-menu,
.btn-primary {
  background: var(--amarillo);
  color: var(--azul-oscuro);
  padding: 15px 28px;
  border-radius: 35px;
  text-decoration: none;
  font-weight: bold;
  border: none;
}

.btn-secondary {
  background: var(--rojo);
  color: white;
  padding: 15px 28px;
  border-radius: 35px;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  min-height: 720px;
  background: linear-gradient(90deg, rgba(37,47,85,.95), rgba(7,155,211,.75)), url("../img/colegio.png");
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 50px;
  padding: 80px 10%;
}

.hero-text h1 {
  color: white;
  font-size: 62px;
  line-height: 1.1;
  max-width: 720px;
}

.hero-text p {
  color: white;
  font-size: 22px;
  margin: 25px 0 35px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.form-card {
  background: white;
  padding: 45px;
  border-radius: 35px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.form-card h2 {
  text-align: center;
  margin-bottom: 25px;
}

.form-card input,
.form-card select {
  width: 100%;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 18px;
  border: 1px solid #ddd;
  background: #f2f3f7;
  font-size: 16px;
}

.form-card button {
  width: 100%;
  padding: 18px;
  border-radius: 30px;
  border: none;
  background: var(--amarillo);
  color: var(--azul-oscuro);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.section {
  padding: 100px 10%;
}

.nosotros {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
  background: white;
}

.tag {
  background: #e6f6ff;
  color: var(--azul-oscuro);
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: bold;
}

.card-info {
  background: white;
  margin-top: 35px;
  padding: 35px;
  border-radius: 28px;
  box-shadow: 0 15px 45px rgba(0,0,0,.08);
  border-left: 8px solid var(--rojo);
}

.card-info h3 {
  color: var(--rojo);
  margin-bottom: 12px;
}

.card-info p {
  font-size: 21px;
  line-height: 1.6;
}

.image-box{

    background:white;

    border-radius:30px;

    padding:20px;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

    box-shadow:0 20px 45px rgba(0,0,0,.10);

    border:2px solid #d9e8f7;

}

.image-box::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: #079bd3;
  border-radius: 50%;
  right: -220px;
  top: -220px;
  opacity: .10;
}

.image-box::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  background: #ef2f35;
  border-radius: 50%;
  left: -120px;
  bottom: -120px;
  opacity: .08;
}

.image-box img{

    width:100%;

    max-width:650px;

    border-radius:25px;

    object-fit:cover;

    position:relative;

    z-index:5;

    transition:.4s;

    box-shadow:0 25px 60px rgba(0,0,0,.18);

}

.image-box img:hover {
  transform: scale(1.05);
}

.especialidades {
  background: var(--azul);
  padding: 100px 10%;
  color: white;
  text-align: center;
}

.especialidades h2,
.indicadores h2 {
  font-size: 48px;
  margin-bottom: 15px;
}

.especialidades p {
  font-size: 20px;
  margin-bottom: 45px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.especialidad {
  background: white;
  color: var(--azul-oscuro);
  padding: 35px 25px;
  border-radius: 25px;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

.indicadores {
  background: var(--amarillo);
  padding: 100px 10%;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 45px;
}

.stats div {
  background: var(--azul-oscuro);
  color: white;
  padding: 40px;
  border-radius: 30px;
}

.stats h3 {
  font-size: 48px;
  color: var(--amarillo);
}

.moviemo {
  background: linear-gradient(90deg, var(--azul-oscuro), var(--rojo));
  color: white;
  padding: 90px 10%;
}

.moviemo h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.moviemo p {
  font-size: 22px;
  max-width: 850px;
  margin-bottom: 35px;
}

.contacto {
  padding: 90px 10%;
  background: white;
  text-align: center;
}

.contacto h2 {
  font-size: 45px;
  color: var(--rojo);
  margin-bottom: 25px;
}

.contacto p {
  font-size: 20px;
  margin: 10px;
}

.whatsapp {
  position: fixed;
  right: 35px;
  bottom: 35px;
  background: #25d366;
  color: white;
  padding: 18px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 20;
}

.footer {
  background: #25355b;
  color: #ffffff;
  padding: 70px 8% 35px;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 70px;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.footer-logo img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,.25));
}

.footer-logo h2 {
  font-size: 32px;
  line-height: 1;
  color: #ffffff;
}

.footer-logo h3 {
  font-size: 28px;
  line-height: 1;
  color: #ffe600;
}

.footer-brand p {
  font-size: 18px;
  margin-bottom: 18px;
  color: #ffffff;
}

.footer-phone {
  display: inline-block;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.footer-column h4 {
  color: #ffe600;
  font-size: 15px;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

.footer-column h5 {
  color: #ffffff;
  font-size: 18px;
  margin: 22px 0 8px;
}

.footer-column p {
  color: #c7d0e8;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-column a {
  color: #ffe600;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 50px;
  margin-bottom: 35px;
}

.footer-links a {
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
}

.reclamaciones {
  display: inline-block;
  color: #aeb8d3 !important;
  text-decoration: none !important;
  font-weight: 800;
  margin-top: 10px;
}

.footer-social {
  margin: 55px auto 35px;
  background: rgba(255,255,255,.10);
  width: fit-content;
  padding: 14px 28px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social span {
  font-weight: 800;
  font-size: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.15);
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 800;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.footer-copy {
  text-align: center;
  color: #9ba6c2;
  font-size: 14px;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-logo h2 {
    font-size: 26px;
  }

  .footer-logo h3 {
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  nav {
    margin: 20px 0;
  }

  nav a {
    display: inline-block;
    margin: 8px;
  }

  .hero,
  .nosotros {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .grid,
  .stats {
    grid-template-columns: 1fr;
  }
}

/*======================
POPUP BIENVENIDA
======================*/

.popup-overlay{

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

background:rgba(0,0,0,.80);

display:flex;

justify-content:center;

align-items:center;

z-index:999999;

animation:fadeIn .4s;

}

.popup{

position:relative;

background:white;

padding:12px;

border-radius:20px;

box-shadow:0 25px 60px rgba(0,0,0,.45);

animation:zoom .45s;

}

.popup img{

width:520px;

max-width:90vw;

border-radius:15px;

display:block;

}

.cerrar-popup{

position:absolute;

top:-15px;

right:-15px;

width:45px;

height:45px;

border:none;

border-radius:50%;

background:#ef2f35;

color:white;

font-size:22px;

cursor:pointer;

font-weight:bold;

box-shadow:0 10px 25px rgba(0,0,0,.35);

}

.cerrar-popup:hover{

background:#d80000;

transform:scale(1.1);

}

@keyframes zoom{

0%{

transform:scale(.6);

opacity:0;

}

100%{

transform:scale(1);

opacity:1;

}

}

@keyframes fadeIn{

0%{

opacity:0;

}

100%{

opacity:1;

}

}

/*======================================
SECCION DOCENTES
=======================================*/

.docentes{

padding:100px 8%;

background:#f8fbff;

}

.titulo-docentes{

text-align:center;

margin-bottom:60px;

}

.titulo-docentes span{

background:#ffe600;

padding:12px 35px;

border-radius:40px;

font-weight:bold;

color:#25355b;

}

.titulo-docentes h2{

font-size:52px;

margin-top:30px;

color:#25355b;

}

.titulo-docentes p{

font-size:22px;

max-width:850px;

margin:25px auto;

line-height:1.8;

color:#4d5a72;

}

.foto-docentes{

margin:auto;

max-width:1200px;

background:white;

padding:18px;

border-radius:30px;

box-shadow:0 20px 60px rgba(0,0,0,.12);

}

.foto-docentes img{

width:100%;

display:block;

border-radius:20px;

}

.estadisticas-docentes{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:25px;

margin-top:60px;

}

.dato{

background:white;

padding:35px;

border-radius:25px;

text-align:center;

box-shadow:0 15px 35px rgba(0,0,0,.08);

transition:.3s;

}

.dato:hover{

transform:translateY(-8px);

}

.dato h3{

font-size:48px;

color:#ef2f35;

margin-bottom:10px;

}

.dato p{

font-size:20px;

font-weight:bold;

color:#25355b;

}

/*======================================
PALETA INSTITUCIONAL Y ANIMACIONES
=======================================*/

:root {
  --rojo: #f5262f;
  --rojo-profundo: #b9141e;
  --amarillo: #fff200;
  --dorado: #d6a900;
  --azul: #00aef0;
  --azul-oscuro: #17213f;
  --azul-noche: #090d1d;
  --blanco: #ffffff;
  --gris: #f4f7fb;
  --tinta: #1f2638;
  --sombra: 0 22px 55px rgba(9, 13, 29, .16);
  --sombra-fuerte: 0 28px 75px rgba(9, 13, 29, .28);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--tinta);
  background:
    radial-gradient(circle at top left, rgba(255, 242, 0, .26), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(0, 174, 240, .18), transparent 24%),
    linear-gradient(180deg, #fffdf0 0%, #f4f8ff 42%, #fff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 44%, rgba(255, 242, 0, .10) 45%, transparent 52%),
    linear-gradient(60deg, transparent 0 46%, rgba(0, 174, 240, .08) 47%, transparent 54%);
  background-size: 420px 420px;
  animation: fondoInstitucional 18s linear infinite;
  z-index: -1;
}

.navbar {
  background: rgba(255, 255, 255, .92);
  border-bottom: 4px solid var(--amarillo);
  box-shadow: 0 10px 35px rgba(23, 33, 63, .12);
  backdrop-filter: blur(14px);
  animation: bajarSuave .8s ease both;
}

.logo img,
.footer-logo img {
  filter: drop-shadow(0 10px 18px rgba(0, 174, 240, .24));
  animation: latidoLogo 3.5s ease-in-out infinite;
}

.logo h3,
.footer-logo h2 {
  color: var(--rojo);
}

.logo span,
.footer-logo h3 {
  color: var(--azul-oscuro);
}

nav a {
  position: relative;
  transition: color .25s ease, transform .25s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--rojo), var(--amarillo), var(--azul));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

nav a:hover {
  color: var(--rojo);
  transform: translateY(-2px);
}

nav a:hover::after {
  transform: scaleX(1);
}

.btn-menu,
.btn-primary,
.btn-secondary,
.form-card button,
.whatsapp,
.footer-phone {
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}

.btn-menu,
.btn-primary,
.form-card button {
  background: linear-gradient(135deg, var(--amarillo), #ffd000);
  color: var(--azul-noche);
  box-shadow: 0 12px 28px rgba(214, 169, 0, .28);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--rojo), var(--rojo-profundo));
  box-shadow: 0 12px 28px rgba(245, 38, 47, .28);
}

.btn-menu:hover,
.btn-primary:hover,
.btn-secondary:hover,
.form-card button:hover,
.whatsapp:hover,
.footer-phone:hover {
  transform: translateY(-4px) scale(1.02);
  filter: saturate(1.12);
  box-shadow: var(--sombra-fuerte);
}

.hero {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(120deg, rgba(9, 13, 29, .94), rgba(23, 33, 63, .84) 44%, rgba(0, 174, 240, .58)),
    url("../img/colegio.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    conic-gradient(from 120deg, transparent, rgba(255, 242, 0, .30), transparent, rgba(245, 38, 47, .20), transparent);
  animation: giroLuz 18s linear infinite;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -170px;
  bottom: -190px;
  border: 42px solid rgba(0, 174, 240, .24);
  border-radius: 50%;
  box-shadow: inset 0 0 0 24px rgba(255, 242, 0, .12);
  animation: flotar 7s ease-in-out infinite;
  z-index: -1;
}

.hero-text {
  animation: entrarIzquierda .9s ease both;
}

.hero-text h1 {
  text-shadow: 0 8px 28px rgba(0, 0, 0, .32);
}

.hero-text p {
  color: #f9fbff;
}

.form-card {
  border: 1px solid rgba(255, 242, 0, .45);
  border-top: 8px solid var(--amarillo);
  border-radius: 28px;
  box-shadow: var(--sombra-fuerte);
  animation: entrarDerecha .9s ease .12s both, flotarSuave 5.5s ease-in-out 1.2s infinite;
}

.form-card h2 {
  color: var(--azul-oscuro);
}

.form-card input,
.form-card select {
  border: 1px solid rgba(0, 174, 240, .20);
  background: #f7fbff;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.form-card input:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(0, 174, 240, .15);
  transform: translateY(-2px);
}

.docentes,
.nosotros,
.especialidades,
.indicadores,
.moviemo,
.contacto,
.footer {
  position: relative;
  overflow: hidden;
}

.docentes {
  background:
    linear-gradient(180deg, #fff 0%, #f3fbff 100%);
}

.titulo-docentes span,
.tag {
  background: linear-gradient(135deg, var(--amarillo), #fff8a8);
  color: var(--azul-noche);
  box-shadow: 0 10px 24px rgba(214, 169, 0, .20);
}

.titulo-docentes h2,
.especialidades h2,
.indicadores h2,
.moviemo h2,
.contacto h2 {
  color: var(--azul-oscuro);
}

.foto-docentes,
.card-info,
.image-box,
.especialidad,
.stats div,
.dato {
  border-radius: 22px;
  box-shadow: var(--sombra);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.foto-docentes {
  border: 4px solid rgba(255, 242, 0, .72);
}

.foto-docentes img,
.image-box img {
  transition: transform .55s ease, filter .55s ease;
}

.foto-docentes:hover,
.card-info:hover,
.image-box:hover,
.especialidad:hover,
.stats div:hover,
.dato:hover {
  transform: translateY(-9px);
  box-shadow: var(--sombra-fuerte);
}

.foto-docentes:hover img,
.image-box:hover img {
  transform: scale(1.035);
  filter: saturate(1.10) contrast(1.04);
}

.card-info {
  border-left: 8px solid var(--rojo);
}

.card-info h3,
.dato h3,
.contacto h2 {
  color: var(--rojo);
}

.image-box {
  position: relative;
  border: 2px solid rgba(0, 174, 240, .22);
}

.especialidades {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 242, 0, .28), transparent 26%),
    linear-gradient(135deg, var(--azul), #0876bc 64%, var(--azul-oscuro));
}

.especialidades h2,
.especialidades p,
.moviemo h2,
.moviemo p {
  color: white;
}

.especialidad {
  border-top: 6px solid var(--amarillo);
}

.especialidad:nth-child(3n + 1) {
  border-top-color: var(--rojo);
}

.especialidad:nth-child(3n + 2) {
  border-top-color: var(--azul);
}

.indicadores {
  background:
    linear-gradient(135deg, var(--amarillo), #fff7a1);
}

.stats div {
  background: linear-gradient(145deg, var(--azul-oscuro), var(--azul-noche));
  border-bottom: 6px solid var(--azul);
}

.stats div:nth-child(even) {
  border-bottom-color: var(--rojo);
}

.stats h3 {
  color: var(--amarillo);
}

.moviemo {
  background:
    linear-gradient(120deg, rgba(9, 13, 29, .96), rgba(245, 38, 47, .82)),
    radial-gradient(circle at 80% 20%, rgba(0, 174, 240, .36), transparent 30%);
}

.contacto {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.whatsapp {
  background: linear-gradient(135deg, #13c95c, #0a9f48);
  animation: pulsoWhatsapp 2.2s ease-in-out infinite;
}

.footer {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 242, 0, .16), transparent 24%),
    linear-gradient(135deg, var(--azul-noche), var(--azul-oscuro));
  border-top: 6px solid var(--amarillo);
}

.footer-column h4,
.footer-column a,
.footer-logo h3 {
  color: var(--amarillo);
}

.footer-social {
  border: 1px solid rgba(255, 242, 0, .24);
}

.footer-social a {
  transition: transform .25s ease, background .25s ease;
}

.footer-social a:hover {
  background: var(--rojo);
  transform: translateY(-4px) rotate(6deg);
}

.animar-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .75s ease, transform .75s ease;
}

.animar-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid .especialidad,
.stats div,
.estadisticas-docentes .dato,
.card-info {
  animation: aparecerTarjeta .7s ease both;
}

.grid .especialidad:nth-child(2),
.stats div:nth-child(2),
.estadisticas-docentes .dato:nth-child(2) {
  animation-delay: .08s;
}

.grid .especialidad:nth-child(3),
.stats div:nth-child(3),
.estadisticas-docentes .dato:nth-child(3) {
  animation-delay: .16s;
}

.grid .especialidad:nth-child(4),
.stats div:nth-child(4),
.estadisticas-docentes .dato:nth-child(4) {
  animation-delay: .24s;
}

.grid .especialidad:nth-child(5) {
  animation-delay: .32s;
}

.grid .especialidad:nth-child(6) {
  animation-delay: .40s;
}

.grid .especialidad:nth-child(7) {
  animation-delay: .48s;
}

@keyframes fondoInstitucional {
  0% { background-position: 0 0; }
  100% { background-position: 420px 420px; }
}

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

@keyframes entrarIzquierda {
  from { opacity: 0; transform: translateX(-42px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes aparecerTarjeta {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(6deg); }
}

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

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

@keyframes latidoLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes pulsoWhatsapp {
  0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 0 rgba(19, 201, 92, .36); }
  50% { box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 14px rgba(19, 201, 92, 0); }
}

@media (max-width: 1100px) {
  .grid,
  .stats,
  .estadisticas-docentes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 70px 7%;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .form-card {
    padding: 28px;
    animation: entrarDerecha .9s ease .12s both;
  }

  .titulo-docentes h2,
  .especialidades h2,
  .indicadores h2,
  .moviemo h2,
  .contacto h2 {
    font-size: 34px;
  }

  .grid,
  .stats,
  .estadisticas-docentes {
    grid-template-columns: 1fr;
  }

  .whatsapp {
    right: 18px;
    bottom: 18px;
    padding: 14px 20px;
  }
}

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

/*======================================
GALERIA DE FOTOS
=======================================*/

.galeria-section {
  padding: 100px 8%;
  text-align: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 242, 0, .22), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(0, 174, 240, .18), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.galeria-section h2 {
  margin: 28px 0 14px;
  font-size: 48px;
  color: var(--rojo);
}

.galeria-section > p {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 20px;
  line-height: 1.7;
  color: #4d5a72;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--azul-noche);
  box-shadow: var(--sombra);
  cursor: pointer;
  isolation: isolate;
  animation: aparecerTarjeta .75s ease both;
}

.galeria-item:nth-child(2) {
  animation-delay: .08s;
}

.galeria-item:nth-child(3) {
  animation-delay: .16s;
}

.galeria-item:nth-child(4) {
  animation-delay: .24s;
}

.galeria-item:nth-child(5) {
  animation-delay: .32s;
}

.galeria-destacada {
  grid-column: span 2;
  grid-row: span 2;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s ease, filter .55s ease;
}

.galeria-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(9, 13, 29, .84));
  z-index: 1;
}

.galeria-item::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(255, 242, 0, .55);
  border-radius: 16px;
  opacity: 0;
  transform: scale(.95);
  transition: opacity .35s ease, transform .35s ease;
  z-index: 2;
}

.galeria-item:hover {
  transform: translateY(-9px);
  box-shadow: var(--sombra-fuerte);
}

.galeria-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.16) contrast(1.04);
}

.galeria-item:hover::after {
  opacity: 1;
  transform: scale(1);
}

.galeria-item figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  color: white;
  font-size: 19px;
  font-weight: 800;
  text-align: left;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

.visor-galeria {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(9, 13, 29, .88);
  backdrop-filter: blur(10px);
}

.visor-galeria.activo {
  display: flex;
  animation: fadeIn .25s ease both;
}

.visor-galeria img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 22px;
  border: 5px solid var(--amarillo);
  box-shadow: var(--sombra-fuerte);
  animation: zoom .28s ease both;
}

.cerrar-visor {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--rojo);
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--sombra);
  transition: transform .25s ease, background .25s ease;
}

.cerrar-visor:hover {
  background: var(--rojo-profundo);
  transform: scale(1.08) rotate(8deg);
}

@media (max-width: 1000px) {
  .galeria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .galeria-section {
    padding: 80px 6%;
  }

  .galeria-section h2 {
    font-size: 34px;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .galeria-destacada {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/*======================================
GALERIA TIPO ROLLO DE PELICULA
=======================================*/

.galeria-section {
  overflow: hidden;
}

.galeria-grid {
  position: relative;
  display: flex;
  grid-template-columns: none;
  grid-auto-rows: auto;
  gap: 18px;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 58px 22px;
  background:
    linear-gradient(#101526, #101526) padding-box,
    linear-gradient(90deg, var(--rojo), var(--amarillo), var(--azul), var(--rojo)) border-box;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  box-shadow: var(--sombra-fuerte);
  animation: rolloPelicula 48s linear infinite;
  will-change: transform;
}

.galeria-grid::before,
.galeria-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  background:
    repeating-linear-gradient(
      90deg,
      #fff 0 22px,
      transparent 22px 42px
    );
  opacity: .95;
  z-index: 4;
  pointer-events: none;
}

.galeria-grid::before {
  top: 14px;
}

.galeria-grid::after {
  bottom: 14px;
}

.galeria-grid:hover {
  animation-play-state: paused;
}

.galeria-item,
.galeria-destacada {
  flex: 0 0 360px;
  width: 360px;
  height: 245px;
  grid-column: auto;
  grid-row: auto;
  border: 5px solid #f8fbff;
  border-radius: 10px;
  background: #050914;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .36);
}

.galeria-item::after {
  inset: 10px;
  border-radius: 6px;
}

.galeria-item figcaption {
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 16px;
}

.galeria-item:hover {
  transform: translateY(-7px) scale(1.03);
  z-index: 5;
}

.galeria-section::before,
.galeria-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.galeria-section::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, .82) 38%, transparent 100%);
}

.galeria-section::after {
  right: 0;
  background: linear-gradient(270deg, #f4fbff 0%, rgba(244, 251, 255, .82) 38%, transparent 100%);
}

@keyframes rolloPelicula {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 700px) {
  .galeria-grid {
    padding: 48px 16px;
    animation-duration: 36s;
  }

  .galeria-item,
  .galeria-destacada {
    flex-basis: 280px;
    width: 280px;
    height: 205px;
  }

  .galeria-section::before,
  .galeria-section::after {
    width: 58px;
  }
}
