@charset "UTF-8";

/* =========================================================
   COLEGIO PUEBLA A.C. — hoja de estilos
   ========================================================= */

:root {
  --navy-900: #002D76;
  --navy-800: #1F4E9C;
  --navy-700: #1453B9;
  --orange-600: #F31905;
  --orange-700: #F31905;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f4;
  --gray-500: #6b7280;
  --gray-700: #3f4451;
  --white: #ffffff;
  --accent-gold: #c9a227;

  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-heading: "Poppins", "Inter", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --container-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.5;
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; }

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

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

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: #F31905;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.0);
}
.btn-primary:hover { background: #8c0e02; }

.btn-small {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-800); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-outline-dark:hover { background: var(--gray-100); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
}

.brand-logo { width: 50px; }
.brand-name { font-family: var(--font-heading); font-size: 1.05rem; }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover { color: var(--orange-600); }

/* Menú desplegable de "Oferta educativa" */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 190px;
  padding: 8px;
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 45, 118, 0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}

/* Puente invisible para que el menú no se cierre al bajar el mouse */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.nav-dropdown-menu a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy-900);
}

.nav-dropdown-menu a:hover {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: translateY(1px) rotate(-135deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Empuja el texto a la izquierda; se reduce solo en pantallas medianas */
  padding-right: clamp(0px, calc(100vw - 800px), 40rem);
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
@media (max-width: 768px) {
  .hero {
    padding-right: 0;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-media img.active { opacity: 1; }

/* Flechas del carrusel */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}
.hero-arrow:hover { background: rgba(0, 0, 0, 0.6); }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }

/* Puntos indicadores */
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.hero-dots button.active { background: var(--white); }

@media (max-width: 768px) {
  .hero-arrow { width: 36px; height: 36px; font-size: 1rem; }
  .hero-arrow-prev { left: 8px; }
  .hero-arrow-next { right: 8px; }
  .hero-content { padding-left: 52px; padding-right: 52px; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    #002d76a6 ,
    #002d7640 ,
    rgba(23, 35, 92, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  max-width: 560px;
  padding-top: 64px;
  padding-bottom: 64px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
  color: #ffffff;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  margin-bottom: 16px;
  
}
.hero-content h1.h12 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.hero-content p {
  color: rgba(255, 255, 255, 1);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 420px;
}

/* Texto del hero: visible solo en la primera imagen */
.hero-content,
.hero-cta-bottom {
  transition: opacity 0.6s ease, visibility 0.6s;
}

.hero-cta-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}

/* Botón pegado a la orilla izquierda, no al centro de la página */
.hero-cta-bottom .container {
  max-width: none;
  padding: 0 32px;
}

.hero-overlay { transition: opacity 0.8s ease; }

.hero.is-alt .hero-content,
.hero.is-alt .hero-overlay {
  opacity: 0;
  visibility: hidden;
}

.hero.is-alt .hero-cta-bottom {
  opacity: 1;
  visibility: visible;
}

/* ---------- CTA secundario + separador punteado ---------- */
.hero-actions-inner {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px 28px;
  flex-wrap: wrap;
}

.dotted-divider {
  height: 1px;
  background-image: radial-gradient(circle, var(--gray-500) 1px, transparent 1.5px);
  background-size: 10px 1px;
  background-repeat: repeat-x;
  opacity: 0.4;
  margin: 0 auto 8px;
  max-width: var(--container-width);
}

/* ---------- Barra de estadísticas ---------- */
.stats-bar {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-700));
  color: white;
  padding: 28px 0;
}

.stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  text-align: left;
}

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


}

.medal-icon {
  font-size: 1.3rem;
  width: 3.5rem;
 
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  font-family: var(--font-heading);
}

.stat span:last-child {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Niveles educativos ---------- */
.levels {
  padding: 56px 0 48px;
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: 1.5rem;
}

.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.whatsapp-fab img {
  width: 85%;
  object-fit: contain;
}

/* Anillo que se expande y desvanece */
.whatsapp-fab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.whatsapp-fab img { width: 3.5rem;}

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

.level-card-img {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 15px 15px 28px;
}

.level-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.level-card:hover img { transform: scale(1.06); }

.level-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* Alinea el título y el enlace con la imagen */
.level-card h3,
.level-card .link-arrow {
  padding: 0 15px;
}

.level-card p {
  color: var(--gray-700);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.link-arrow {
  color: var(--orange-600);
  font-size: 0.9rem;
  font-weight: 600;
}

.link-arrow:hover { text-decoration: underline; }

/* ---------- Programa de Inglés ---------- */
.english {
  padding: 56px 0;
  background: var(--gray-50);
}

.english h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 12px;
}

.english-intro {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 0.95rem;
}

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

.english-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-top: 4px solid var(--navy-700);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--navy-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.english-card:hover {
  border-color: var(--navy-700);
  box-shadow: 0 8px 20px rgba(0, 45, 118, 0.1);
}

.english-level {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-600);
}

.english-card strong { font-size: 1.02rem; }

@media (max-width: 960px) {
  .english-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .english-grid { grid-template-columns: 1fr; }
  .english h2 { font-size: 1.3rem; }
}

/* ---------- Nuestra propuesta ---------- */
.proposal {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 56px 0;
}

.proposal-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.proposal h2 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.proposal-pills {
  list-style: none;
  margin: 0 auto 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
}

.proposal-pills li {
  padding: 8px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.proposal-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ---------- ¿Por qué las familias nos eligen? ---------- */
.reasons {
  padding: 56px 0;
}

.reasons h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 12px;
}

.reasons-intro {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.reasons-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.reason-card {
  flex: 0 1 calc((100% - 40px) / 3);
  min-width: 240px;
  padding: 24px 22px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reason-card:hover {
  border-color: var(--navy-700);
  box-shadow: 0 8px 20px rgba(0, 45, 118, 0.1);
}

.reason-card .icon-circle { margin-bottom: 14px; }
.reason-card .icon-circle .bx { font-size: 1.4rem; }

.reason-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.reason-card p {
  color: var(--gray-700);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .reason-card { flex-basis: 100%; }
  .proposal h2,
  .reasons h2 { font-size: 1.3rem; }
  .proposal-pills li { font-size: 0.85rem; padding: 6px 14px; }
}

/* ---------- Servicios integrales ---------- */
.services {
  background: var(--gray-50);
  padding: 48px 0 56px;
}

.eyebrow {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.services-icons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.service-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--navy-900);
  font-weight: 500;
  flex: 1;
  min-width: 120px;
}

.icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Los íconos ahora son botones */
button.service-icon {
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--font-body);
}

.service-icon .icon-circle {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.service-icon:hover .icon-circle { transform: scale(1.08); }

/* Pestaña activa */
.service-icon.active .icon-circle {
  background: var(--orange-600);
  transform: scale(1.12);
  box-shadow: 0 6px 14px rgba(243, 25, 5, 0.25);
}
.service-icon.active span:last-child {
  color: var(--orange-600);
  font-weight: 700;
}

/* Fundido suave al cambiar */
.facilities-box {
  transition: opacity 0.15s ease;
}
.facilities-box.is-changing { opacity: 0; }

.facilities-box {
  border: 1.5px solid var(--navy-700);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--white);
}

.facilities-box h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.facilities-box > p {
  color: var(--gray-700);
  margin-bottom: 22px;
}

.facilities-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.facility-thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.facility-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facilities-caption {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ---------- CTA final ---------- */
.cta-band {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  text-align: center;
  padding: 56px 24px;
}

.cta-band h2 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 22px;
}

/* ---------- Documentos oficiales ---------- */
.documents {
  padding: 48px 0 56px;
}

.documents h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.documents-subtitle {
  font-size: 1rem;
  color: var(--navy-700);
  margin: 28px 0 10px;
}
.documents h2 + .documents-subtitle { margin-top: 0; }
.documents-list li.documents-empty { color: var(--gray-500); font-size: 0.9rem; }

.documents-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--gray-100);
}

.documents-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}

.documents-list a {
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 500;
}

.documents-list a:hover { color: var(--orange-600); }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(to right, #002D76, #1F4E9C, #1453B9);
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0 32px;
}

.footer-brand .brand { color: var(--white); margin-bottom: 12px; }

.footer-brand p {
  font-size: 0.85rem;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.15rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  background: var(--white);
  color: var(--navy-900);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-col a:hover { color: var(--white); }

.footer-contact li { color: rgba(255, 255, 255, 0.85); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   PÁGINA "CONÓCENOS" — clases nuevas
   ========================================================= */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 10px 0;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--navy-900); }
.breadcrumb .separator { margin: 0 6px; }
.breadcrumb .current { color: var(--gray-700); }

/* ---------- Banner ¿Quiénes somos? ---------- */
.intro-banner {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  text-align: center;
  padding: 40px 24px;
}

.intro-banner h2 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.intro-banner p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

/* ---------- Página de Contacto ---------- */
.contact-banner { padding: 28px 24px; }
.contact-banner h2 { margin-bottom: 0; }

.contact-section {
  background: var(--gray-50);
  padding: 32px 0 44px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.contact-card p { margin-bottom: 20px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card strong { color: var(--navy-900); font-weight: 600; }
.contact-card p a:hover { color: var(--orange-600); }

.contact-map {
  flex: 1;
  min-height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.contact-whatsapp {
  padding: 36px 0 28px;
  text-align: center;
}

.contact-whatsapp h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  padding: 12px 28px;
  font-size: 1rem;
}
.btn-whatsapp:hover { background: #1da851; }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Página de Admisiones ---------- */
.admission-downloads {
  background: var(--gray-50);
  padding: 32px 0 36px;
}

.admission-downloads h2,
.scholarships h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.download-list a {
  color: var(--gray-500);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.download-list a:hover { color: var(--orange-600); }
.dl-icon { font-style: normal; }

/* Nombre del documento: abre la vista previa del PDF en otra pestaña */
.documents-list a.doc-preview,
.download-list a.doc-preview {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  transition: color 0.15s ease;
}
.documents-list a.doc-preview:hover,
.download-list a.doc-preview:hover {
  color: var(--navy-700);
  text-decoration: underline;
}

.payment-methods {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, 0.92);
  padding: 44px 0 56px;
}

.payment-methods h2 {
  color: var(--white);
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 32px;
}

.payment-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}
.payment-row:last-child { margin-bottom: 0; }

.payment-row h3 {
  color: var(--white);
  font-size: 1.7rem;
  padding-left: 36px;
}

.payment-text { font-size: 0.92rem; }
.payment-text ul { margin: 4px 0 4px; padding-left: 22px; }
.payment-text strong { color: var(--white); }

.scholarships {
  padding: 36px 0 72px;
}

.scholarship-card {
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 16px 20px 22px;
  font-size: 0.9rem;
  text-align: justify;
}

.scholarship-label {
  display: block;
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.scholarship-card ul { margin: 4px 0 0; padding-left: 22px; }
.scholarship-card + .scholarship-card { margin-top: 20px; }

.agreement-list { margin: 4px 0 0; padding-left: 22px; }
.agreement-list li { margin-bottom: 4px; }

/* Enlace discreto (circular informativa) */
.discreet-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--gray-500);
  opacity: 0.8;
}
.discreet-link:hover { text-decoration: underline; }

.agreement-extra {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.scholarship-card strong { color: var(--navy-900); font-weight: 600; }

@media (max-width: 720px) {
  .payment-row { grid-template-columns: 1fr; gap: 12px; }
  .payment-row h3 { padding-left: 0; font-size: 1.4rem; }
  .scholarship-card { text-align: left; }
}

/* ---------- Aviso de privacidad ---------- */
.legal {
  padding: 40px 0 64px;
}

.legal-content {
  max-width: 820px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-updated {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 32px 0 10px;
}

.legal-content p { margin-bottom: 12px; }
.legal-content ul { margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--navy-900); font-weight: 600; }
.legal-content a { color: var(--navy-700); text-decoration: underline; }

/* ---------- Video de bienvenida ---------- */
.welcome-video {
  padding: 56px 0;
  text-align: center;
}

.video-placeholder {
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 24px;
  overflow: hidden;
}

.video-placeholder video,
.video-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder video {
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

.legal-content a.legal-download {
  margin-bottom: 8px;
  background: linear-gradient(to right, #002D76, #1F4E9C, #1453B9);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-content a.legal-download:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 45, 118, 0.25);
}

.welcome-name {
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.skeleton-line {
  height: 6px;
  background: var(--gray-100);
  border-radius: 4px;
  max-width: 320px;
  margin: 0 auto 10px;
}

.skeleton-line.short { max-width: 160px; }

.welcome-caption {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ---------- Misión y Visión ---------- */
.mission-vision { padding: 0 0 56px; }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--white);
}

.mv-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.mv-card p { color: var(--gray-700); font-size: 0.92rem; }

/* ---------- Origen ---------- */
.origin { padding: 0 0 56px; }

.origin-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.origin-image img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
}

.origin-text h3 { font-size: 1.1rem; margin-bottom: 14px; }
.origin-text p { color: var(--gray-700); font-size: 0.92rem; margin-bottom: 14px; }
.origin-text p:last-child { margin-bottom: 0; }

/* ---------- Valores ---------- */
.values { padding: 0 0 56px; }
.values h3 { font-size: 1.1rem; margin-bottom: 18px; }

.values-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.value-tab {
  border: 1.5px solid var(--gray-100);
  background: var(--white);
  color: var(--gray-700);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.value-tab:hover { border-color: var(--navy-700); }

.value-tab.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.value-detail {
  border: 1.5px solid var(--navy-700);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  background: var(--white);
}

.value-detail h4 { font-size: 1rem; margin-bottom: 8px; }
.value-detail p { color: var(--gray-700); font-size: 0.92rem; }

/* ---------- Directivos ---------- */
.directors { padding: 56px 0; }
.directors h3 { font-size: 1.1rem; margin-bottom: 22px; }

.directors-avatars {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.director-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  flex: 1;
  min-width: 80px;
  padding: 18px 4px 0;
}

.avatar-circle {
  display: inline-block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.director-avatar .avatar-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
}

.director-avatar.active .avatar-circle {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.director-avatar.active .avatar-label {
  color: var(--navy-900);
  font-weight: 600;
}

.director-avatar.active .avatar-circle::after {
  content: "\25B2"; /* triángulo ▲ escrito en código Unicode para evitar problemas de codificación */
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--orange-600);
  font-size: 0.7rem;
}

.director-detail {
  display: flex;
  gap: 28px;
  align-items: center;
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  background: var(--white);
}

.director-photo {
  width: 200px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: var(--gray-100);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.director-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.director-info { flex: 1; }

.director-name {
  font-size: 1rem;
  color: var(--navy-900);
  margin-bottom: 2px;
}

.director-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.director-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
  white-space: pre-line;
}

/* =========================================================
   PLANTILLA "PÁGINA DE NIVEL" — clases nuevas
   ========================================================= */

/* ---------- Hero del nivel (banner partido) ---------- */
.level-hero {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 40px 0;
}

.level-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.level-hero-text h1 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.level-hero-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  margin-bottom: 20px;
  max-width: 460px;
}

.level-hero-text p:has(+ .level-hero-tagline) { margin-bottom: 10px; }

.level-hero-text .level-hero-tagline {
  color: var(--white);
  font-weight: 600;
  font-style: italic;
}

.level-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ---------- Nuestro sistema ---------- */
.level-system {
  padding: 48px 0;
}

.level-system h2 {
  font-size: 1.2rem;
  margin-bottom: 28px;
}

/* Botones desplegables de "Nuestro sistema" */
.system-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.system-tabs.system-tabs-5 { grid-template-columns: repeat(5, 1fr); }
.system-tabs.system-tabs-6 { grid-template-columns: repeat(3, 1fr); }

.system-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.system-btn:hover { border-color: var(--navy-700); }

/* Botón con su menú desplegado */
.system-btn[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-color: transparent;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 45, 118, 0.3);
}
.system-btn[aria-expanded="true"] .icon-circle { background: rgba(255, 255, 255, 0.2); }
.system-btn .icon-circle .bx { font-size: 1.4rem; }

.system-panel {
  margin-top: 16px;
  padding: 24px 28px;
  border: 1.5px solid var(--navy-700);
  border-radius: var(--radius-md);
  animation: system-open 0.25s ease;
}
.system-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.system-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin: 0 0 8px;
}

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

@media (max-width: 960px) {
  .system-tabs.system-tabs-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .system-tabs,
  .system-tabs.system-tabs-5,
  .system-tabs.system-tabs-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Conoce a nuestra Directora ---------- */
.director-intro {
  padding: 0 0 56px;
}

.director-intro h2 {
  font-size: 1.2rem;
}

.director-intro-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 36px;
  align-items: start;
}

.director-intro-name {
  font-size: 1rem;
  margin-bottom: 4px;
}

.director-intro-role {
  display: block;
  color: var(--navy-700);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.director-intro-bio {
  color: var(--gray-700);
  font-size: 0.92rem;
  white-space: pre-line;
}

.director-intro-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* ---------- Actividades extracurriculares ---------- */
.activities {
  padding: 0 0 56px;
}

.activities h2 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.activities-intro {
  color: var(--gray-700);
  margin: -6px 0 18px;
}

/* ---------- Instalaciones (carrusel) ---------- */
.installations {
  padding: 0 0 56px;
  text-align: center;
}

.installations h2 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.installations-carousel {
  position: relative;
  height: clamp(240px, 45vw, 480px);
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
}

.installations-carousel .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.installations-carousel .slide.active { opacity: 1; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--gray-100);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--navy-700);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 960px) {
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Botón hamburguesa: oculto en computadora */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Las tres rayas se convierten en una X al abrir */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta { display: none; }

@media (max-width: 860px) {
  .header-inner { gap: 12px; }
  .main-nav { gap: 18px; font-size: 0.9rem; }
}

@media (max-width: 720px) {
  /* ---- Menú de celular ---- */
  .nav-toggle { display: flex; order: 3; flex-shrink: 0; }
  .header-cta { margin-left: auto; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 12px 24px rgba(0, 45, 118, 0.12);
    font-size: 1rem;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-open .main-nav { display: flex; }

  .main-nav > a,
  .nav-dropdown-toggle {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-dropdown-toggle {
    display: flex;
    justify-content: space-between;
  }

  /* La flechita gira solo cuando el submenú está abierto (no con hover) */
  .nav-caret { width: 8px; height: 8px; margin-right: 6px; }
  .nav-dropdown:hover .nav-caret,
  .nav-dropdown:focus-within .nav-caret { transform: translateY(-2px) rotate(45deg); }
  .nav-dropdown.open .nav-caret { transform: translateY(2px) rotate(-135deg); }

  /* En celular los niveles se despliegan con un tap */
  .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    padding: 4px 0 8px 16px;
    min-width: 0;
    border: none;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
    box-shadow: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { transform: none; }
  .nav-dropdown-menu a { padding: 10px 14px; font-size: 0.95rem; }

  .main-nav .nav-cta {
    display: inline-flex;
    margin-top: 16px;
    color: var(--white);
  }

  .hero { min-height: 500px; }
  .hero-content { padding-top: 48px; padding-bottom: 48px; }

  /* Estadísticas: una por fila, centradas y con los íconos alineados */
  .stats-inner {
    display: grid;
    grid-template-columns: max-content; /* la columna mide lo que la fila más ancha */
    justify-content: center;
    gap: 22px;
  }

  .services-icons { justify-content: flex-start; }

  .facilities-gallery { grid-template-columns: 1fr; }

  .documents-list li { flex-direction: column; align-items: flex-start; gap: 4px; }

  .mv-grid { grid-template-columns: 1fr; }
  .origin-grid { grid-template-columns: 1fr; }
  .directors-avatars { justify-content: center; }
  .director-detail { flex-direction: column; align-items: center; }
  .director-photo { width: 180px; }

  .level-hero-grid { grid-template-columns: 1fr; }
  .level-hero-image { order: -1; }
  .director-intro-grid { grid-template-columns: 1fr; }
  .director-intro-photo { width: 200px; margin: 0 auto; order: -1; }
}

@media (max-width: 560px) {
  /* Header compacto: el botón "Agenda tu visita" pasa al menú */
  .header-cta { display: none; }
  .brand-logo { width: 42px; }
  .brand-name { font-size: 0.95rem; }

  .container:not(.hero-content) { padding-left: 18px; padding-right: 18px; }

  .hero-content h1.h12 { font-size: 1.8rem; }
  .hero-cta-bottom .container { padding: 0 18px; }

  .whatsapp-fab { width: 3.4rem; height: 3.4rem; right: 1rem; bottom: 1rem; }
  .whatsapp-fab img { width: 2.8rem; }

  .section-header h2 { font-size: 1.3rem; }
  .services-icons { display: grid; grid-template-columns: repeat(2, 1fr); }
  .service-icon { min-width: 0; }
  .facilities-box,
  .system-panel { padding: 20px 18px; }

  .cta-band { padding: 44px 18px; }
  .cta-band h2 { font-size: 1.35rem; }

  .stat strong { font-size: 1.5rem; }
  .medal-icon { width: 2.8rem; }

  .payment-methods h2 { font-size: 1.4rem; }
  .contact-card h3 { font-size: 1.25rem; }
  .contact-card { overflow-wrap: anywhere; }

  .director-detail { flex-direction: column; align-items: flex-start; }

  .levels-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
}


/* ---------- Vista previa de documentos (ventana sobrepuesta) ---------- */
body.doc-modal-abierto { overflow: hidden; }

.doc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.doc-modal.open { opacity: 1; }

.doc-modal-box {
  background: var(--white);
  border-radius: var(--radius-md);
  width: min(960px, 100%);
  height: min(90vh, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.doc-modal.open .doc-modal-box { transform: scale(1); }

.doc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(to right, #002D76, #1F4E9C, #1453B9);
  color: var(--white);
}

.doc-modal-title {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.doc-modal-download {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.doc-modal-download:hover { background: rgba(255, 255, 255, 0.15); }

.doc-modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.doc-modal-close:hover { background: rgba(255, 255, 255, 0.15); transform: scale(1.1); }

.doc-modal-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--gray-100);
}

@media (max-width: 560px) {
  .doc-modal { padding: 0; }
  .doc-modal-box { width: 100%; height: 100%; border-radius: 0; }
}
