/* ============================================================
   UEP. APÓSTOL SAN JUDAS TADEO — styles.css
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --rojo:        #880000;
  --rojo-osc:    #550000;
  --dorado:      #ffcc00;
  --dorado-suave:#d4a017;
  --negro:       #0f0f0f;
  --gris-osc:    #222222;
  --gris:        #555555;
  --gris-claro:  #f5f4f0;
  --blanco:      #ffffff;
  --sombra:      0 8px 30px rgba(0,0,0,.11);
  --sombra-rojo: 0 8px 24px rgba(136,0,0,.32);
  --radio:       16px;
  --radio-lg:    24px;
  --trans:       all .35s cubic-bezier(.25,.46,.45,.94);
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Nunito', sans-serif;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-body); color: var(--negro); background: var(--blanco); overflow-x: hidden; line-height: 1.7; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; transition: var(--trans); }
section { scroll-margin-top: 80px; }

/* ---------- HELPERS ---------- */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 10px;
}
.light-eye { color: rgba(255,255,255,.55); }

.sec-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--negro);
  margin-bottom: 12px;
}
.light-title { color: var(--blanco); }

.sec-body {
  color: var(--gris);
  font-size: 1rem;
  margin-bottom: 16px;
  text-align: justify;
}

.text-accent { color: var(--rojo); }
.text-gold   { color: var(--dorado); }

.title-line {
  width: 54px; height: 4px;
  background: var(--rojo);
  border-radius: 10px;
  margin: 12px auto 0;
}
.gold-line { background: var(--dorado); }

.sec-header { margin-bottom: 48px; }

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: #0d0d0d;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-content { text-align: center; }

.preloader-logo-wrap {
  position: relative;
  width: 128px; height: 128px;
  margin: 0 auto 24px;
}
.preloader-logo-wrap img {
  width: 70px; height: 70px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  object-fit: contain;
  animation: logoIn .9s ease .2s both;
}
@keyframes logoIn {
  from { opacity:0; transform:translate(-50%,-50%) scale(.5); }
  to   { opacity:1; transform:translate(-50%,-50%) scale(1);  }
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 2.5px solid transparent;
  animation: spin linear infinite;
}
.ring-1 {
  inset: 0;
  border-top-color:   var(--rojo);
  border-right-color: rgba(136,0,0,.25);
  animation-duration: 1.3s;
}
.ring-2 {
  inset: 12px;
  border-bottom-color: var(--dorado);
  border-left-color:   rgba(255,204,0,.25);
  animation-duration: .85s;
  animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.preloader-name {
  color: rgba(255,255,255,.82);
  font-family: var(--font-head);
  font-size: .95rem;
  letter-spacing: .08em;
  margin-bottom: 22px;
}
.preloader-bar-wrap {
  width: 180px; height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--rojo), var(--dorado));
  border-radius: 10px;
  animation: fillBar 2.3s ease forwards;
}
@keyframes fillBar { to { width: 100%; } }


/* Botón flotante - Plataforma Virtual (arriba del WhatsApp) */
.btn-plataforma {
  position: fixed;
  bottom: 28px;        /* Ajusta según necesidad, arriba del WhatsApp */
  right: 28px;
  z-index: 1000;
  background: #ffffff !important;  /* Fondo blanco */
  border-radius: 50%;    /* Circular */
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: var(--trans);
  width: 145px;
  height: 60px;
  text-decoration: none;
}

.btn-plataforma:hover {
  transform: translateY(-4px);
  -webkit-box-shadow:0px 0px 100px 27px rgba(255,255,255,0.54);
  -moz-box-shadow: 0px 0px 100px 27px rgba(255,255,255,0.54);
  box-shadow: 0px 0px 100px 27px rgba(255,255,255,0.54);
}

.btn-plataforma .plataforma-icon {
  width: 145px;
  height: 42px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Ajuste para móviles */
@media (max-width: 767px) {
  .btn-plataforma {
    bottom: 85px;
    right: 20px;
    width: 135px;
    height: 56px;
    padding: 10px;
  }
  .btn-plataforma .plataforma-icon {
    width: 120px;
    height: 36px;
  }
}


/* ---------- WHATSAPP ---------- */
/* Botón flotante - WhatsApp (abajo) */
.btn-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37,211,102,.44);
  font-weight: 700;
  font-size: .88rem;
  transition: var(--trans);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37,211,102,.5);
}

/* Botón flotante - Plataforma Virtual (arriba) */
.btn-plataforma {
  position: fixed;
  bottom: 90px;  /* Más arriba que el de WhatsApp */
  right: 28px;
  z-index: 1000;
  background: #00203A;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 32, 58, 0.44);
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--trans);
  text-decoration: none;
}
.btn-plataforma:hover {
  background: #001a2f;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 32, 58, 0.5);
}

/* Ajuste responsive para móviles */
@media (max-width: 767px) {
  .btn-plataforma .plataforma-text,
  .btn-whatsapp .wa-text {
    display: inline-block; /* o flex, según necesites */
    width: auto;
    color: white;
    font-size: 0.75rem;
    margin-right: 4px;
  }
  .btn-plataforma, .btn-whatsapp {
    width: auto; /* para que se adapte al contenido */
    padding: 8px 12px;
  }
  .btn-plataforma {
    bottom: 80px;
  }
  .btn-whatsapp {
    bottom: 20px;
  }
}
/* ---------- NAVBAR ---------- */
.navbar-sjt {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(0,0,0,.07);
  padding: 10px 0;
  transition: var(--trans);
}
.navbar-sjt.scrolled {
  padding: 6px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.11);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-text small {
  font-size: .65rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.brand-text span {
  font-size: .78rem;
  font-weight: 800;
  color: var(--rojo-osc);
  letter-spacing: .02em;
}
.navbar-sjt .nav-link {
  font-weight: 700;
  font-size: .87rem;
  color: var(--gris-osc);
  padding: 8px 13px !important;
  border-radius: 8px;
  transition: var(--trans);
  position: relative;
}
.navbar-sjt .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--rojo);
  border-radius: 4px;
  transition: var(--trans);
}
.navbar-sjt .nav-link:hover::after,
.navbar-sjt .nav-link.active::after { left: 12%; right: 12%; }
.navbar-sjt .nav-link:hover,
.navbar-sjt .nav-link.active { color: var(--rojo); background: rgba(136,0,0,.05); }

.dropdown-menu {
  border: none;
  border-radius: var(--radio);
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
  padding: 8px;
}
.dropdown-item {
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: .87rem;
  color: var(--gris-osc);
  transition: var(--trans);
}
.dropdown-item:hover { background: var(--rojo); color: #fff; }

.btn-admision {
  background: var(--rojo);
  color: #fff !important;
  border-radius: 50px;
  padding: 9px 22px;
  font-weight: 700;
  font-size: .87rem;
  box-shadow: var(--sombra-rojo);
  transition: var(--trans);
}
.btn-admision:hover {
  background: var(--rojo-osc);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(136,0,0,.44);
}
.navbar-toggler { border: none !important; box-shadow: none !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23880000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ---------- HERO ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(85,0,0,.78) 0%, rgba(0,0,0,.52) 60%, rgba(0,0,0,.58) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 90px;
}
.hero-badge {
  display: inline-block;
  background: var(--dorado);
  color: #111;
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-title em { font-style: italic; color: var(--dorado); }

.hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.18rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  font-weight: 300;
  letter-spacing: .04em;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  border-radius: 50px;
  padding: 14px 34px;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: var(--sombra-rojo);
  transition: var(--trans);
}
.btn-hero-primary:hover { background: var(--rojo-osc); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(136,0,0,.5); }

.btn-hero-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 700;
  font-size: .95rem;
  transition: var(--trans);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; transform: translateY(-3px); }

.hero-scroll-down {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-mouse {
  width: 30px; height: 50px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 20px;
  position: relative;
  display: flex;
  justify-content: center;
}
.scroll-dot {
  width: 5px; height: 9px;
  background: #fff;
  border-radius: 4px;
  margin-top: 8px;
  animation: scrollPulse 1.8s ease infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(0);   opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

.satura {
    filter: saturate(1.5);
}

/* Hero entry animations */
.animate-1 { animation: fadeUp .8s ease .3s both; }
.animate-2 { animation: fadeUp .8s ease .5s both; }
.animate-3 { animation: fadeUp .8s ease .7s both; }
.animate-4 { animation: fadeUp .8s ease .9s both; }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0);    }
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .72s ease, transform .72s ease;
}
.reveal-section.visible { opacity: 1; transform: translateY(0); }

/* ---------- NOSOTROS ---------- */
.section-nosotros { padding: 100px 0; background: var(--blanco); }

.img-parallax-wrap {
  position: relative;
  border-radius: var(--radio-lg);
  overflow: visible;
}
.img-nosotros {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra);
  position: relative;
  z-index: 2;
}
.img-deco-corner {
  position: absolute;
  width: 88px; height: 88px;
  border: 3px solid var(--dorado-suave);
  border-radius: var(--radio);
  bottom: -18px; right: -18px;
  z-index: 1;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-weight: 600;
  font-size: .95rem;
  color: var(--gris-osc);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.check-list li:last-child { border-bottom: none; }
.check-list i { font-size: 1.15rem; color: var(--rojo); flex-shrink: 0; }

.btn-red {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: var(--sombra-rojo);
  transition: var(--trans);
}
.btn-red:hover { background: var(--rojo-osc); color: #fff; transform: translateY(-2px); }

/* ---------- ESTADÍSTICAS ---------- */
.section-stats {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}
.stats-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.stats-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.stats-overlay {
  position: absolute;
  inset: 0;
  background: rgba(85,0,0,.88);
  z-index: 1;
}
.stat-card { color: var(--blanco); padding: 14px 8px; }
.stat-num-wrap { display: flex; align-items: flex-start; justify-content: center; gap: 2px; }
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 3.5rem);
  font-weight: 700;
  color: var(--dorado);
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--dorado);
  font-weight: 700;
  align-self: flex-start;
  margin-top: 4px;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 0;
}

/* ---------- GALERÍA ---------- */
.section-galeria { padding: 100px 0; background: var(--gris-claro); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.g-item {
  position: relative;
  border-radius: var(--radio);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transition: var(--trans);
}
.g-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transition: transform .5s ease;
}
.g-item:hover img { transform: scale(1.06); }
.g-overlay {
  position: absolute;
  inset: 0;
  background: rgba(136,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--trans);
}
.g-overlay i { color: #fff; font-size: 1.9rem; }
.g-item:hover .g-overlay { opacity: 1; }

.bg-glass {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}

#lightboxModal .modal-dialog {
  max-width: 90vw;
  width: auto;
  margin: 1.75rem auto;
}

#lightboxModal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

#lightboxModal .modal-body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#lightboxModal img {
  max-height: 90vh;   
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radio);
}

#lightboxModal .btn-close {
  background-color: rgba(0, 0, 0, 0.75) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  margin: 16px !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
  border: 1.5px solid rgba(255,255,255,0.5);
  opacity: 1 !important;
  /* Forzar la X blanca */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
  background-size: 1.2rem !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

#lightboxModal .btn-close:hover {
  background-color: var(--rojo) !important;
  transform: scale(1.08);
  border-color: white;
  box-shadow: 0 6px 18px rgba(136,0,0,0.6);
}

.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--rojo);
  color: var(--rojo);
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--trans);
}
.btn-ver-mas:hover { background: var(--rojo); color: #fff; }
.btn-ver-mas:disabled { opacity: .5; cursor: default; }

/* ---------- NIVELES ---------- */
.section-niveles { padding: 100px 0; background: var(--blanco); }
.nivel-card {
  border-radius: var(--radio-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sombra);
  transition: var(--trans);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.nivel-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(0,0,0,.14); }
.nivel-card.featured { box-shadow: 0 12px 38px rgba(136,0,0,.2); }

.nivel-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9; 
  flex-shrink: 0;
}

.nivel-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nivel-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
  backdrop-filter: blur(4px);
}
.nivel-badge.feat { background: var(--rojo); }

.nivel-body { padding: 26px 22px; display: flex; flex-direction: column; flex: 1; }
.nivel-icon {
  width: 48px; height: 48px;
  background: rgba(136,0,0,.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--rojo);
  margin-bottom: 14px;
}
.nivel-body h5 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 10px;
}
.nivel-body p { color: var(--gris); font-size: .9rem; margin-bottom: 20px; flex: 1; }
.btn-nivel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rojo);
  color: #fff;
  border-radius: 50px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: .84rem;
  transition: var(--trans);
  align-self: flex-start;
}
.btn-nivel:hover { background: var(--rojo-osc); color: #fff; transform: translateX(3px); }

/* ---------- VIDEO ---------- */
.section-video { padding: 100px 0; background: #111; }
.video-desc { color: rgba(255,255,255,.6); font-size: .97rem; margin-top: 14px; }
.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radio-lg);
  overflow: hidden;
  border: 3px solid rgba(136,0,0,.5);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ---------- CONTACTO ---------- */
.section-contacto { padding: 100px 0; background: var(--gris-claro); }
.contacto-card {
  border-radius: var(--radio-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.11);
}
.contacto-map { height: 480px; }
.contacto-map iframe { width: 100%; height: 100%; display: block; }
.contacto-info {
  background: var(--rojo);
  padding: 52px 44px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.contacto-title {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.contacto-lema {
  font-style: italic;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}
.contacto-hr { border-color: rgba(255,255,255,.22); margin: 20px 0; }
.contacto-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contacto-list li { display: flex; align-items: flex-start; gap: 14px; font-size: .9rem; line-height: 1.55; }
.c-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.14);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contacto-list a { color: var(--dorado); font-weight: 700; }
.contacto-list a:hover { text-decoration: underline; }

.social-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.social-icons { display: flex; gap: 10px; }
.s-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  transition: var(--trans);
}
.s-btn:hover { color: #fff; transform: translateY(-4px); }
.s-btn.fb:hover { background: #1877f2; }
.s-btn.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.s-btn.tt:hover { background: #111; }

/* ---------- FOOTER ---------- */
.footer { background: var(--negro); color: rgba(255,255,255,.65); }
.footer-top { padding: 68px 0 40px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.75; }
.footer-heading {
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .87rem; color: rgba(255,255,255,.5); transition: var(--trans); }
.footer-links a:hover { color: var(--dorado); padding-left: 4px; }
.footer-bottom { padding: 22px 0; text-align: center; }
.footer-bottom p { font-size: .83rem; color: rgba(255,255,255,.38); margin: 0; }
.footer-sub { font-size: .75rem !important; margin-top: 4px !important; color: rgba(255,255,255,.24) !important; }

/* ============================================================
   HAMBURGER BUTTON
============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 9px 7px;
  cursor: pointer;
  border-radius: 10px;
  transition: background .2s;
  flex-shrink: 0;
}
.hamburger:hover  { background: rgba(136,0,0,.07); }
.hamburger:focus  { outline: none; }
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--rojo);
  border-radius: 4px;
  transition: transform .38s cubic-bezier(.16,1,.3,1), opacity .25s ease;
  transform-origin: center;
}
.hamburger.open span:first-child  { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:last-child   { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   MENU OVERLAY
============================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1048;
  opacity: 0;
  visibility: hidden;
  transition: opacity .38s ease, visibility .38s ease;
}
.menu-overlay.open { opacity: 1; visibility: visible; }

/* ============================================================
   MOBILE MENU PANEL
============================================================ */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(340px, 92vw);
  height: 100%;
  background: var(--negro);
  z-index: 1050;
  transform: translateX(110%);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar { display: none; }
.mobile-menu.open { transform: translateX(0); }

/* Header del panel */
.mm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.mm-header img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
}
.mm-header-text { flex: 1; min-width: 0; }
.mm-header-text small {
  display: block;
  font-size: .6rem;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-header-text strong {
  font-size: .78rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-close {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.07);
  border: none;
  border-radius: 9px;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
  flex-shrink: 0;
}
.mm-close:hover { background: var(--rojo); color: #fff; }

/* Navegación del panel */
.mm-nav { padding: 16px 0 8px; flex: 1; }

.mm-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  padding: 14px 22px 5px;
  display: block;
}

.mm-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 22px;
  color: rgba(255,255,255,.72);
  font-size: .93rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: color .22s, background .22s, border-color .22s;
  position: relative;
}
.mm-link:hover {
  color: #fff;
  background: rgba(136,0,0,.15);
  border-left-color: var(--rojo);
}
.mm-link.active {
  color: #fff;
  background: rgba(136,0,0,.2);
  border-left-color: var(--rojo);
}
.mm-link i {
  font-size: 1rem;
  width: 18px;
  color: rgba(255,255,255,.35);
  flex-shrink: 0;
  transition: color .22s;
}
.mm-link:hover i, .mm-link.active i { color: var(--rojo); }

.mm-link.mm-sub {
  padding-left: 34px;
  font-size: .87rem;
  color: rgba(255,255,255,.52);
}
.mm-link.mm-sub:hover { color: rgba(255,255,255,.9); background: rgba(136,0,0,.1); }

/* Footer del panel */
.mm-footer {
  padding: 18px 22px 30px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.mm-admision {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--rojo);
  color: #fff;
  border-radius: 50px;
  padding: 14px;
  font-weight: 800;
  font-size: .9rem;
  width: 100%;
  transition: var(--trans);
  box-shadow: 0 6px 20px rgba(136,0,0,.38);
}
.mm-admision:hover { background: var(--rojo-osc); color: #fff; transform: translateY(-2px); }

/* Animación de entrada de items */
@keyframes mmIn {
  from { opacity:0; transform:translateX(18px); }
  to   { opacity:1; transform:translateX(0);    }
}

/* ============================================================
   SUBPAGE HERO
============================================================ */
.page-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-parallax-bg {
  position: absolute;
  inset: -80px;
  z-index: 0;
}
.hero-parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(85,0,0,.78), rgba(0,0,0,.56));
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 40px 20px 60px;
}
.page-hero-pill {
  display: inline-block;
  background: rgba(255,204,0,.15);
  border: 1px solid rgba(255,204,0,.35);
  color: var(--dorado);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,.32);
}
.page-hero-sub {
  font-size: clamp(.88rem, 2vw, 1.08rem);
  color: rgba(255,255,255,.75);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
}
.breadcrumb-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  z-index: 3;
}
.breadcrumb-bar .breadcrumb { margin: 0; font-size: .76rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.28); }
.breadcrumb-item a  { color: rgba(255,255,255,.55); }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: var(--dorado); }

/* ============================================================
   INNER SECTIONS
============================================================ */
.inner-section      { padding: 80px 0; }
.inner-section.alt  { background: var(--gris-claro); }
.inner-section.dark { background: var(--gris-osc); }

.inner-body {
  font-size: 1rem;
  color: var(--gris);
  line-height: 1.85;
  text-align: justify;
}

/* Feature cards (informática, mecánica) */
.feat-card {
  background: #fff;
  border-radius: var(--radio);
  padding: 32px 22px;
  text-align: center;
  box-shadow: var(--sombra);
  height: 100%;
  transition: var(--trans);
  border-bottom: 3px solid transparent;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,.12); border-bottom-color: var(--rojo); }
.feat-card-icon {
  width: 62px; height: 62px;
  background: rgba(136,0,0,.08);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--rojo);
  margin: 0 auto 18px;
  transition: var(--trans);
}
.feat-card:hover .feat-card-icon { background: var(--rojo); color: #fff; }
.feat-card h5 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--negro);
  margin-bottom: 10px;
}
.feat-card p { color: var(--gris); font-size: .9rem; margin: 0; }

/* Objetivo / CTA box */
.objetivo-box {
  background: linear-gradient(135deg, var(--rojo), var(--rojo-osc));
  border-radius: var(--radio-lg);
  padding: 52px 44px;
  color: #fff;
  text-align: center;
}
.objetivo-box .obj-icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 22px;
}
.objetivo-box h4 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.objetivo-box p { color: rgba(255,255,255,.8); font-size: 1rem; max-width: 680px; margin: 0 auto; }

/* Valor cards */
.valor-card {
  background: #fff;
  border-radius: var(--radio);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--sombra);
  height: 100%;
  transition: var(--trans);
}
.valor-card:hover { transform: translateY(-5px); }
.valor-icon {
  width: 58px; height: 58px;
  background: var(--rojo);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 auto 16px;
}
.valor-card h5 { font-family: var(--font-head); font-weight: 700; color: var(--negro); margin-bottom: 8px; }
.valor-card p  { color: var(--gris); font-size: .88rem; margin: 0; }

/* Inner images */
.inner-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra);
  overflow: hidden;
}
.inner-img-sm {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  transition: var(--trans);
  overflow: hidden;
  display: block;
}
.inner-img-sm:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.15); }

/* Mision / Vision box */
.text-card {
  background: #fff;
  border-radius: var(--radio-lg);
  padding: 48px 44px;
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
  position: relative;
  overflow: hidden;
}
.text-card::before {
  content: '"';
  position: absolute;
  top: -10px; left: 20px;
  font-family: var(--font-head);
  font-size: 8rem;
  color: rgba(136,0,0,.06);
  font-style: italic;
  line-height: 1;
  pointer-events: none;
}
.text-card blockquote {
  font-size: 1.05rem;
  color: var(--gris);
  line-height: 1.9;
  font-style: italic;
  border-left: 4px solid var(--rojo);
  padding-left: 20px;
  margin: 0;
}

/* Check list inner */
.check-list-inner {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list-inner li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: .96rem;
  color: var(--gris-osc);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.check-list-inner li:last-child { border-bottom: none; }
.check-list-inner i { color: var(--rojo); flex-shrink: 0; margin-top: 3px; font-size: 1.1rem; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 991px) {
  .navbar-collapse { display: none !important; } /* Mobile usa custom menu */
  .hamburger       { display: flex !important; }
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .section-nosotros, .section-niveles,
  .section-galeria,  .section-video,
  .section-contacto, .inner-section  { padding: 64px 0; }
  .section-stats                     { padding: 64px 0; }
  .page-hero                         { min-height: 50vh; }
  .img-nosotros    { height: 280px; }
  .img-deco-corner { display: none; }
  .wa-text         { display: none; }
  .contacto-info   { padding: 36px 24px; }
  .contacto-map    { height: 300px; }
  .hero-btns       { flex-direction: column; align-items: center; }
  .btn-hero-primary,
  .btn-hero-outline { width: 100%; max-width: 280px; text-align: center; }
  .texto-card, .text-card { padding: 32px 24px; }
  .objetivo-box    { padding: 40px 28px; }
}

@media (max-width: 480px) {
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-number    { font-size: 2.1rem; }
  .hero-title     { font-size: 2rem; }
  .brand-text span{ font-size: .68rem; }
  .preloader-name { font-size: .8rem; }
  .inner-img      { height: 280px; }
}
