/* ========================================
   Institución Educativa Centro de Integración Popular
   Paleta basada en el escudo institucional
   ======================================== */

@import url("theme.css");

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

body {
  color: var(--texto);
  line-height: 1.6;
  background: var(--blanco);
}

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

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

/* ========== HEADER / NAV ========== */
.header {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(26, 26, 26, 0.55), rgba(26, 26, 26, 0.65));
  background-size: cover;
  background-position: center;
}

/* Placeholder para video de fondo - el usuario lo agregará */
.header video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

nav {
  display: flex;
  padding: 1.2% 5%;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 50;
}

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

nav .logo-wrap img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--dorado);
  background: #000;
  object-fit: cover;
}

nav .logo-text {
  color: var(--blanco);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 220px;
}

.nav-links {
  flex: 1;
  text-align: right;
}

.nav-links ul li {
  list-style: none;
  display: inline-block;
  padding: 8px 14px;
  position: relative;
}

.nav-links ul li a {
  color: var(--blanco);
  font-size: 14px;
  font-weight: 500;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
  color: var(--dorado);
}

.nav-links ul li::after {
  content: "";
  width: 0%;
  height: 2px;
  background: var(--dorado);
  display: block;
  margin: auto;
}

.nav-links ul li:hover::after,
.nav-links ul li a.active + ::after {
  width: 100%;
}

nav .fa {
  display: none;
  color: var(--blanco);
  font-size: 22px;
  cursor: pointer;
}

/* ========== HERO TEXT ========== */
.text-box {
  width: 90%;
  max-width: 900px;
  color: var(--blanco);
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
}

.text-box h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.text-box h1 span {
  color: var(--dorado);
}

.text-box p {
  font-size: 16px;
  margin: 12px 0 32px;
  opacity: 0.95;
}

.hero-btn {
  display: inline-block;
  color: var(--blanco);
  border: 2px solid var(--blanco);
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 8px 10px;
  border-radius: 4px;
}

.hero-btn:hover {
  background: var(--rojo);
  border-color: var(--rojo);
}

.hero-btn.primary {
  background: var(--rojo);
  border-color: var(--rojo);
}

.hero-btn.primary:hover {
  background: var(--rojo-oscuro);
  border-color: var(--rojo-oscuro);
}

/* ========== SECTIONS GENERAL ========== */
.section {
  padding: 70px 8%;
  text-align: center;
}

.section h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 10px;
}

.section h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--rojo);
  margin: 12px auto 0;
}

.section > p.lead {
  color: var(--texto-suave);
  max-width: 700px;
  margin: 18px auto 40px;
  font-size: 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

/* ========== CARDS ========== */
.card {
  background: var(--blanco);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 28px 22px;
  flex: 1 1 280px;
  max-width: 340px;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--rojo);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.card i {
  font-size: 36px;
  color: var(--rojo);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--texto);
}

.card p {
  font-size: 14px;
  color: var(--texto-suave);
}

/* ========== NOTICIAS / AVISOS ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
  text-align: left;
}

.news-card {
  background: var(--blanco);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card .img-placeholder {
  height: 160px;
  background: linear-gradient(135deg, var(--azul), var(--rojo));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}

.news-card .body {
  padding: 18px;
}

.news-card .date {
  font-size: 12px;
  color: var(--rojo);
  font-weight: 600;
  margin-bottom: 6px;
}

.news-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.news-card p {
  font-size: 13px;
  color: var(--texto-suave);
}

/* ========== CTA BANNER ========== */
.cta {
  background: linear-gradient(135deg, var(--rojo), var(--rojo-oscuro));
  color: var(--blanco);
  padding: 50px 8%;
  text-align: center;
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.cta p {
  margin-bottom: 24px;
  opacity: 0.95;
}

.cta .hero-btn {
  border-color: var(--blanco);
}

.cta .hero-btn:hover {
  background: var(--dorado);
  border-color: var(--dorado);
  color: var(--negro);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--negro);
  color: #ccc;
  padding: 50px 8% 20px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1 1 200px;
}

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

.footer-col p,
.footer-col a {
  font-size: 13px;
  color: #bbb;
  display: block;
  margin-bottom: 8px;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

/* ========== SUBPAGES HEADER ========== */
/* La barra de navegación es la misma del index (.site-header).
   Si algún HTML todavía trae el <nav> dentro del banner, se ve igual.
   Foto de fondo: se activa con la clase "sub-foto" (documentos.html no la lleva). */
.sub-header {
  position: relative;
  padding: 0;
  color: var(--blanco);
  background: linear-gradient(135deg, var(--color-primario-oscuro), var(--color-primario-profundo));
  border-bottom: 4px solid var(--dorado);
}

.sub-header.sub-foto {
  min-height: clamp(280px, 28vw, 380px);
  display: flex;
  background:
    linear-gradient(90deg, rgba(15, 34, 55, .78) 0%, rgba(15, 34, 55, .45) 45%, rgba(15, 34, 55, .12) 100%),
    url("../assets/img/banner-subpaginas.jpg") center 30% / cover no-repeat;
}

.sub-header.sub-foto .text-box {
  align-self: flex-end;
}

.sub-header > nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 76px;
  padding: 9px clamp(16px, 5vw, 72px);
  background: var(--azul-oscuro);
  box-shadow: 0 3px 18px rgba(15, 35, 55, .12);
}

.sub-header > nav .logo-wrap img {
  width: 58px;
  height: 58px;
  background: #fff;
}

.sub-header .text-box {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
  padding: clamp(48px, 8vw, 92px) clamp(16px, 5vw, 72px) clamp(36px, 6vw, 64px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

.breadcrumb a:hover { color: var(--dorado-claro); }
.breadcrumb span { opacity: .6; }

.sub-header h1 {
  position: relative;
  display: inline-block;
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.sub-header h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: var(--dorado);
}

.sub-header .text-box p {
  margin: 0;
  font-size: clamp(14px, 2vw, 17px);
  opacity: .92;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

/* ========== CONTENT PAGES ========== */
.content-page {
  padding: 60px 8%;
  max-width: 1100px;
  margin: 0 auto;
}

.content-page h2 {
  color: var(--rojo);
  font-size: 24px;
  margin: 30px 0 12px;
}

.content-page p {
  margin-bottom: 14px;
  color: var(--texto);
  font-size: 15px;
}

.content-page ul {
  margin: 12px 0 20px 24px;
}

.content-page ul li {
  margin-bottom: 8px;
  font-size: 15px;
}

.info-box {
  background: var(--gris-claro);
  border-left: 4px solid var(--rojo);
  padding: 18px 22px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .text-box h1 {
    font-size: 32px;
  }
  nav .logo-text {
    display: none;
  }
}

@media (max-width: 1024px) {
  .text-box h1 {
    font-size: 26px;
  }
  .text-box p {
    font-size: 14px;
  }

  .nav-links {
    position: absolute;
    background: var(--rojo-oscuro);
    height: 100vh;
    width: 220px;
    top: 0;
    right: -220px;
    text-align: left;
    z-index: 20;
    transition: 0.4s;
    padding-top: 60px;
  }

  .nav-links ul li {
    display: block;
    padding: 12px 24px;
  }

  nav .fa {
    display: block;
  }

  .nav-links .fa {
    position: absolute;
    top: 18px;
    left: 18px;
  }
}

/* ========== SUBMENÚ "SOBRE NOSOTROS" ========== */
.nav-links .dropdown { position: relative; }

.nav-links .caret {
  display: inline-block;
  font-size: 11px;
  margin-left: 4px;
  transition: transform 0.3s;
}

.nav-links .dropdown:hover .caret,
.nav-links .dropdown.open .caret { transform: rotate(180deg); }

.nav-links .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #f2f2f2;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  padding: 6px 0;
  text-align: left;
  z-index: 30;
}

.nav-links .dropdown:hover .submenu,
.nav-links .dropdown:focus-within .submenu,
.nav-links .dropdown.open .submenu { display: block; }

.nav-links .submenu li {
  display: block;
  padding: 0;
}

.nav-links .submenu li::after { display: none; }

.nav-links .submenu li a {
  display: block;
  padding: 11px 20px;
  color: #222;
  font-size: 14px;
  font-weight: 600;
}

.nav-links .submenu li a:hover {
  color: var(--rojo-oscuro);
  background: #e6e6e6;
}

.content-page h2 { scroll-margin-top: 20px; }

@media (max-width: 1024px) {
  .nav-links { overflow-y: auto; }

  .nav-links .submenu {
    position: static;
    background: rgba(0, 0, 0, 0.18);
    box-shadow: none;
    border-radius: 6px;
    min-width: 0;
    margin: 6px 0 0;
  }

  /* en móvil solo se abre con clic, no con hover */
  .nav-links .dropdown:hover .submenu { display: none; }
  .nav-links .dropdown.open .submenu { display: block; }
  .nav-links .dropdown:hover .caret { transform: none; }
  .nav-links .dropdown.open .caret { transform: rotate(180deg); }

  .nav-links .submenu li a {
    color: var(--blanco);
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 500;
  }
  .nav-links .submenu li a:hover { background: rgba(0, 0, 0, 0.2); color: var(--dorado); }
}

/* ========== HOME: BARRA + VIDEO + BIENVENIDA ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--rojo-oscuro);
}

.site-header nav {
  background: var(--rojo-oscuro);
  padding: 10px 5%;
}

.site-header nav .logo-wrap img {
  width: 58px;
  height: 58px;
}

.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;          /* proporción del celular, igual que la referencia */
  max-height: 72vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primario-oscuro), var(--color-primario) 65%, var(--color-primario-profundo));
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: var(--blanco);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  max-width: calc(100% - 90px);
}

.hero-label img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: transparent;
  padding: 0;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-pause {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 20, 20, 0.7);
  color: var(--blanco);
  font-size: 13px;
  letter-spacing: -1px;
  cursor: pointer;
}

.intro {
  text-align: center;
  padding: 50px 6% 20px;
  max-width: 900px;
  margin: 0 auto;
}

.intro h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.25;
}

.intro h1 span { color: var(--rojo); }

.intro p {
  font-size: 15px;
  color: var(--texto-suave);
  margin: 14px 0 26px;
}

.intro .hero-btn {
  color: var(--rojo);
  border-color: var(--rojo);
}

.intro .hero-btn:hover { color: var(--blanco); }
.intro .hero-btn.primary { color: var(--blanco); }

@media (min-width: 1025px) {
  .hero-video { aspect-ratio: 21 / 9; max-height: 68vh; }
  .hero-label { font-size: 20px; }
  .intro h1 { font-size: 38px; }
}

@media (max-width: 1024px) {
  /* el menú lateral queda fijo a la pantalla (sin desbordar la página) */
  .nav-links { position: fixed; height: 100%; }
  .intro h1 { font-size: 25px; }
}

/* ========== ACTUALIDAD (estilo uniguajira) ========== */
.actualidad {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px 56px;
}

.act-title {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rojo-oscuro);
  padding-left: 16px;
  margin-bottom: 20px;
}

.act-title::before {          /* barrita gris a la izquierda */
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 5px;
  border-radius: 4px;
  background: var(--gris);
}

.act-title::after {           /* línea de color debajo */
  content: "";
  position: absolute;
  left: 16px;
  bottom: -8px;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--naranja), var(--rojo));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.chip {
  border: none;
  background: var(--blanco);
  color: var(--texto-suave);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 9px 16px;
  border-radius: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: 0.2s;
}

.chip:hover { color: var(--rojo); }

.chip.active {
  color: var(--negro);
  font-weight: 600;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.26);
}

.act-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.act-card {
  background: var(--blanco);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
}

.act-card[hidden] { display: none; }

.act-img {
  position: relative;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(
    135deg, #e8ebee 0 12px, #f1f3f5 12px 24px);
}

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

.act-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blanco);
  color: var(--negro);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 14px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.14);
}

.act-body { padding: 14px 16px 18px; }

.act-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--texto-suave);
  margin-bottom: 4px;
}

.act-body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--negro);
  margin-bottom: 6px;
}

.act-body h3 a:hover { color: var(--rojo); }

.act-body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--texto-suave);
}

@media (min-width: 1025px) {
  .act-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .act-title { font-size: 26px; }
  .chip { font-size: 14px; padding: 10px 20px; }
}

@media (min-width: 1300px) {
  .act-grid { grid-template-columns: repeat(3, 1fr); }
}


/* =====================================================
   REFINAMIENTO INSTITUCIONAL IPC
   Diseño consistente, navegación móvil y movimiento sutil
   ===================================================== */
:root {
  --sombra-suave: 0 8px 28px rgba(var(--color-primario-oscuro-rgb), .09);
  --radio-card: 16px;
  --transicion: 180ms ease;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
}

.site-header,
.site-header nav {
  background: var(--azul-oscuro);
}

.site-header {
  box-shadow: 0 3px 18px rgba(15, 35, 55, .12);
}

.site-header nav {
  min-height: 76px;
  padding: 9px clamp(16px, 5vw, 72px);
}

nav .logo-wrap img,
.site-header nav .logo-wrap img {
  border: 2px solid var(--dorado);
  background: #fff;
}

.site-header .nav-links ul li a {
  font-size: 13px;
  letter-spacing: .01em;
}

.nav-links ul li a {
  transition: color var(--transicion);
}

.nav-links ul li::after {
  height: 2px;
  background: var(--dorado);
  transition: width var(--transicion);
}

.nav-links .submenu {
  background: #fff;
  border: 1px solid rgba(var(--color-primario-oscuro-rgb), .08);
  border-radius: 10px;
  box-shadow: var(--sombra-suave);
  overflow: hidden;
}

.nav-links .submenu li a:hover {
  color: var(--azul-oscuro);
  background: var(--gris-claro);
}

.hero-video {
  aspect-ratio: 16 / 7;
  max-height: 68vh;
  min-height: 270px;
  background: linear-gradient(135deg, var(--color-primario-oscuro), var(--color-primario) 65%, var(--color-primario-profundo));
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 27, 44, .06), rgba(10, 27, 44, .28));
}

.hero-label,
.hero-pause {
  z-index: 2;
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.hero-label {
  font-size: 14px;
  padding: 9px 18px 9px 9px;
}

.hero-pause {
  width: 46px;
  height: 46px;
  transition: transform var(--transicion), background var(--transicion);
}
.hero-pause:hover { transform: scale(1.05); background: rgba(var(--color-primario-oscuro-rgb), .92); }

.intro { padding-top: clamp(38px, 6vw, 72px); }
.intro h1 { color: var(--azul-oscuro); }
.intro h1 span { color: var(--azul); }

.hero-btn {
  border-radius: 8px;
  font-weight: 600;
}
.hero-btn:hover { transform: none; box-shadow: none; }
.hero-btn.primary { background: var(--azul); border-color: var(--azul); }
.hero-btn.primary:hover { background: var(--azul-oscuro); border-color: var(--azul-oscuro); }

.section h1::after { background: var(--dorado); }
.content-page h2 { color: var(--azul-oscuro); }
.info-box { border-left-color: var(--dorado); border-radius: 0 10px 10px 0; }

.actualidad { padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 28px) 64px; }
.act-title { color: var(--azul-oscuro); letter-spacing: -.02em; }
.act-title::after { background: var(--dorado); }
.chip { border: 1px solid var(--gris); box-shadow: 0 2px 8px rgba(var(--color-primario-oscuro-rgb), .06); transition: color var(--transicion), background var(--transicion), border-color var(--transicion), transform var(--transicion); }
.chip:hover { color: var(--azul); transform: translateY(-1px); }
.chip.active { color: var(--blanco); background: var(--azul-oscuro); border-color: var(--azul-oscuro); box-shadow: none; }
.act-card { border: 1px solid rgba(var(--color-primario-oscuro-rgb), .06); border-radius: var(--radio-card); box-shadow: 0 5px 22px rgba(var(--color-primario-oscuro-rgb), .08); transition: transform 180ms ease, box-shadow 180ms ease; }
.act-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(var(--color-primario-oscuro-rgb), .13); }
.act-img { background: repeating-linear-gradient(135deg, #edf1f5 0 12px, #f7f9fb 12px 24px); }
.act-tag { color: var(--azul-oscuro); }
.act-body h3 a:hover { color: var(--azul); }

.footer { background: var(--color-pie); }
.footer-col h4 { color: #fff; }
.footer-col h4::after { background: var(--dorado); }
.footer-col a:hover { color: var(--dorado-claro); }
.footer-bottom { border-top-color: rgba(255,255,255,.14); }

/* Animación de entrada discreta para secciones */
.js-reveal { opacity: 0; transform: translateY(8px); transition: opacity 250ms ease, transform 250ms ease; }
.js-reveal.is-visible { opacity: 1; transform: translateY(0); }


/* Panel móvil: se desliza sin dejar media página tapada */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(9, 24, 39, .48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.menu-overlay.is-visible { opacity: 1; visibility: visible; }

@media (max-width: 1024px) {
  .site-header { position: sticky; top: 0; }
  .site-header nav { min-height: 70px; padding: 8px 16px; }
  .site-header nav .logo-wrap img { width: 54px; height: 54px; }
  .site-header nav .logo-text { display: block; font-size: 12px; max-width: 190px; }
  .nav-links {
    position: fixed !important;
    top: 0;
    right: 0 !important;
    width: min(86vw, 350px);
    height: 100dvh !important;
    max-height: 100dvh;
    padding: 76px 14px 24px !important;
    overflow-y: auto;
    background: var(--azul-oscuro) !important;
    box-shadow: -12px 0 32px rgba(0,0,0,.18);
    z-index: 60 !important;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease !important;
    overscroll-behavior: contain;
  }
  .nav-links.is-open { transform: translateX(0); visibility: visible; }
  .nav-links ul li { display: block; padding: 0; margin: 3px 0; }
  .nav-links ul li > a { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-radius: 8px; font-size: 15px; }
  .nav-links ul li > a:hover,
  .nav-links ul li > a.active { background: rgba(255,255,255,.09); color: var(--dorado-claro); }
  .nav-links ul li::after { display: none; }
  .nav-links .fa-times { position: absolute; top: 23px; left: auto; right: 22px; padding: 8px; font-size: 23px; }
  .nav-links .submenu { position: static; min-width: 0; margin: 2px 0 8px 8px; background: rgba(255,255,255,.07); border: 0; box-shadow: none; border-radius: 8px; }
  .nav-links .submenu li a { color: #fff; padding: 11px 14px; font-size: 13px; }
  .nav-links .submenu li a:hover { background: rgba(255,255,255,.08); color: var(--dorado-claro); }
  .nav-links .dropdown:hover .submenu { display: none; }
  .nav-links .dropdown.open .submenu { display: block; }
  .hero-video { aspect-ratio: 4 / 3; min-height: 250px; max-height: 56vh; }
  .hero-label { max-width: calc(100% - 80px); font-size: 12px; }
  .intro h1 { font-size: clamp(24px, 6vw, 30px); }
  .act-grid { gap: 16px; }
  .act-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-reveal { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ========== ICONOS PROPIOS (sin Font Awesome: carga más rápida) ========== */
.fa, .fas {
  display: inline-block;
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  vertical-align: -.125em;
  background-color: currentColor;
  background-clip: content-box;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}
nav .fa { display: none; }
@media (max-width: 1024px) { nav .fa { display: block; } }
.fa-bars { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E"); }
.fa-times { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.fa-map-marker-alt { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.fa-phone { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.fa-envelope { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.fa-clock { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.fa-book { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5zM20 17v4H6.5A2.5 2.5 0 0 1 4 18.5'/%3E%3C/svg%3E"); }
.fa-balance-scale { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M5 21h14M5 7h14M5 7l-3 8a3 3 0 0 0 6 0zM19 7l-3 8a3 3 0 0 0 6 0z'/%3E%3C/svg%3E"); }
.fa-file-download { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M12 18v-6M9 15l3 3 3-3'/%3E%3C/svg%3E"); }
.fa-image { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E"); }

.fa-bullhorn { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E"); }
.fa-users { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.fa-trophy { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4.5a2.5 2.5 0 0 1 0-5H6M18 9h1.5a2.5 2.5 0 0 0 0-5H18M4 22h16M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22M18 2H6v7a6 6 0 0 0 12 0V2z'/%3E%3C/svg%3E"); }
.fa-calendar-check { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M9 16l2 2 4-4'/%3E%3C/svg%3E"); }

.nav-links a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ==========================================================
   MENÚ PROFESIONAL: escudo sin círculo + nombre del colegio
   ========================================================== */
.site-header { border-bottom: 3px solid var(--dorado); }
nav .logo-wrap img,
.site-header nav .logo-wrap img {
  width: auto; height: 52px;
  border: 0; border-radius: 0; background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
nav .logo-wrap { gap: 14px; }
nav .logo-wrap .logo-text {
  display: block;
  color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
  line-height: 1.3; max-width: 300px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.28);
}
nav .logo-wrap .logo-text b { display: block; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--dorado-claro); }
@media (max-width: 1180px) { nav .logo-wrap .logo-text { display: none; } }
/* ==========================================================
   CORRECCIÓN MENÚ: botón "Zona administrativa"
   ========================================================== */

/* Solo se muestra un texto (antes salían los dos pegados) */
.nav-links .t-corto { display: none; }
.nav-links .t-largo { display: inline; }

/* Botón en forma de pastilla dorada */
.nav-links ul li.li-admin { padding-left: 6px; }
.nav-links ul li.li-admin::after { display: none; }

.nav-links .btn-admin {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--dorado);
  border-radius: 999px;
  color: var(--dorado) !important;
  font-size: 12.5px !important;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.nav-links .btn-admin:hover {
  background: var(--dorado);
  color: var(--azul-oscuro) !important;
}

/* Que el menú no se parta en dos líneas */
.site-header .nav-links ul { white-space: nowrap; }

/* Pantallas medianas (el menú aún es horizontal pero no cabe): texto corto */
@media (min-width: 1025px) and (max-width: 1180px) {
  .nav-links .t-largo { display: none; }
  .nav-links .t-corto { display: inline; }
  .site-header .nav-links ul li { padding: 8px 9px; }
}

/* Menú del celular/tablet (hamburguesa): texto completo, igual que los demás enlaces */
@media (max-width: 1024px) {
  .nav-links .t-largo { display: inline; }
  .nav-links .t-corto { display: none; }
  .nav-links ul li.li-admin { padding-left: 0; }
  .nav-links .btn-admin {
    display: flex;
    padding: 13px 14px;
    border: 0;
    border-radius: 8px;
    font-size: 15px !important;
    font-weight: 500;
    color: var(--dorado-claro) !important;
  }
  .nav-links .btn-admin:hover {
    background: rgba(255,255,255,.09);
    color: var(--dorado-claro) !important;
  }
}
