:root {
  --verde: #1a4a1e;
  --verde-oscuro: #1e5631;
  --verde-medio: #2d6b33;
  --verde-claro: #4a9451;
  --dorado: #c9a227;
  --dorado-claro: #f0c84a;
  --dorado-ambar: #eab308;
  --negro: #0d0d0d;
  --gris-oscuro: #1c1c1c;
  --gris: #444;
  --gris-claro: #f4f4f0;
  --blanco: #fafaf8;
  --azul-info: #38bdf8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
  overflow-x: clip;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--blanco);
  color: var(--negro);
  overflow-x: hidden;
  padding-top: 90px;
}

/* SKIP LINK — Accesibilidad */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--dorado);
  color: var(--verde);
  padding: 8px 16px;
  font-weight: 700;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ANUNCIO BANNER */
.anuncio-banner {
  background: linear-gradient(90deg, #7a5800 0%, var(--dorado) 40%, #c9a227 70%, #7a5800 100%);
  background-size: 200% 100%;
  animation: anuncio-shimmer 4s linear infinite;
  color: var(--negro);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1100;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

@keyframes anuncio-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.anuncio-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.anuncio-icono {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.anuncio-texto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.anuncio-texto strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--negro);
}

.anuncio-texto span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
}

.anuncio-cerrar {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.15);
  border: none;
  color: var(--negro);
  font-size: 0.85rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background 0.2s;
  flex-shrink: 0;
}

.anuncio-cerrar:hover {
  background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .anuncio-texto span {
    display: none;
  }

  .anuncio-texto strong {
    font-size: 0.9rem;
  }
}


/* SECCIÓN ANUNCIOS — diseño oscuro animado moderno */
.anuncios-section {
  background: linear-gradient(145deg, #040c06 0%, #081508 40%, #0c1f0e 70%, #050e07 100%);
  background-size: 300% 300%;
  animation: statsBgShift 22s ease infinite;
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}

/* Malla decorativa */
.anuncios-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 39, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, .025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

/* Línea superior animada */
.anuncios-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--dorado) 30%, var(--verde-claro) 70%, transparent 100%);
  animation: lineFlow 4s ease-in-out infinite;
}

.anuncios-section .section-label {
  color: var(--dorado);
}

.anuncios-section .section-title {
  color: #fff;
}

.anuncios-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 48px auto 0;
  max-width: 1100px;
}

/* Grilla 2 columnas para tarjetas compactas */
.anuncios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.anuncio-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-left: 4px solid rgba(74, 148, 81, .6);
  border-radius: 14px;
  padding: 26px 26px 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.38s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.38s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  overflow: hidden;
}

.anuncio-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(201, 162, 39, .35);
  border-left-color: var(--dorado);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 24px rgba(201, 162, 39, .08);
}

.anuncio-destacado {
  border-left-color: var(--dorado);
  background: rgba(201, 162, 39, .07);
  border-color: rgba(201, 162, 39, .2);
}

.anuncio-destacado:hover {
  background: rgba(201, 162, 39, .1);
  border-color: rgba(201, 162, 39, .45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 32px rgba(201, 162, 39, .14);
}

.anuncio-card-icon {
  font-size: 1.9rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 3px;
  filter: drop-shadow(0 0 8px rgba(201, 162, 39, .3));
}

.anuncio-card-body {
  flex: 1;
  min-width: 0;
}

.anuncio-card-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado-claro);
  display: block;
  margin-bottom: 6px;
}

.anuncio-card-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: rgba(255, 255, 255, .92);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.anuncio-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.855rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.78;
  margin: 0 0 14px;
  text-align: justify;
}

.anuncio-card-lista {
  font-family: 'Inter', sans-serif;
  font-size: 0.855rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.7;
  margin: 4px 0 14px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: justify;
}

.anuncio-card-lista li {
  padding-left: 16px;
  position: relative;
}

.anuncio-card-lista li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--dorado);
  font-weight: 700;
}

.anuncio-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, .32);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}

.anuncio-card:hover .anuncio-card-meta {
  color: rgba(255, 255, 255, .55);
}

.anuncio-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--dorado), var(--dorado-claro));
  color: var(--verde);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(201, 162, 39, .35);
}

/* ── Tarjeta Matrícula ── */
.anuncio-card--matricula {
  flex-direction: column;
  gap: 0;
  border-left-color: rgba(74, 148, 81, .7);
  padding: 32px 36px 28px;
}

.matricula-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.matricula-icono {
  font-size: 2.2rem;
  margin-top: 0;
  filter: drop-shadow(0 0 8px rgba(201, 162, 39, .3));
}

.matricula-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.matricula-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 14px 16px;
  transition: background 0.25s, border-color 0.25s;
}

.matricula-item:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(201, 162, 39, .25);
}

.matricula-item--sub {
  grid-column: 1 / -1;
}

.matricula-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(74, 148, 81, .7);
  border-radius: 5px;
  padding: 3px 8px;
  flex-shrink: 0;
  line-height: 1.4;
  margin-top: 2px;
  white-space: nowrap;
}

.matricula-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.845rem;
  color: rgba(255, 255, 255, .62);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

.matricula-subitems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.matricula-subitem {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  padding: 10px 12px;
}

.matricula-subnum {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--dorado-claro);
  border: 1.5px solid rgba(201, 162, 39, .5);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
  line-height: 1.4;
  margin-top: 1px;
  white-space: nowrap;
}

.matricula-subitem p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.65;
  margin: 0;
  text-align: justify;
}

/* ── Responsive: Anuncios ── */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .anuncios-section {
    padding: 60px 24px;
  }

  .anuncios-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .matricula-items {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .matricula-item--sub {
    grid-column: 1;
  }

  .matricula-subitems {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .anuncio-card--matricula {
    padding: 28px 28px 24px;
  }
}

/* Móvil: ≤ 640px */
@media (max-width: 640px) {
  .anuncios-section {
    padding: 48px 16px;
  }

  .anuncios-lista {
    gap: 16px;
    margin-top: 28px;
  }

  .anuncio-card {
    padding: 18px 16px 16px;
    gap: 12px;
    border-radius: 10px;
    border-left-width: 4px;
    /* Desactivar hover con movimiento en táctil */
    transform: none !important;
  }

  .anuncio-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  }

  .anuncio-card-icon {
    font-size: 1.5rem;
  }

  .anuncio-card-titulo {
    font-size: 0.97rem;
    margin-bottom: 8px;
  }

  .anuncio-card-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 10px;
  }

  .anuncio-card-lista {
    font-size: 0.85rem;
    gap: 5px;
    margin-bottom: 10px;
  }

  .anuncio-card-meta {
    font-size: 0.68rem;
  }

  .anuncio-card-badge {
    position: static;
    display: inline-block;
    margin-top: 10px;
    font-size: 0.58rem;
  }

  /* Matrícula en móvil */
  .anuncio-card--matricula {
    padding: 20px 16px 18px;
    flex-direction: column;
  }

  .matricula-header {
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .matricula-icono {
    font-size: 1.7rem;
  }

  .matricula-items {
    gap: 10px;
    margin-bottom: 16px;
  }

  .matricula-item {
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .matricula-num {
    font-size: 0.72rem;
    padding: 2px 7px;
  }

  .matricula-item p {
    font-size: 0.83rem;
    line-height: 1.65;
  }

  .matricula-subitems {
    gap: 7px;
    margin-top: 10px;
  }

  .matricula-subitem {
    padding: 9px 11px;
    gap: 8px;
    border-radius: 6px;
  }

  .matricula-subnum {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .matricula-subitem p {
    font-size: 0.79rem;
    line-height: 1.6;
  }
}

/* Móvil pequeño: ≤ 480px */
@media (max-width: 480px) {
  .anuncios-section {
    padding: 40px 14px;
  }

  .anuncios-lista {
    gap: 12px;
  }

  .anuncio-card {
    padding: 15px 14px 13px;
    gap: 10px;
  }

  .anuncio-card-icon {
    font-size: 1.35rem;
  }

  .anuncio-card-cat {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .anuncio-card-titulo {
    font-size: 0.9rem;
  }

  .anuncio-card-desc,
  .anuncio-card-lista {
    font-size: 0.82rem;
  }

  .anuncio-card--matricula {
    padding: 16px 14px 14px;
  }

  .matricula-header {
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .matricula-icono {
    font-size: 1.5rem;
  }

  .matricula-item {
    padding: 10px 12px;
    gap: 8px;
  }

  .matricula-item p,
  .matricula-subitem p {
    font-size: 0.8rem;
  }
}

/* Muy pequeño: ≤ 360px */
@media (max-width: 360px) {
  .anuncios-section {
    padding: 36px 12px;
  }

  .anuncio-card {
    padding: 13px 12px;
    gap: 9px;
  }

  .anuncio-card-titulo {
    font-size: 0.85rem;
  }

  .anuncio-card--matricula {
    padding: 14px 12px;
  }

  .matricula-item {
    flex-direction: column;
    gap: 6px;
  }

  .matricula-num {
    align-self: flex-start;
  }

  .matricula-subitem {
    flex-direction: column;
    gap: 4px;
  }

  .matricula-subnum {
    align-self: flex-start;
  }
}

/* CUSTOM CURSOR */
body.no-cursor,
body.no-cursor * {
  cursor: none !important;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background-color: #FFD700;
  will-change: transform;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.6);
  transition: opacity 0.3s, width 0.2s, height 0.2s;
}

.cursor-outline {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 215, 0, 0.75);
  will-change: transform;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 99998;
  pointer-events: none;
  transition: transform 0.13s ease-out, width 0.22s ease, height 0.22s ease, border-color 0.22s ease, opacity 0.3s;
  opacity: 0;
}

.cursor-outline.hover {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 215, 0, 1);
  background: rgba(255, 215, 0, 0.08);
}

/* TOPBAR */
.topbar {
  background: #020617;
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 6px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1001;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.topbar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.topbar a:hover {
  color: var(--azul-info);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.tb-links {
  display: flex;
  gap: 24px;
}

/* NAVBAR */
/* ===== NAVBAR MODERNO ===== */

@keyframes nav-slide-down {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes nav-link-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nav-dot-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 192, 64, .6);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(240, 192, 64, 0);
  }
}

/* Barra de progreso de scroll */
nav::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: var(--scroll-pct, 0%);
  background: linear-gradient(90deg, #c9a227, #f0c040, #f5d76e);
  transition: width .1s linear;
  z-index: 10;
}

nav {
  background: rgba(4, 12, 5, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
  border-bottom: 2px solid rgba(240, 192, 64, .3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
  animation: nav-slide-down .5s cubic-bezier(.16, 1, .3, 1) both;
}

nav.scrolled {
  background: rgba(2, 8, 3, 0.98);
  border-bottom: 2px solid rgba(240, 192, 64, .4);
  box-shadow: 0 8px 36px rgba(0, 0, 0, .6);
}

/* Barra interna con altura fija — contiene brand + toggle + menu-desktop */
.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  overflow: hidden;
  position: relative;
}

/* ── Brand ── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  height: 90px;
  overflow: hidden;
}

.nav-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(240, 192, 64, .08);
  border: 1px solid rgba(240, 192, 64, .2);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s ease, border-color .3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
  overflow: hidden;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav.scrolled .nav-logo {
  width: 38px;
  height: 38px;
}

.nav-brand:hover .nav-logo {
  transform: scale(1.08) rotate(-3deg);
  background: rgba(240, 192, 64, .14);
  border-color: rgba(240, 192, 64, .4);
}

.nav-text {
  display: flex;
  flex-direction: column;
}

.nav-text .main-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .07em;
  line-height: 1.15;
  background: linear-gradient(120deg, #ffffff 20%, #f0c040 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

nav.scrolled .nav-text .main-title {
  font-size: 1rem;
}

.nav-text .sub-title {
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  font-weight: 600;
  color: rgba(200, 220, 205, 0.75);
  margin: 5px 0 0;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.45;
  max-width: 480px;
}

/* ── Menu wrapper ── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Links ── */
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links li {
  animation: nav-link-in .4s ease both;
}

.nav-links li:nth-child(1) {
  animation-delay: .05s;
}

.nav-links li:nth-child(2) {
  animation-delay: .10s;
}

.nav-links li:nth-child(3) {
  animation-delay: .15s;
}

.nav-links li:nth-child(4) {
  animation-delay: .20s;
}

.nav-links li:nth-child(5) {
  animation-delay: .25s;
}

.nav-links li:nth-child(6) {
  animation-delay: .30s;
}

.nav-links li:nth-child(7) {
  animation-delay: .35s;
}

.nav-links li:nth-child(8) {
  animation-delay: .40s;
}

.nav-links li:nth-child(9) {
  animation-delay: .45s;
}

.nav-links li:nth-child(10) {
  animation-delay: .50s;
}

.nav-links a {
  color: rgba(220, 235, 222, 0.9);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  position: relative;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .25s ease, background .25s ease;
  display: block;
}

/* Punto indicador debajo */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f0c040;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scale(1);
}

/* Badge especial para Anuncios */
.nav-links a.nav-anuncios {
  color: #f0c040;
}

.nav-links a.nav-anuncios::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f0c040;
  animation: nav-dot-pulse 2s ease infinite;
}

.nav-links a.nav-anuncios:hover {
  background: rgba(240, 192, 64, .1);
}

/* ── Botón CTA ── */
.nav-links a.nav-cta {
  background: linear-gradient(135deg, #c9a227 0%, #f0c040 50%, #f5d76e 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: #0a1a0c;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .04em;
  margin-left: 8px;
  border: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201, 162, 39, .35);
  transition: background-position .4s ease, box-shadow .3s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.nav-links a.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .3) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}

.nav-links a.nav-cta::after {
  display: none;
}

.nav-links a.nav-cta:hover {
  background-position: 100% 0%;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(201, 162, 39, .5);
  color: #0a1a0c;
}

.nav-links a.nav-cta:hover::before {
  transform: translateX(100%);
}

/* ── Toggle hamburguesa ── */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  cursor: pointer;
  z-index: 101;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  transition: background .25s ease, border-color .25s ease;
}

.mobile-toggle:hover {
  background: rgba(240, 192, 64, .12);
  border-color: rgba(240, 192, 64, .35);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease, width .25s ease, background .25s ease;
}

.mobile-toggle span:nth-child(1) {
  width: 22px;
  margin-bottom: 5px;
}

.mobile-toggle span:nth-child(2) {
  width: 16px;
  margin-bottom: 5px;
}

.mobile-toggle span:nth-child(3) {
  width: 22px;
}

.mobile-toggle:hover span {
  background: #f0c040;
}

.mobile-toggle:hover span:nth-child(2) {
  width: 22px;
}

/* HERO */
.hero {
  min-height: 92vh;
  background:
    linear-gradient(175deg, rgba(4, 10, 5, .92) 0%, rgba(14, 50, 18, .78) 45%, rgba(8, 22, 10, .6) 75%, rgba(201, 162, 39, .06) 100%),
    url('images/ESTADIO-VISTA 2.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 100px 60px 80px;
  position: relative;
  overflow: hidden;
}

/* Scan lines sutiles */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, .012) 3px, rgba(255, 255, 255, .012) 4px);
  pointer-events: none;
  z-index: 0;
}

/* Rayo diagonal de luz + fade inferior */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(201, 162, 39, .06) 0%, transparent 40%, transparent 100%),
    linear-gradient(to bottom, transparent 65%, rgba(4, 10, 5, .82) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Los pseudo-elementos y orbs usan z-index: 0 — el contenido normal fluye encima */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201, 162, 39, .12);
  color: var(--dorado-claro);
  border: 1px solid rgba(201, 162, 39, .45);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeUp .7s ease both;
}

.hero-badge::before {
  content: '★';
  font-size: .6rem;
  color: var(--dorado);
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -.01em;
  max-width: 780px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .5);
  animation: fadeUp .8s ease .1s both;
}

.hero h1 em {
  font-style: normal;
  display: block;
  background: linear-gradient(135deg, #c9a227 0%, var(--dorado-claro) 50%, #ffe97a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(201, 162, 39, .35));
}

.hero-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  color: rgba(255, 255, 255, .72);
  font-size: 1.1rem;
  margin: 28px 0 40px;
  max-width: 500px;
  line-height: 1.7;
  padding-left: 18px;
  border-left: 2px solid rgba(201, 162, 39, .5);
  animation: fadeUp .8s ease .2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp .8s ease .3s both;
}

.btn-primary {
  background: linear-gradient(135deg, #c9a227 0%, var(--dorado-claro) 100%);
  color: var(--verde);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 17px 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all .3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-block;
  box-shadow: 0 4px 20px rgba(201, 162, 39, .3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(201, 162, 39, .55), 0 0 60px rgba(201, 162, 39, .15);
}

.btn-outline {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 15px 38px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all .3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-block;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .12);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}

.hero-stats {
  display: flex;
  gap: 6px;
  margin-top: 36px;
  animation: fadeUp .8s ease .4s both;
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 16px 24px;
  width: fit-content;
}

.hero-stat {
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #c9a227 0%, #f0de70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, .3));
}

.hero-stat .lbl {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, .55);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 5px;
}

/* SECTION COMMONS */
section {
  padding: 90px 40px;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--verde-medio);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--dorado);
  display: inline-block;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: var(--negro);
  letter-spacing: -.01em;
}

.section-title span {
  color: var(--verde-medio);
}

/* DIRECTOR */
/* ===== DIRECTOR ===== */

@keyframes dp-float {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: .12;
  }

  50% {
    transform: translateY(-28px) scale(1.2);
    opacity: .22;
  }
}

@keyframes dir-quote-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dir-img-ken {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.06);
  }
}

.director-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0c0c0c 0%, #151515 50%, #1a1a18 100%);
  color: #fff;
  padding: 0;
}

/* ── Director: fondo elegante ── */
@keyframes dr-glow-breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: .45;
  }

  50% {
    transform: scale(1.12);
    opacity: .70;
  }
}

@keyframes dr-ray-cross {
  0% {
    transform: translateX(-110%) skewX(-18deg);
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  94% {
    opacity: 1;
  }

  100% {
    transform: translateX(140vw) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes dr-dust-float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  8% {
    opacity: .8;
  }

  92% {
    opacity: .45;
  }

  100% {
    transform: translateY(-300px) translateX(var(--dx, 10px));
    opacity: 0;
  }
}

@keyframes dr-grid-pulse {

  0%,
  100% {
    opacity: .05;
  }

  50% {
    opacity: .12;
  }
}

.dr-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Resplandores dorados en esquinas */
.dr-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform, opacity;
}

.dr-glow-1 {
  width: 500px;
  height: 500px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(201, 162, 39, .22) 0%, rgba(180, 140, 20, .08) 50%, transparent 70%);
  animation: dr-glow-breathe 12s ease-in-out infinite;
}

.dr-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -60px;
  background: radial-gradient(circle, rgba(201, 162, 39, .16) 0%, rgba(160, 120, 10, .06) 50%, transparent 70%);
  animation: dr-glow-breathe 16s ease-in-out infinite;
  animation-delay: -6s;
}

/* Rayos diagonales dorados lentos */
.dr-rays {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dr-ray {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(201, 162, 39, .20) 25%,
      rgba(201, 162, 39, .38) 50%,
      rgba(201, 162, 39, .20) 75%,
      transparent 100%);
  animation: dr-ray-cross linear infinite;
  will-change: transform;
}

.dr-ray:nth-child(1) {
  left: 15%;
  width: 1px;
  animation-duration: 20s;
  animation-delay: 0s;
}

.dr-ray:nth-child(2) {
  left: 35%;
  width: 2px;
  animation-duration: 28s;
  animation-delay: -10s;
  opacity: .6;
}

.dr-ray:nth-child(3) {
  left: 55%;
  width: 1px;
  animation-duration: 22s;
  animation-delay: -5s;
}

.dr-ray:nth-child(4) {
  left: 70%;
  width: 2px;
  animation-duration: 32s;
  animation-delay: -18s;
  opacity: .5;
}

.dr-ray:nth-child(5) {
  left: 88%;
  width: 1px;
  animation-duration: 24s;
  animation-delay: -8s;
}

/* Polvo dorado ascendente */
.dr-dust {
  position: absolute;
  inset: 0;
}

.dr-d {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(201, 162, 39, .85);
  box-shadow: 0 0 4px 1px rgba(201, 162, 39, .45);
  animation: dr-dust-float linear infinite;
  will-change: transform, opacity;
}

.dr-d:nth-child(1) {
  left: 6%;
  bottom: 8%;
  animation-duration: 13s;
  animation-delay: 0s;
  --dx: 18px;
}

.dr-d:nth-child(2) {
  left: 18%;
  bottom: 15%;
  animation-duration: 17s;
  animation-delay: 2.5s;
  --dx: -14px;
  width: 1px;
  height: 1px;
}

.dr-d:nth-child(3) {
  left: 32%;
  bottom: 5%;
  animation-duration: 11s;
  animation-delay: 5s;
  --dx: 20px;
}

.dr-d:nth-child(4) {
  left: 50%;
  bottom: 20%;
  animation-duration: 15s;
  animation-delay: 1s;
  --dx: -18px;
  width: 1px;
  height: 1px;
}

.dr-d:nth-child(5) {
  left: 64%;
  bottom: 10%;
  animation-duration: 12s;
  animation-delay: 7s;
  --dx: 15px;
}

.dr-d:nth-child(6) {
  left: 76%;
  bottom: 25%;
  animation-duration: 18s;
  animation-delay: 3s;
  --dx: -12px;
  width: 1px;
  height: 1px;
}

.dr-d:nth-child(7) {
  left: 86%;
  bottom: 8%;
  animation-duration: 14s;
  animation-delay: 4s;
  --dx: 22px;
}

.dr-d:nth-child(8) {
  left: 94%;
  bottom: 18%;
  animation-duration: 16s;
  animation-delay: 6s;
  --dx: -16px;
  width: 1px;
  height: 1px;
}

/* Cuadrícula sutil */
.dr-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 39, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, .04) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: dr-grid-pulse 8s ease-in-out infinite;
}

/* Contenido sobre el fondo */
.director-inner {
  position: relative;
  z-index: 2;
}

/* Partículas */
.director-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.dp {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 192, 64, .18) 0%, transparent 70%);
  animation: dp-float ease-in-out infinite;
}

.dp1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: 5%;
  animation-duration: 11s;
}

.dp2 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  left: 40%;
  animation-duration: 14s;
  animation-delay: 3s;
}

.dp3 {
  width: 120px;
  height: 120px;
  top: 50%;
  right: 30%;
  animation-duration: 9s;
  animation-delay: 6s;
}

/* Grid principal */
.director-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  min-height: 620px;
}

/* ── Columna imagen ── */
.director-img-col {
  position: relative;
  overflow: hidden;
}

.director-img-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 580px;
}

.director-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: dir-img-ken 18s ease-in-out infinite alternate;
  filter: brightness(.88) contrast(1.05);
}

.director-img-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 55%, #111 100%),
    linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, .55) 100%);
}

/* ID Card del director */
.director-id-card {
  position: absolute;
  bottom: 32px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 12, 6, .88);
  border: 1px solid rgba(240, 192, 64, .35);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(12px);
  z-index: 2;
  max-width: 320px;
}

.director-id-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(240, 192, 64, .15);
  border: 1px solid rgba(240, 192, 64, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0c040;
  flex-shrink: 0;
}

.director-id-icon svg {
  width: 20px;
  height: 20px;
}

.director-id-name {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .03em;
}

.director-id-role {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  color: rgba(240, 192, 64, .75);
  margin-top: 3px;
  letter-spacing: .04em;
}

/* ── Columna contenido ── */
.director-content {
  padding: 72px 6% 72px 7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.director-content .section-label {
  color: var(--dorado-claro);
  margin-bottom: 10px;
}

.director-content .section-label::before {
  background: var(--dorado);
}

.director-content .section-title {
  color: #fff;
  margin-bottom: 28px;
}

.director-content .section-title span {
  color: var(--dorado-claro);
}

/* Comillas decorativas grandes */
.director-quote-mark {
  font-family: 'Lora', Georgia, serif;
  font-size: 7rem;
  line-height: .7;
  color: rgba(240, 192, 64, .18);
  margin-bottom: -20px;
  margin-left: -8px;
  user-select: none;
  pointer-events: none;
}

/* Bloque cita */
.director-quote {
  border-left: 3px solid #f0c040;
  padding-left: 24px;
  margin: 0 0 32px;
  animation: dir-quote-in .7s ease .2s both;
}

.director-quote p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, .82);
  text-align: justify;
  hyphens: auto;
  margin: 0 0 18px;
}

.director-quote p:last-child {
  margin-bottom: 0;
}

/* Firma */
.director-firma {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.director-firma-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #f0c040, transparent);
  flex-shrink: 0;
}

.director-firma-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.director-firma-info strong {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
}

.director-firma-info span {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .05em;
}

/* Valores institucionales */
.director-valores {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.director-valor {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(240, 192, 64, .7);
  padding: 5px 12px;
  border: 1px solid rgba(240, 192, 64, .2);
  border-radius: 20px;
  background: rgba(240, 192, 64, .05);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.director-valor:hover {
  background: rgba(240, 192, 64, .12);
  border-color: rgba(240, 192, 64, .45);
  color: #f0c040;
}

.director-valor-sep {
  color: rgba(255, 255, 255, .2);
  font-size: .8rem;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .director-inner {
    grid-template-columns: 1fr;
  }

  .director-img-frame {
    min-height: 380px;
  }

  .director-img-overlay {
    background: linear-gradient(to bottom, transparent 60%, #111 100%);
  }

  .director-content {
    padding: 48px 24px;
  }

  .director-id-card {
    left: 16px;
    bottom: 16px;
  }
}

/* ===== PROCESO DE ADMISIÓN ===== */

@keyframes adm-card-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes adm-fill-track {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes adm-dot-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 192, 64, .5);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(240, 192, 64, 0);
  }
}

@keyframes adm-icon-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* ── Admisión: keyframes compartidos (usados también por hero/redes/footer/stats/docs) ── */
@keyframes adm-orb-move-1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: .55;
  }

  20% {
    transform: translate(260px, -180px) scale(1.35);
    opacity: .8;
  }

  45% {
    transform: translate(400px, 100px) scale(1.1);
    opacity: .65;
  }

  70% {
    transform: translate(120px, 260px) scale(.85);
    opacity: .75;
  }

  100% {
    transform: translate(0, 0) scale(1);
    opacity: .55;
  }
}

@keyframes adm-orb-move-2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: .5;
  }

  25% {
    transform: translate(-220px, 150px) scale(1.25);
    opacity: .75;
  }

  55% {
    transform: translate(-360px, -100px) scale(.9);
    opacity: .6;
  }

  80% {
    transform: translate(-120px, -280px) scale(1.2);
    opacity: .8;
  }

  100% {
    transform: translate(0, 0) scale(1);
    opacity: .5;
  }
}

@keyframes adm-orb-move-3 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: .6;
  }

  30% {
    transform: translate(180px, -220px) scale(1.45);
    opacity: .85;
  }

  60% {
    transform: translate(-140px, -300px) scale(.8);
    opacity: .5;
  }

  80% {
    transform: translate(-60px, 100px) scale(1.15);
    opacity: .7;
  }

  100% {
    transform: translate(0, 0) scale(1);
    opacity: .6;
  }
}

@keyframes adm-dot-drift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 36px 36px;
  }
}

/* ══════════════════════════════════════
   ADMISIÓN — Fondo elegante moderno
   Constelación + malla fluida + cortinas
   ══════════════════════════════════════ */
@keyframes am-mesh-flow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes am-curtain-sway {
  0% {
    transform: scaleX(1) translateY(0) translateX(0);
    opacity: .60;
  }

  25% {
    transform: scaleX(1.25) translateY(-80px) translateX(30px);
    opacity: .90;
  }

  50% {
    transform: scaleX(.85) translateY(60px) translateX(-20px);
    opacity: .65;
  }

  75% {
    transform: scaleX(1.15) translateY(-30px) translateX(15px);
    opacity: .85;
  }

  100% {
    transform: scaleX(1) translateY(0) translateX(0);
    opacity: .60;
  }
}

@keyframes am-star-twinkle {

  0%,
  100% {
    transform: scale(1);
    opacity: .7;
    box-shadow: 0 0 5px 2px rgba(240, 192, 64, .5);
  }

  50% {
    transform: scale(2.5);
    opacity: 1;
    box-shadow: 0 0 14px 5px rgba(240, 192, 64, 1), 0 0 35px 10px rgba(240, 192, 64, .4);
  }
}

@keyframes am-star-drift {
  0% {
    transform: scale(1) translateY(0);
    opacity: .7;
    box-shadow: 0 0 5px 2px rgba(240, 192, 64, .5);
  }

  33% {
    transform: scale(2.2) translateY(-8px);
    opacity: 1;
    box-shadow: 0 0 12px 4px rgba(240, 192, 64, .9), 0 0 30px 8px rgba(240, 192, 64, .35);
  }

  66% {
    transform: scale(1.4) translateY(5px);
    opacity: .85;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: .7;
  }
}

@keyframes am-line-appear {
  0% {
    transform: scaleX(0);
    opacity: 0;
    transform-origin: left;
  }

  15% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    transform: scaleX(1);
    opacity: 0;
    transform-origin: left;
  }
}

@keyframes am-orb-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: .50;
  }

  33% {
    transform: translate(60px, -80px) scale(1.15);
    opacity: .75;
  }

  66% {
    transform: translate(-40px, 50px) scale(.90);
    opacity: .55;
  }
}

.admision-section {
  background: linear-gradient(135deg, #050e07 0%, #071408 30%, #0b1e0d 60%, #050e07 100%);
  background-size: 400% 400%;
  animation: am-mesh-flow 20s ease infinite;
  padding: 80px 24px 90px;
  position: relative;
  overflow: hidden;
}

/* Contenedor */
.am-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Malla de fondo */
.am-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 148, 81, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 148, 81, .06) 1px, transparent 1px),
    linear-gradient(45deg, rgba(240, 192, 64, .03) 1px, transparent 1px);
  background-size: 70px 70px, 70px 70px, 100px 100px;
}

/* Cortinas verticales de luz */
.am-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 380px;
  border-radius: 50%;
  filter: blur(50px);
  will-change: transform, opacity;
}

.am-curtain-1 {
  left: -80px;
  background: linear-gradient(180deg, rgba(74, 148, 81, .55) 0%, rgba(30, 120, 60, .35) 50%, rgba(74, 148, 81, .15) 100%);
  animation: am-curtain-sway 10s ease-in-out infinite;
}

.am-curtain-2 {
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  background: linear-gradient(180deg, rgba(240, 192, 64, .32) 0%, rgba(180, 140, 20, .20) 50%, rgba(240, 192, 64, .08) 100%);
  animation: am-curtain-sway 13s ease-in-out infinite reverse;
  animation-delay: -4s;
}

.am-curtain-3 {
  right: -80px;
  background: linear-gradient(180deg, rgba(74, 148, 81, .50) 0%, rgba(30, 120, 60, .28) 50%, rgba(74, 148, 81, .12) 100%);
  animation: am-curtain-sway 11s ease-in-out infinite;
  animation-delay: -7s;
}

/* Orb ambiental flotante */
.am-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform, opacity;
}

.am-orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 10%;
  background: radial-gradient(circle, rgba(74, 148, 81, .28) 0%, transparent 70%);
  animation: am-orb-float 18s ease-in-out infinite;
}

.am-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -80px;
  right: 8%;
  background: radial-gradient(circle, rgba(240, 192, 64, .20) 0%, transparent 70%);
  animation: am-orb-float 22s ease-in-out infinite reverse;
  animation-delay: -9s;
}

/* Estrellas / nodos constelación */
.am-stars {
  position: absolute;
  inset: 0;
}

.am-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(240, 192, 64, 1);
  animation: am-star-drift ease-in-out infinite;
  will-change: transform, opacity;
}

.am-star:nth-child(1) {
  top: 8%;
  left: 7%;
  animation-duration: 2.4s;
  animation-delay: 0s;
}

.am-star:nth-child(2) {
  top: 15%;
  left: 22%;
  animation-duration: 3.2s;
  animation-delay: .5s;
  width: 3px;
  height: 3px;
}

.am-star:nth-child(3) {
  top: 28%;
  left: 38%;
  animation-duration: 2.0s;
  animation-delay: 1.1s;
}

.am-star:nth-child(4) {
  top: 12%;
  left: 55%;
  animation-duration: 2.8s;
  animation-delay: .3s;
  width: 5px;
  height: 5px;
}

.am-star:nth-child(5) {
  top: 22%;
  left: 72%;
  animation-duration: 3.5s;
  animation-delay: 1.7s;
}

.am-star:nth-child(6) {
  top: 8%;
  left: 88%;
  animation-duration: 2.2s;
  animation-delay: .8s;
  width: 3px;
  height: 3px;
}

.am-star:nth-child(7) {
  top: 65%;
  left: 12%;
  animation-duration: 3.0s;
  animation-delay: 1.3s;
  width: 5px;
  height: 5px;
}

.am-star:nth-child(8) {
  top: 75%;
  left: 30%;
  animation-duration: 2.6s;
  animation-delay: .4s;
}

.am-star:nth-child(9) {
  top: 55%;
  left: 50%;
  animation-duration: 2.1s;
  animation-delay: 2.2s;
  width: 3px;
  height: 3px;
}

.am-star:nth-child(10) {
  top: 80%;
  left: 65%;
  animation-duration: 3.8s;
  animation-delay: 1.0s;
}

.am-star:nth-child(11) {
  top: 60%;
  left: 80%;
  animation-duration: 2.5s;
  animation-delay: 2.0s;
  width: 3px;
  height: 3px;
}

.am-star:nth-child(12) {
  top: 70%;
  left: 93%;
  animation-duration: 3.1s;
  animation-delay: .1s;
  width: 5px;
  height: 5px;
}

/* Líneas horizontales que aparecen y desaparecen */
.am-lines {
  position: absolute;
  inset: 0;
}

.am-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(74, 148, 81, .7) 20%, rgba(240, 192, 64, .9) 50%, rgba(74, 148, 81, .7) 80%, transparent 100%);
  box-shadow: 0 0 6px 1px rgba(240, 192, 64, .4);
  animation: am-line-appear ease-in-out infinite;
  will-change: transform, opacity;
}

.am-line:nth-child(1) {
  top: 22%;
  left: 5%;
  width: 42%;
  animation-duration: 5s;
  animation-delay: 0s;
}

.am-line:nth-child(2) {
  top: 45%;
  left: 18%;
  width: 35%;
  animation-duration: 6s;
  animation-delay: 1.5s;
}

.am-line:nth-child(3) {
  top: 68%;
  left: 48%;
  width: 40%;
  animation-duration: 5.5s;
  animation-delay: 3s;
}

.am-line:nth-child(4) {
  top: 85%;
  left: 8%;
  width: 28%;
  animation-duration: 7s;
  animation-delay: 2s;
}

/* ══════════════════════════════════════════════════════
   FONDO CON MOVIMIENTO — SISTEMA COMPARTIDO
   Reutiliza keyframes ya definidos: adm-orb-move-1/2/3,
   adm-particle-rise, adm-scan-move, adm-dot-drift
   ══════════════════════════════════════════════════════ */

/* ── Mixin base (dots, orbs, particles, scan) ── */
.hero-bg-dots,
.rd-bg-dots,
.ft-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(240, 192, 64, .18) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  animation: adm-dot-drift 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-orb,
.rd-orb,
.ft-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 0;
}

/* Hero orbs */
.hero-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(74, 148, 81, .5) 0%, rgba(74, 148, 81, .18) 40%, transparent 70%);
  top: -250px;
  left: -180px;
  animation: adm-orb-move-1 20s ease-in-out infinite;
}

.hero-orb-2 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(240, 192, 64, .4) 0%, rgba(240, 192, 64, .12) 40%, transparent 70%);
  bottom: -180px;
  right: -120px;
  animation: adm-orb-move-2 17s ease-in-out infinite;
  animation-delay: -8s;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 200, 100, .55) 0%, rgba(30, 140, 80, .18) 40%, transparent 70%);
  top: 30%;
  left: 45%;
  animation: adm-orb-move-3 24s ease-in-out infinite;
  animation-delay: -13s;
}

/* Redes orbs */
.rd-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 148, 81, .5) 0%, rgba(74, 148, 81, .18) 40%, transparent 70%);
  top: -200px;
  left: -160px;
  animation: adm-orb-move-1 18s ease-in-out infinite;
}

.rd-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(240, 192, 64, .42) 0%, rgba(240, 192, 64, .14) 40%, transparent 70%);
  bottom: -140px;
  right: -100px;
  animation: adm-orb-move-2 15s ease-in-out infinite;
  animation-delay: -6s;
}

.rd-orb-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(30, 200, 100, .58) 0%, rgba(30, 140, 80, .2) 40%, transparent 70%);
  top: 25%;
  left: 38%;
  animation: adm-orb-move-3 21s ease-in-out infinite;
  animation-delay: -10s;
}

/* Footer orbs */
.ft-orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(74, 148, 81, .48) 0%, rgba(74, 148, 81, .16) 40%, transparent 70%);
  top: -200px;
  left: -160px;
  animation: adm-orb-move-1 19s ease-in-out infinite;
}

.ft-orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(240, 192, 64, .4) 0%, rgba(240, 192, 64, .12) 40%, transparent 70%);
  bottom: -160px;
  right: -110px;
  animation: adm-orb-move-2 16s ease-in-out infinite;
  animation-delay: -7s;
}

.ft-orb-3 {
  width: 370px;
  height: 370px;
  background: radial-gradient(circle, rgba(30, 200, 100, .55) 0%, rgba(30, 140, 80, .18) 40%, transparent 70%);
  top: 35%;
  left: 42%;
  animation: adm-orb-move-3 22s ease-in-out infinite;
  animation-delay: -11s;
}

/* Particles containers */
.hero-particles,
.rd-particles,
.ft-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Particle base */
.hero-p,
.rd-p,
.ft-p {
  position: absolute;
  border-radius: 50%;
  background: #f0c040;
  box-shadow: 0 0 6px 2px rgba(240, 192, 64, .7), 0 0 14px 4px rgba(240, 192, 64, .3);
  animation: adm-particle-rise linear infinite;
  will-change: transform, opacity;
}

/* Hero particles */
.hero-p:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 5%;
  bottom: 10%;
  animation-duration: 5s;
  animation-delay: 0s;
  --px: 38px;
}

.hero-p:nth-child(2) {
  width: 4px;
  height: 4px;
  left: 15%;
  bottom: 22%;
  animation-duration: 7s;
  animation-delay: 1.1s;
  --px: -32px;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .6);
}

.hero-p:nth-child(3) {
  width: 7px;
  height: 7px;
  left: 30%;
  bottom: 6%;
  animation-duration: 6s;
  animation-delay: 2.7s;
  --px: 22px;
}

.hero-p:nth-child(4) {
  width: 4px;
  height: 4px;
  left: 47%;
  bottom: 15%;
  animation-duration: 8s;
  animation-delay: 0.5s;
  --px: -52px;
  background: #aef7b5;
  box-shadow: 0 0 8px 2px rgba(174, 247, 181, .6);
}

.hero-p:nth-child(5) {
  width: 8px;
  height: 8px;
  left: 60%;
  bottom: 8%;
  animation-duration: 5.5s;
  animation-delay: 3.3s;
  --px: 30px;
}

.hero-p:nth-child(6) {
  width: 5px;
  height: 5px;
  left: 72%;
  bottom: 20%;
  animation-duration: 7.5s;
  animation-delay: 1.8s;
  --px: -24px;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .6);
}

.hero-p:nth-child(7) {
  width: 6px;
  height: 6px;
  left: 83%;
  bottom: 12%;
  animation-duration: 6.5s;
  animation-delay: 4.4s;
  --px: 16px;
}

.hero-p:nth-child(8) {
  width: 9px;
  height: 9px;
  left: 93%;
  bottom: 18%;
  animation-duration: 9s;
  animation-delay: 2.0s;
  --px: -44px;
  background: #aef7b5;
  box-shadow: 0 0 10px 3px rgba(174, 247, 181, .5);
}

/* Redes particles */
.rd-p:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 6%;
  bottom: 8%;
  animation-duration: 5.2s;
  animation-delay: 0.2s;
  --px: 36px;
}

.rd-p:nth-child(2) {
  width: 4px;
  height: 4px;
  left: 18%;
  bottom: 20%;
  animation-duration: 7.2s;
  animation-delay: 1.4s;
  --px: -30px;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .6);
}

.rd-p:nth-child(3) {
  width: 7px;
  height: 7px;
  left: 33%;
  bottom: 5%;
  animation-duration: 6.2s;
  animation-delay: 2.9s;
  --px: 20px;
}

.rd-p:nth-child(4) {
  width: 4px;
  height: 4px;
  left: 49%;
  bottom: 14%;
  animation-duration: 8.2s;
  animation-delay: 0.8s;
  --px: -50px;
  background: #aef7b5;
  box-shadow: 0 0 8px 2px rgba(174, 247, 181, .6);
}

.rd-p:nth-child(5) {
  width: 8px;
  height: 8px;
  left: 63%;
  bottom: 7%;
  animation-duration: 5.7s;
  animation-delay: 3.6s;
  --px: 33px;
}

.rd-p:nth-child(6) {
  width: 5px;
  height: 5px;
  left: 75%;
  bottom: 23%;
  animation-duration: 7.7s;
  animation-delay: 2.0s;
  --px: -23px;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .6);
}

.rd-p:nth-child(7) {
  width: 6px;
  height: 6px;
  left: 85%;
  bottom: 11%;
  animation-duration: 6.7s;
  animation-delay: 4.7s;
  --px: 15px;
}

.rd-p:nth-child(8) {
  width: 9px;
  height: 9px;
  left: 92%;
  bottom: 19%;
  animation-duration: 9.2s;
  animation-delay: 2.3s;
  --px: -43px;
  background: #aef7b5;
  box-shadow: 0 0 10px 3px rgba(174, 247, 181, .5);
}

/* Footer particles */
.ft-p:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 7%;
  bottom: 9%;
  animation-duration: 5.4s;
  animation-delay: 0.4s;
  --px: 34px;
}

.ft-p:nth-child(2) {
  width: 4px;
  height: 4px;
  left: 19%;
  bottom: 21%;
  animation-duration: 7.4s;
  animation-delay: 1.6s;
  --px: -31px;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .6);
}

.ft-p:nth-child(3) {
  width: 7px;
  height: 7px;
  left: 34%;
  bottom: 6%;
  animation-duration: 6.4s;
  animation-delay: 3.1s;
  --px: 19px;
}

.ft-p:nth-child(4) {
  width: 4px;
  height: 4px;
  left: 51%;
  bottom: 16%;
  animation-duration: 8.4s;
  animation-delay: 0.9s;
  --px: -49px;
  background: #aef7b5;
  box-shadow: 0 0 8px 2px rgba(174, 247, 181, .6);
}

.ft-p:nth-child(5) {
  width: 8px;
  height: 8px;
  left: 64%;
  bottom: 8%;
  animation-duration: 5.9s;
  animation-delay: 3.8s;
  --px: 31px;
}

.ft-p:nth-child(6) {
  width: 5px;
  height: 5px;
  left: 76%;
  bottom: 24%;
  animation-duration: 7.9s;
  animation-delay: 2.2s;
  --px: -21px;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .6);
}

.ft-p:nth-child(7) {
  width: 6px;
  height: 6px;
  left: 86%;
  bottom: 13%;
  animation-duration: 6.9s;
  animation-delay: 4.9s;
  --px: 13px;
}

.ft-p:nth-child(8) {
  width: 9px;
  height: 9px;
  left: 94%;
  bottom: 20%;
  animation-duration: 9.4s;
  animation-delay: 2.5s;
  --px: -41px;
  background: #aef7b5;
  box-shadow: 0 0 10px 3px rgba(174, 247, 181, .5);
}

/* Scan lines */
.hero-scan,
.rd-scan,
.ft-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(240, 192, 64, .5) 15%,
      rgba(240, 192, 64, .95) 35%,
      rgba(120, 230, 140, 1) 50%,
      rgba(240, 192, 64, .95) 65%,
      rgba(240, 192, 64, .5) 85%,
      transparent 100%);
  box-shadow:
    0 0 8px 2px rgba(240, 192, 64, .7),
    0 0 20px 6px rgba(74, 148, 81, .4),
    0 0 40px 12px rgba(240, 192, 64, .2);
  animation: adm-scan-move 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-scan-2,
.rd-scan-2,
.ft-scan-2 {
  animation-delay: -5s;
}

/* Asegurar que el contenido quede sobre el fondo */
.hero>div {
  position: relative;
  z-index: 3;
}

.redes-inner {
  z-index: 3 !important;
}

.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 3;
}


.admision-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 5% 60%, rgba(240, 192, 64, .06) 0%, transparent 100%),
    radial-gradient(ellipse 40% 50% at 95% 10%, rgba(74, 148, 81, .09) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.admision-inner {
  z-index: 3;
}

/* ── Contenedor centrado ── */
.admision-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
}

/* ── Cabecera ── */
.admision-header {
  margin-bottom: 48px;
  text-align: center;
}

.admision-section .section-label {
  color: rgba(255, 255, 255, .55);
}

.admision-section .section-title {
  color: #fff;
  margin-bottom: 12px;
}

.admision-section .section-title span {
  color: var(--dorado-claro);
}

.admision-intro {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: rgba(255, 255, 255, .45);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Stepper: mismo ancho que el grid ── */
.admision-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  margin-bottom: 0;
}

/* La línea de fondo cubre toda la fila */
.stepper-track {
  position: absolute;
  left: calc(12.5%);
  right: calc(12.5%);
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 2px;
  overflow: hidden;
}

.stepper-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c9a227, #f0c040, #f5d76e);
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(.4, 0, .2, 1);
}

.admision-stepper.is-visible .stepper-fill {
  width: 100%;
}

/* Cada punto en el centro de su columna */
.stepper-dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0e2b12;
  border: 2px solid rgba(240, 192, 64, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .04em;
  transition: background .4s ease, border-color .4s ease, color .4s ease, box-shadow .4s ease;
  margin-bottom: 20px;
}

.admision-stepper.is-visible .stepper-dot {
  background: linear-gradient(135deg, #c9a227, #f0c040);
  border-color: #f0c040;
  color: #0e2b12;
  animation: adm-dot-pulse 2.4s ease infinite;
}

.admision-stepper.is-visible .stepper-dot:nth-child(2) {
  animation-delay: .3s;
}

.admision-stepper.is-visible .stepper-dot:nth-child(3) {
  animation-delay: .6s;
}

.admision-stepper.is-visible .stepper-dot:nth-child(4) {
  animation-delay: .9s;
}

.admision-stepper.is-visible .stepper-dot:nth-child(5) {
  animation-delay: 1.2s;
}

/* ── Grid ── */
.admision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

/* ── Tarjeta ── */
.admision-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  padding: 30px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform .38s cubic-bezier(.34, 1.56, .64, 1), border-color .3s ease, background .3s ease, box-shadow .3s ease;
  animation: adm-card-in .55s cubic-bezier(.34, 1.56, .64, 1) both;
  backdrop-filter: blur(4px);
}

.admision-card:nth-child(1) {
  animation-delay: .05s;
}

.admision-card:nth-child(2) {
  animation-delay: .15s;
}

.admision-card:nth-child(3) {
  animation-delay: .25s;
}

.admision-card:nth-child(4) {
  animation-delay: .35s;
}

.admision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a227, #f0c040, #f5d76e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  border-radius: 18px 18px 0 0;
}

.admision-card::after {
  display: none;
}

.admision-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(240, 192, 64, .3);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .4), 0 0 0 1px rgba(240, 192, 64, .15);
}

.admision-card:hover::before {
  transform: scaleX(1);
}

/* Número de fondo (watermark) */
.card-watermark {
  position: absolute;
  bottom: -10px;
  right: -4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, .03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color .3s ease;
}

.admision-card:hover .card-watermark {
  color: rgba(240, 192, 64, .06);
}

/* ── Ícono ── */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(240, 192, 64, .1);
  border: 1px solid rgba(240, 192, 64, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0c040;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: background .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease;
  animation: adm-icon-float 4s ease-in-out infinite;
}

.admision-card:nth-child(2) .card-icon {
  animation-delay: .5s;
}

.admision-card:nth-child(3) .card-icon {
  animation-delay: 1s;
}

.admision-card:nth-child(4) .card-icon {
  animation-delay: 1.5s;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.admision-card:hover .card-icon {
  background: rgba(240, 192, 64, .2);
  border-color: rgba(240, 192, 64, .4);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(240, 192, 64, .2);
}

/* ── Step tag ── */
.card-step-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f0c040;
  margin-bottom: 8px;
  opacity: .75;
}

/* ── Título ── */
.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: .04em;
  line-height: 1.3;
}

/* ── Texto ── */
.card-text {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.75;
  margin-bottom: 24px;
  flex-grow: 1;
  text-align: justify;
}

/* ── CTA ── */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f0c040;
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid rgba(240, 192, 64, .35);
  border-radius: 8px;
  background: rgba(240, 192, 64, .06);
  align-self: flex-start;
  transition: background .25s ease, border-color .25s ease, gap .25s ease, color .25s ease;
}

.card-link:hover {
  background: rgba(240, 192, 64, .16);
  border-color: rgba(240, 192, 64, .6);
  color: #fff;
  gap: 11px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .admision-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admision-stepper {
    display: none;
  }
}

@media (max-width: 520px) {
  .admision-grid {
    grid-template-columns: 1fr;
  }

  .admision-section {
    padding: 52px 18px 60px;
  }
}

/* ESTADÍSTICAS — REDISEÑO ANIMADO PREMIUM */
.stats-section {
  background: linear-gradient(135deg, #051208 0%, #0c2410 35%, var(--verde) 65%, #071a0b 100%);
  background-size: 300% 300%;
  animation: statsBgShift 15s ease infinite;
  padding: 110px 40px;
  position: relative;
  overflow: hidden;
}

@keyframes statsBgShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Patrón de puntos animado (::before ya no se usa para dots, lo movemos a .st-bg-dots) */
.stats-section::before {
  display: none;
}

/* ── Stats: fondo con movimiento (mismo sistema que Admisión) ── */
.st-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(240, 192, 64, .18) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  animation: adm-dot-drift 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Orbes */
.st-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 0;
}

.st-orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(74, 148, 81, .55) 0%, rgba(74, 148, 81, .2) 40%, transparent 70%);
  top: -200px;
  left: -150px;
  animation: adm-orb-move-1 18s ease-in-out infinite;
}

.st-orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(240, 192, 64, .45) 0%, rgba(240, 192, 64, .15) 40%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation: adm-orb-move-2 15s ease-in-out infinite;
  animation-delay: -7s;
}

.st-orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(30, 200, 100, .6) 0%, rgba(30, 140, 80, .2) 40%, transparent 70%);
  top: 20%;
  left: 38%;
  animation: adm-orb-move-3 22s ease-in-out infinite;
  animation-delay: -12s;
}

/* Partículas */
.st-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.st-p {
  position: absolute;
  border-radius: 50%;
  background: #f0c040;
  box-shadow: 0 0 6px 2px rgba(240, 192, 64, .7), 0 0 14px 4px rgba(240, 192, 64, .3);
  animation: adm-particle-rise linear infinite;
  will-change: transform, opacity;
}

.st-p:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 6%;
  bottom: 8%;
  animation-duration: 5s;
  animation-delay: 0s;
  --px: 35px;
}

.st-p:nth-child(2) {
  width: 4px;
  height: 4px;
  left: 17%;
  bottom: 18%;
  animation-duration: 7s;
  animation-delay: 1.3s;
  --px: -28px;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .6);
}

.st-p:nth-child(3) {
  width: 7px;
  height: 7px;
  left: 33%;
  bottom: 5%;
  animation-duration: 6s;
  animation-delay: 2.6s;
  --px: 18px;
}

.st-p:nth-child(4) {
  width: 4px;
  height: 4px;
  left: 50%;
  bottom: 14%;
  animation-duration: 8s;
  animation-delay: 0.7s;
  --px: -48px;
  background: #aef7b5;
  box-shadow: 0 0 8px 2px rgba(174, 247, 181, .6);
}

.st-p:nth-child(5) {
  width: 8px;
  height: 8px;
  left: 62%;
  bottom: 7%;
  animation-duration: 5.5s;
  animation-delay: 3.4s;
  --px: 32px;
}

.st-p:nth-child(6) {
  width: 5px;
  height: 5px;
  left: 74%;
  bottom: 22%;
  animation-duration: 7.5s;
  animation-delay: 1.9s;
  --px: -22px;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .6);
}

.st-p:nth-child(7) {
  width: 6px;
  height: 6px;
  left: 84%;
  bottom: 10%;
  animation-duration: 6.5s;
  animation-delay: 4.6s;
  --px: 14px;
}

.st-p:nth-child(8) {
  width: 9px;
  height: 9px;
  left: 92%;
  bottom: 18%;
  animation-duration: 9s;
  animation-delay: 2.1s;
  --px: -42px;
  background: #aef7b5;
  box-shadow: 0 0 10px 3px rgba(174, 247, 181, .5);
}

/* Scan */
.st-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(240, 192, 64, .5) 15%,
      rgba(240, 192, 64, .95) 35%,
      rgba(120, 230, 140, 1) 50%,
      rgba(240, 192, 64, .95) 65%,
      rgba(240, 192, 64, .5) 85%,
      transparent 100%);
  box-shadow:
    0 0 8px 2px rgba(240, 192, 64, .7),
    0 0 20px 6px rgba(74, 148, 81, .4),
    0 0 40px 12px rgba(240, 192, 64, .2);
  animation: adm-scan-move 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.st-scan-2 {
  animation-delay: -5s;
}

@keyframes dotsScroll {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 34px 34px;
  }
}

/* Línea dorada fluida en la parte superior */
.stats-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--dorado) 25%,
      var(--dorado-claro) 50%,
      var(--dorado) 75%,
      transparent 100%);
  background-size: 200% 100%;
  animation: topLineFlow 3.5s linear infinite;
}

@keyframes topLineFlow {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

/* Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* Tarjeta — glassmorphism */
.stat-box {
  background: linear-gradient(145deg,
      #1c3a1c 0%,
      #0a130a 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: translateY(28px);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.55s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
}

/* Línea superior que aparece en hover */
.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dorado-claro), var(--dorado), var(--dorado-claro), transparent);
  border-radius: 0 0 4px 4px;
  transition: left 0.4s ease, width 0.4s ease;
  z-index: 2;
}

.stat-box:hover::before {
  left: 10%;
  width: 80%;
}

/* Shimmer brillante */
.stat-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.13), rgba(255, 255, 255, 0.04), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

/* Entrada al hacer scroll */
.stat-box.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Hover dramático */
.stat-box:hover {
  transform: translateY(-14px) scale(1.05);
  background: linear-gradient(145deg,
      #245224 0%,
      #0f1f0f 100%);
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 175, 55, 0.35),
    0 0 50px rgba(212, 175, 55, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.stats-grid .stat-box:nth-child(1) {
  transition-delay: 0.1s;
}

.stats-grid .stat-box:nth-child(2) {
  transition-delay: 0.2s;
}

.stats-grid .stat-box:nth-child(3) {
  transition-delay: 0.3s;
}

.stats-grid .stat-box:nth-child(4) {
  transition-delay: 0.4s;
}

.stat-box:hover::after {
  left: 160%;
}

/* ÍCONO — con ring pulsante */
.stat-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.07));
  border: 2px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dorado-claro);
  animation: iconRingPulse 3.2s ease-in-out infinite;
  transition: background 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease;
}

@keyframes iconRingPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4), 0 0 0 0 rgba(212, 175, 55, 0.2);
  }

  60% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0), 0 0 0 20px rgba(212, 175, 55, 0);
  }
}

.stat-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.stat-box:hover .stat-icon {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.38), rgba(212, 175, 55, 0.16));
  border-color: rgba(212, 175, 55, 0.8);
  transform: scale(1.18) rotate(8deg);
}

/* NÚMEROS — gradiente dorado brillante + glow */
.stat-box .big {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #c9a227 0%, var(--dorado-claro) 55%, #ffe97a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: numGlow 3.5s ease-in-out infinite;
}

@keyframes numGlow {

  0%,
  100% {
    filter: drop-shadow(0 2px 6px rgba(201, 162, 39, 0.4));
  }

  50% {
    filter: drop-shadow(0 2px 18px rgba(240, 200, 74, 0.8));
  }
}

.stat-box .unit {
  font-size: 2.4rem;
  background: linear-gradient(135deg, #c9a227 0%, var(--dorado-claro) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* LABEL — verde oscuro institucional */
.stat-box p {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(220, 210, 170, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   GALERÍA — diseño moderno fondo blanco
══════════════════════════════════════════ */
@keyframes galItemIn {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes shimmerSlide {
  0%   { left: -80%; }
  100% { left: 130%; }
}
@keyframes tabPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.galeria-section {
  background: #fff;
  padding-bottom: 80px;
  position: relative;
}

/* Línea decorativa superior */
.galeria-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--verde), var(--dorado), var(--verde), transparent);
}

/* Puntos decorativos de fondo */
.galeria-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,74,30,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.galeria-section > * {
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.galeria-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 36px 0 24px;
}

/* ── Tabs pill ── */
.galeria-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #f0f2f0;
  padding: 6px;
  border-radius: 50px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.07);
}

.tab-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 22px;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  border-radius: 50px;
  transition: background .28s ease, color .28s ease, box-shadow .28s ease, transform .2s ease;
}

.tab-btn:hover {
  background: rgba(26,74,30,.1);
  color: var(--verde);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--verde);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,74,30,.35);
  animation: tabPop .3s ease;
}

/* ── Flechas ── */
.galeria-arrows {
  display: flex;
  gap: 10px;
}

.g-ctrl {
  background: #fff;
  color: var(--verde);
  border: 2px solid var(--verde);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 14px rgba(26,74,30,.14);
}

.g-ctrl:hover {
  background: var(--verde);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(26,74,30,.3);
}

/* ── Grid / carrusel ── */
.galeria-grid {
  display: flex;
  gap: 18px;
  padding: 10px 0 40px;
  margin: 0 -20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.galeria-grid::-webkit-scrollbar {
  display: none;
}

.galeria-hidden {
  display: none !important;
}

/* ── Ítem ── */
.galeria-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-radius: 20px;
  flex: 0 0 82%;
  max-width: 860px;
  height: 490px;
  scroll-snap-align: center;
  box-shadow:
    0 6px 24px rgba(0,0,0,.1),
    0 2px 8px  rgba(0,0,0,.06);
  transition:
    box-shadow .4s ease,
    transform   .4s cubic-bezier(.34,1.56,.64,1);
  animation: galItemIn .55s ease both;
}

.galeria-item:nth-child(1) { animation-delay: .05s; }
.galeria-item:nth-child(2) { animation-delay: .12s; }
.galeria-item:nth-child(3) { animation-delay: .19s; }
.galeria-item:nth-child(4) { animation-delay: .26s; }
.galeria-item:nth-child(5) { animation-delay: .33s; }
.galeria-item:nth-child(6) { animation-delay: .40s; }
.galeria-item:nth-child(7) { animation-delay: .47s; }
.galeria-item:nth-child(8) { animation-delay: .54s; }
.galeria-item:nth-child(9) { animation-delay: .61s; }

.galeria-item:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 20px 50px rgba(0,0,0,.18),
    0 6px  18px rgba(26,74,30,.12);
}

/* Borde verde en hover */
.galeria-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--verde), var(--dorado)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 3;
  pointer-events: none;
}

.galeria-item:hover::before {
  opacity: 1;
}

/* Shimmer al hover */
.galeria-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 4;
}

.galeria-item:hover::after {
  animation: shimmerSlide .65s ease forwards;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
  display: block;
}

.galeria-item:hover img {
  transform: scale(1.09);
}

/* ── Overlay con slide-up ── */
.galeria-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 38, 10, .82) 0%,
    rgba(26, 74, 30, .45) 50%,
    transparent 100%
  );
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 28px 24px;
  gap: 6px;
  opacity: 0;
  transition: opacity .35s ease;
}

.galeria-item:hover .overlay {
  opacity: 1;
}

.overlay-icon {
  font-size: 2rem;
  transform: translateY(14px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  display: block;
}

.galeria-item:hover .overlay-icon {
  transform: translateY(0);
}

.galeria-item .overlay span:not(.overlay-icon) {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translateY(12px);
  transition: transform .38s .04s cubic-bezier(.34,1.56,.64,1);
}

.galeria-item:hover .overlay span:not(.overlay-icon) {
  transform: translateY(0);
}

/* RECORRIDO VIRTUAL */
.recorrido-section {
  background: var(--negro);
  padding: 90px 40px;
}

.recorrido-section .section-label {
  color: var(--dorado-claro);
}

.recorrido-section .section-label::before {
  background: var(--dorado);
}

.recorrido-section .section-title {
  color: #fff;
  margin-bottom: 12px;
}

.recorrido-subtitle {
  color: rgba(255, 255, 255, .5);
  font-size: 0.9rem;
  margin-bottom: 48px;
  font-family: 'Lora', serif;
  font-style: italic;
}

.recorrido-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3px;
  min-height: 500px;
  border-radius: 6px;
  overflow: hidden;
}

.recorrido-menu {
  background: #111;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 560px;
}

.recorrido-menu::-webkit-scrollbar {
  width: 4px;
}

.recorrido-menu::-webkit-scrollbar-thumb {
  background: var(--dorado);
  border-radius: 2px;
}

.rec-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
  text-align: left;
  transition: all .2s;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.rec-btn:hover {
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .9);
}

.rec-btn.active {
  background: rgba(201, 162, 39, .1);
  border-left-color: var(--dorado);
  color: #fff;
}

.rec-btn .rec-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.rec-btn .rec-info {
  line-height: 1.3;
}

.rec-btn .rec-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: block;
}

.rec-btn .rec-desc {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, .35);
  margin-top: 2px;
  display: block;
}

.rec-btn.active .rec-desc {
  color: rgba(255, 255, 255, .5);
}

.recorrido-player {
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
}

.video-wrapper {
  flex: 1;
  position: relative;
  background: #000;
  min-height: 420px;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.video-info-bar {
  background: #111;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.video-current-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.video-current-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, .45);
  margin-top: 2px;
}

.video-nav-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.vnav {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vnav:hover {
  background: var(--dorado);
  border-color: var(--dorado);
  color: var(--negro);
}

/* DOCUMENTOS INSTITUCIONALES */
.documentos-section {
  background: #ffffff;
  padding: 80px 40px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.doc-card {
  background: #fdfdfd;
  border: 1px solid #eaeaea;
  padding: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.doc-card:hover {
  background: #fafaf0;
  border-color: var(--dorado);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.doc-icon {
  background: rgba(45, 107, 51, 0.1);
  color: var(--verde-medio);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.doc-card:hover .doc-icon {
  background: var(--dorado);
  color: #fff;
}

.doc-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.doc-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--negro);
}

.doc-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #64748b;
}

.doc-card--excel {
  border-left: 4px solid #217346;
}

.doc-card--excel .doc-icon {
  background: rgba(33, 115, 70, 0.12);
}

.doc-card--excel:hover {
  border-left-color: #217346;
}

/* ══════════════════════════════════════════════
   DOCENTES — Fondo hexágonos + pulsos radiales
   ══════════════════════════════════════════════ */

@keyframes doc-hex-grid-drift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 104px;
  }
}

@keyframes doc-pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(.2);
    opacity: .8;
  }

  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

@keyframes doc-hex-float {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: .55;
  }

  33% {
    transform: translateY(-50px) rotate(60deg) scale(1.1);
    opacity: .75;
  }

  66% {
    transform: translateY(30px) rotate(120deg) scale(.9);
    opacity: .60;
  }

  100% {
    transform: translateY(0) rotate(180deg) scale(1);
    opacity: .55;
  }
}

@keyframes doc-bg-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* DOCENTES */
.docentes-section {
  position: relative;
  overflow: visible;
  /* permite que los hover-panels sobresalgan */
  background: #fdfdfd;
  padding: 60px 40px;
}

/* Contenedor fondo — él sí recorta sus elementos animados */
.doc-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Cuadrícula hexagonal de fondo */
.doc-hex-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(30, 100, 50, .12) 2px, transparent 2px),
    radial-gradient(circle, rgba(180, 140, 20, .09) 2px, transparent 2px);
  background-size: 60px 104px, 60px 104px;
  background-position: 0 0, 30px 52px;
  animation: doc-hex-grid-drift 7s linear infinite;
}

/* Ondas de pulso radial */
.doc-pulse {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  animation: doc-pulse-ring 5s ease-out infinite;
}

.doc-pulse-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
  border: 2px solid rgba(30, 110, 55, .35);
}

.doc-pulse-2 {
  top: 55%;
  right: 12%;
  animation-delay: 1.8s;
  border: 2px solid rgba(180, 140, 20, .30);
}

.doc-pulse-3 {
  top: 75%;
  left: 45%;
  animation-delay: 3.5s;
  border: 2px solid rgba(30, 110, 55, .28);
}

/* Hexágonos flotantes */
.doc-floats {
  position: absolute;
  inset: 0;
}

.doc-hex {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: doc-hex-float ease-in-out infinite;
  will-change: transform, opacity;
}

.doc-hex:nth-child(1) {
  top: 8%;
  left: 5%;
  width: 80px;
  height: 80px;
  background: rgba(30, 110, 55, .12);
  animation-duration: 9s;
  animation-delay: 0s;
}

.doc-hex:nth-child(2) {
  top: 25%;
  right: 7%;
  width: 50px;
  height: 50px;
  background: rgba(180, 140, 20, .10);
  animation-duration: 12s;
  animation-delay: 2s;
}

.doc-hex:nth-child(3) {
  top: 55%;
  left: 3%;
  width: 70px;
  height: 70px;
  background: rgba(30, 110, 55, .10);
  animation-duration: 10s;
  animation-delay: 4s;
}

.doc-hex:nth-child(4) {
  top: 70%;
  right: 4%;
  width: 90px;
  height: 90px;
  background: rgba(180, 140, 20, .08);
  animation-duration: 14s;
  animation-delay: 1s;
}

.doc-hex:nth-child(5) {
  top: 40%;
  left: 48%;
  width: 55px;
  height: 55px;
  background: rgba(30, 110, 55, .09);
  animation-duration: 11s;
  animation-delay: 3s;
}

.doc-hex:nth-child(6) {
  top: 85%;
  left: 25%;
  width: 65px;
  height: 65px;
  background: rgba(180, 140, 20, .09);
  animation-duration: 8s;
  animation-delay: 5s;
}

/* Contenido sobre el fondo */
.docentes-section .section-label,
.docentes-section .section-title,
.docentes-grid {
  position: relative;
  z-index: 2;
}

.docentes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
  overflow: visible;
  position: relative;
  z-index: 2;
}

/* ANIMACI�"N DE ENTRADA */
@keyframes fadeUpCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ESTILO PRINCIPAL DE TARJETA DOCENTE */
.docente-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  /* overflow: hidden eliminado — permite que el panel flote sobre el grid */
  animation: fadeUpCard 0.6s ease forwards;
  z-index: 1;
}

/* Efecto moderno en la parte superior de la tarjeta (línea verde) */
.docente-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--verde-oscuro), var(--verde-claro));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.docente-card:hover {
  /* Sin transform: la tarjeta no se mueve, permanece en su celda del grid */
  box-shadow: 0 6px 20px rgba(45, 107, 51, 0.16);
  border-color: rgba(45, 107, 51, 0.38);
  z-index: 20;
}

.docente-card:hover::before {
  transform: scaleX(1);
}

.docente-header {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.docente-avatar {
  width: 42px;
  height: 42px;
  margin: 0;
  background: rgba(45, 107, 51, 0.06);
  color: var(--verde-oscuro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
}

.docente-card:hover .docente-avatar {
  background: var(--verde-oscuro);
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 5px 15px rgba(45, 107, 51, 0.4);
}

.docente-main-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* GRADO: badge de rango policial, siempre visible */
.docente-grado {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--verde-medio);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  line-height: 1.2;
  opacity: 0.85;
}

/* APELLIDOS: siempre visibles en mayúsculas */
.docente-apellidos {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.73rem;
  color: var(--negro);
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  transition: color 0.3s ease;
  word-break: break-word;
}

.docente-card:hover .docente-apellidos {
  color: var(--verde-oscuro);
}

/* NOMBRE DE PILA: siempre visible, primera letra en mayúscula */
.docente-nombre-pila {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: #777;
  margin: 1px 0 0 0;
  font-style: italic;
}

/* ============================================================
   .docente-hover-panel — overlay CSS puro, se activa con :hover
   position:absolute funciona correctamente dentro de .docente-card
   porque la animación fadeUpCard deja transform en el elemento,
   convirtiéndolo en containing block para sus hijos absolutos.
   ============================================================ */
.docente-hover-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  background: #ffffff;
  border: 1px solid rgba(45, 107, 51, 0.35);
  border-radius: 10px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.20);
  max-height: 72vh;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.99);
  transform-origin: top center;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.docente-card:hover .docente-hover-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

/* Últimas 4 tarjetas del grid (última fila): panel se abre hacia arriba */
.docente-card:nth-last-child(-n+4) .docente-hover-panel {
  top: auto;
  bottom: 0;
  transform-origin: bottom center;
  transform: translateY(6px) scale(0.99);
}

.docente-card:nth-last-child(-n+4):hover .docente-hover-panel {
  transform: translateY(0) scale(1);
}

/* Color de apellidos dentro del encabezado verde del panel */
.docente-hover-panel .docente-overlay-info .docente-apellidos {
  color: #ffffff;
  font-size: 0.78rem;
  transition: none;
}

/* ENCABEZADO STICKY dentro del overlay — muestra ícono, grado, nombre y especialidad */
.docente-overlay-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-medio) 100%);
  padding: 12px 14px;
  border-radius: 9px 9px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.docente-overlay-avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.docente-overlay-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

/* Overrides de color para los elementos dentro del encabezado verde */
.docente-overlay-info .docente-grado {
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

/* Especificidad elevada para ganar a .docente-card:hover .docente-apellidos */
.docente-card:hover .docente-overlay-info .docente-apellidos {
  color: #ffffff;
  font-size: 0.78rem;
  transition: none;
}

.docente-overlay-info .docente-nombre-pila {
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
}

.docente-overlay-info .docente-curso {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  margin: 3px 0 0 0;
}

/* CUERPO SCROLLEABLE — currículum completo del docente */
.docente-hover-inner {
  padding: 12px 14px 14px;
  margin-top: 0;
  border-top: none;
}

/* ESPECIALIDAD: badge verde */
.docente-curso {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  color: var(--verde-medio);
  font-weight: 700;
  margin: 4px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(45, 107, 51, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

/* CONTENIDO EXPANDIDO */
.details-content {
  font-size: 0.78rem;
  color: #555;
}

.info-group {
  margin-bottom: 12px;
}

.info-group h5 {
  color: var(--verde-medio);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 3px;
}

.info-group p {
  margin: 2px 0;
}

.info-group ul {
  margin: 4px 0 0 14px;
  padding: 0;
}

.info-group li {
  margin-bottom: 2px;
}

.table-responsive {
  overflow-x: auto;
}

.docente-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 5px;
  font-size: 0.75rem;
}

.docente-table th,
.docente-table td {
  border: 1px solid #ddd;
  padding: 5px 6px;
  text-align: left;
}

.docente-table th {
  background-color: var(--verde-oscuro);
  color: white;
}

/* ══════════════════════════════════════════════
   FONDO GEOMÉTRICO ANIMADO — Noticias & Anuncios
   Sistema diferente: aurora + líneas + shapes
   ══════════════════════════════════════════════ */

/* Keyframes exclusivos */
@keyframes nx-lines-scroll {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 80px 80px, -80px 80px;
  }
}

@keyframes nx-shape-morph-1 {
  0% {
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    transform: rotate(0deg) scale(1);
    opacity: .45;
  }

  33% {
    clip-path: polygon(50% 8%, 95% 30%, 78% 95%, 22% 95%, 5% 30%);
    transform: rotate(60deg) scale(1.25);
    opacity: .65;
  }

  66% {
    clip-path: polygon(45% 0%, 100% 42%, 85% 100%, 15% 100%, 0% 42%);
    transform: rotate(120deg) scale(.85);
    opacity: .50;
  }

  100% {
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    transform: rotate(180deg) scale(1);
    opacity: .45;
  }
}

@keyframes nx-shape-morph-2 {
  0% {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transform: rotate(0deg) scale(1);
    opacity: .40;
  }

  50% {
    clip-path: polygon(20% 5%, 80% 5%, 100% 50%, 80% 95%, 20% 95%, 0% 50%);
    transform: rotate(-90deg) scale(1.3);
    opacity: .65;
  }

  100% {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transform: rotate(-180deg) scale(1);
    opacity: .40;
  }
}

@keyframes nx-shape-morph-3 {
  0% {
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    transform: rotate(0deg) scale(1);
    opacity: .38;
  }

  50% {
    clip-path: polygon(50% 5%, 98% 95%, 2% 95%);
    transform: rotate(120deg) scale(1.35);
    opacity: .60;
  }

  100% {
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    transform: rotate(240deg) scale(1);
    opacity: .38;
  }
}

@keyframes nx-pulse-glow {

  0%,
  100% {
    opacity: .06;
  }

  50% {
    opacity: .14;
  }
}

/* Contenedor del fondo */
.nx-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Líneas diagonales cruzadas animadas */
.nx-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(74, 148, 81, .18) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(240, 192, 64, .12) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: nx-lines-scroll 5s linear infinite;
}

/* Formas geométricas que se morphean */
.nx-shape {
  position: absolute;
  will-change: transform, clip-path, opacity;
  filter: blur(0px);
}

.nx-shape-1 {
  width: 420px;
  height: 420px;
  top: -100px;
  right: 5%;
  background: linear-gradient(135deg, rgba(74, 148, 81, .55), rgba(30, 220, 110, .35));
  animation: nx-shape-morph-1 12s ease-in-out infinite;
}

.nx-shape-2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: 4%;
  background: linear-gradient(135deg, rgba(240, 192, 64, .50), rgba(74, 148, 81, .30));
  animation: nx-shape-morph-2 16s ease-in-out infinite;
  animation-delay: -6s;
}

.nx-shape-3 {
  width: 280px;
  height: 280px;
  top: 30%;
  left: 40%;
  background: linear-gradient(135deg, rgba(30, 220, 110, .45), rgba(240, 192, 64, .25));
  animation: nx-shape-morph-3 10s ease-in-out infinite;
  animation-delay: -3s;
}

/* Contenido sobre el fondo */
.noticias-section .section-label,
.noticias-section .section-title,
.noticias-grid,
.anuncios-section .section-label,
.anuncios-section .section-title,
.anuncios-lista {
  position: relative;
  z-index: 2;
}

/* NOTICIAS - Diseño oscuro animado moderno */
.noticias-section {
  background: linear-gradient(145deg, #040c06 0%, #081408 40%, #0b1e0d 70%, #050e07 100%);
  background-size: 300% 300%;
  animation: statsBgShift 20s ease infinite;
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}

/* Malla decorativa de fondo */
.noticias-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 39, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Línea decorativa superior */
.noticias-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--dorado) 30%, var(--verde-claro) 70%, transparent 100%);
  animation: lineFlow 4s ease-in-out infinite;
}

.noticias-section .section-label {
  color: var(--dorado);
}

.noticias-section .section-title {
  color: #fff;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.noticia-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  will-change: transform;
}

.noticia-card:hover {
  transform: translateY(-10px) scale(1.015);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(201, 162, 39, 0.1);
}

/* Línea dorada superior que se expande en hover */
.noticia-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--dorado), var(--dorado-claro), var(--verde-claro));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 5;
}

.noticia-card:hover::before {
  transform: scaleX(1);
}

.noticia-img {
  height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: 18px 18px 0 0;
}

/* Overlay degradado sobre la imagen */
.noticia-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(4, 12, 6, 0.75) 100%);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.noticia-card:hover .noticia-img::after {
  opacity: 0.6;
}

.noticia-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.noticia-card:hover .noticia-img img {
  transform: scale(1.1);
}

.noticia-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dorado-claro);
  padding: 22px 22px 8px;
  display: block;
  transition: color 0.3s ease;
}

.noticia-card:hover .noticia-cat {
  color: var(--dorado-claro);
}

.noticia-titulo {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  padding: 0 22px 22px;
  line-height: 1.5;
  text-decoration: none;
  display: block;
  flex-grow: 1;
  transition: color 0.25s ease;
}

.noticia-titulo:hover {
  color: var(--dorado-claro);
}

.noticia-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 18px 18px;
  transition: color 0.3s ease;
}

.noticia-card:hover .noticia-meta {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== BOLSA DE TRABAJO ===== */

/* Keyframes */
@keyframes bolsa-float {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.15;
  }

  50% {
    transform: translateY(-30px) scale(1.15);
    opacity: 0.3;
  }
}

@keyframes bolsa-shimmer {
  0% {
    left: -80%;
  }

  100% {
    left: 130%;
  }
}

@keyframes bolsa-line-grow {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes bolsa-dot-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 192, 64, .55);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(240, 192, 64, 0);
  }
}

@keyframes bolsa-card-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bolsa-ruta-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bolsa-title-glow {

  0%,
  100% {
    text-shadow: 0 0 8px rgba(240, 192, 64, .25);
  }

  50% {
    text-shadow: 0 0 22px rgba(240, 192, 64, .6), 0 0 40px rgba(240, 192, 64, .2);
  }
}

/* ══════════════════════════════════════════════
   BOLSA DE TRABAJO — Elegante & serio
   Sistema: carbón + luz diagonal + polvo dorado
   ══════════════════════════════════════════════ */

@keyframes be-breathe {

  0%,
  100% {
    opacity: .55;
    transform: scale(1);
  }

  50% {
    opacity: .85;
    transform: scale(1.06);
  }
}

@keyframes be-ray-drift {
  0% {
    transform: translateX(-100%) skewX(-20deg);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    transform: translateX(160vw) skewX(-20deg);
    opacity: 0;
  }
}

@keyframes be-dust-rise {
  0% {
    transform: translateY(0) translateX(0px);
    opacity: 0;
  }

  10% {
    opacity: .7;
  }

  90% {
    opacity: .5;
  }

  100% {
    transform: translateY(-340px) translateX(var(--dx, 12px));
    opacity: 0;
  }
}

@keyframes be-rule-pulse {

  0%,
  100% {
    opacity: .08;
  }

  50% {
    opacity: .20;
  }
}

@keyframes be-bg-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Sección principal */
.bolsa-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d0d0f 0%, #111318 35%, #141a1c 65%, #0d0d0f 100%);
  background-size: 300% 300%;
  animation: be-bg-shift 22s ease infinite;
  padding: 90px 20px 80px;
}

/* Contenedor fondo */
.bw-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Resplandor lateral dorado — luz ambiental suave */
.bw-wave-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .18) 0%, rgba(201, 162, 39, .06) 45%, transparent 70%);
  filter: blur(50px);
  animation: be-breathe 10s ease-in-out infinite;
}

.bw-wave-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -120px;
  left: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 145, 30, .14) 0%, rgba(180, 145, 30, .05) 45%, transparent 70%);
  filter: blur(55px);
  animation: be-breathe 14s ease-in-out infinite;
  animation-delay: -5s;
}

.bw-wave-3 {
  position: absolute;
  width: 350px;
  height: 350px;
  top: 40%;
  left: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .10) 0%, transparent 70%);
  filter: blur(45px);
  animation: be-breathe 18s ease-in-out infinite;
  animation-delay: -9s;
}

/* Rayos de luz diagonal — lentos y finos */
.bw-rings {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bw-ring {
  position: absolute;
  top: 0;
  height: 100%;
  width: 1px;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(201, 162, 39, .35) 20%,
      rgba(201, 162, 39, .55) 50%,
      rgba(201, 162, 39, .35) 80%,
      transparent 100%);
  box-shadow: 0 0 8px 3px rgba(201, 162, 39, .15);
  animation: be-ray-drift linear infinite;
  will-change: transform;
}

.bw-ring:nth-child(1) {
  left: 10%;
  width: 1px;
  animation-duration: 18s;
  animation-delay: 0s;
}

.bw-ring:nth-child(2) {
  left: 25%;
  width: 2px;
  animation-duration: 24s;
  animation-delay: -8s;
  opacity: .7;
  background: linear-gradient(180deg, transparent 0%, rgba(201, 162, 39, .25) 30%, rgba(201, 162, 39, .40) 50%, rgba(201, 162, 39, .25) 70%, transparent 100%);
}

.bw-ring:nth-child(3) {
  left: 60%;
  width: 1px;
  animation-duration: 20s;
  animation-delay: -14s;
}

.bw-ring:nth-child(4) {
  left: 80%;
  width: 2px;
  animation-duration: 28s;
  animation-delay: -5s;
  opacity: .6;
}

/* Polvo dorado flotante */
.bw-lines {
  position: absolute;
  inset: 0;
}

.bw-line {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 162, 39, .75);
  box-shadow: 0 0 4px 1px rgba(201, 162, 39, .4);
  animation: be-dust-rise linear infinite;
  will-change: transform, opacity;
}

.bw-line:nth-child(1) {
  width: 2px;
  height: 2px;
  left: 8%;
  bottom: 5%;
  animation-duration: 12s;
  animation-delay: 0s;
  --dx: 20px;
}

.bw-line:nth-child(2) {
  width: 1px;
  height: 1px;
  left: 22%;
  bottom: 18%;
  animation-duration: 16s;
  animation-delay: 3s;
  --dx: -14px;
  opacity: .6;
}

.bw-line:nth-child(3) {
  width: 2px;
  height: 2px;
  left: 40%;
  bottom: 8%;
  animation-duration: 10s;
  animation-delay: 6s;
  --dx: 18px;
}

.bw-line:nth-child(4) {
  width: 1px;
  height: 1px;
  left: 58%;
  bottom: 12%;
  animation-duration: 14s;
  animation-delay: 1.5s;
  --dx: -22px;
  opacity: .55;
}

.bw-line:nth-child(5) {
  width: 2px;
  height: 2px;
  left: 75%;
  bottom: 6%;
  animation-duration: 11s;
  animation-delay: 4s;
  --dx: 16px;
}

/* Líneas horizontales finas pulsantes */
.bw-wave-1::after,
.bw-wave-2::after {
  display: none;
}

.bw-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 39, .07) 1px, transparent 1px);
  background-size: 100% 80px;
  animation: be-rule-pulse 6s ease-in-out infinite;
}

/* Contenido sobre el fondo */
.bolsa-inner {
  position: relative;
  z-index: 3;
}

/* Partículas de fondo */
.bolsa-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bp {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #f0c040 0%, transparent 70%);
  animation: bolsa-float linear infinite;
}

.bp1 {
  width: 180px;
  height: 180px;
  top: -60px;
  left: -50px;
  animation-duration: 9s;
  animation-delay: 0s;
}

.bp2 {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 5%;
  animation-duration: 12s;
  animation-delay: 2s;
}

.bp3 {
  width: 80px;
  height: 80px;
  bottom: 10%;
  left: 15%;
  animation-duration: 8s;
  animation-delay: 1s;
}

.bp4 {
  width: 220px;
  height: 220px;
  bottom: -80px;
  right: -60px;
  animation-duration: 14s;
  animation-delay: 3s;
}

.bp5 {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 45%;
  animation-duration: 7s;
  animation-delay: 4s;
}

.bp6 {
  width: 100px;
  height: 100px;
  top: 60%;
  left: 60%;
  animation-duration: 11s;
  animation-delay: 1.5s;
}

/* Contenedor interior */
.bolsa-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.bolsa-inner .section-title {
  color: #fff;
  margin-bottom: 10px;
}

.bolsa-inner .section-title span {
  color: var(--dorado-claro, #f0c040);
  animation: bolsa-title-glow 3s ease-in-out infinite;
}

.bolsa-lead {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dorado-claro, #f0c040);
  margin: 0 0 40px;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ---- Tarjetas de beneficios ---- */
.bolsa-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.bolsa-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(240, 192, 64, .2);
  border-radius: 14px;
  padding: 32px 22px 28px;
  cursor: default;
  animation: bolsa-card-in .6s ease both;
  animation-delay: var(--delay, 0s);
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}

.bolsa-cards .bolsa-card:nth-child(1) {
  animation-delay: 0s;
}

.bolsa-cards .bolsa-card:nth-child(2) {
  animation-delay: 0.15s;
}

.bolsa-cards .bolsa-card:nth-child(3) {
  animation-delay: 0.3s;
}

.bolsa-cards .bolsa-card:nth-child(4) {
  animation-delay: 0.45s;
}

.bolsa-cards .bolsa-card:nth-child(5) {
  animation-delay: 0.6s;
}


.bolsa-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(240, 192, 64, .55);
  background: rgba(240, 192, 64, .07);
}

/* variante dorada */
.bolsa-card--gold {
  background: rgba(240, 192, 64, .08);
  border-color: rgba(240, 192, 64, .45);
}

.bolsa-card--gold:hover {
  background: rgba(240, 192, 64, .14);
  border-color: #f0c040;
}

/* efecto shimmer al hover */
.bolsa-card-shine {
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%);
  pointer-events: none;
}

.bolsa-card:hover .bolsa-card-shine {
  animation: bolsa-shimmer .65s ease forwards;
}

.bolsa-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 192, 64, .12);
  border-radius: 50%;
  color: #f0c040;
  transition: background .35s ease, transform .35s ease;
}

.bolsa-card:hover .bolsa-card-icon {
  background: rgba(240, 192, 64, .25);
  transform: rotate(8deg) scale(1.1);
}

.bolsa-card-icon svg {
  width: 26px;
  height: 26px;
}

.bolsa-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bolsa-card p {
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

/* ---- Ruta laboral ---- */
.bolsa-ruta {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  animation: bolsa-ruta-in .7s ease .4s both;
}

.bolsa-ruta-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 160px;
  position: relative;
}

.bolsa-ruta-step--last {
  flex: 0 0 auto;
}

.bolsa-ruta-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 2px solid rgba(240, 192, 64, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: #f0c040;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  transition: background .3s, border-color .3s, transform .3s;
}

.bolsa-ruta-dot--gold {
  background: rgba(240, 192, 64, .18);
  border-color: #f0c040;
}

.bolsa-ruta-dot--pulse {
  background: #f0c040;
  border-color: #f0c040;
  color: #0f1923;
  animation: bolsa-dot-pulse 2s ease infinite;
}

.bolsa-ruta-line {
  position: absolute;
  top: 22px;
  left: calc(50% + 22px);
  height: 2px;
  width: calc(100% - 44px);
  background: linear-gradient(90deg, rgba(240, 192, 64, .4), rgba(240, 192, 64, .15));
  animation: bolsa-line-grow 1s ease .8s both;
}

.bolsa-ruta-line--last {
  background: linear-gradient(90deg, #f0c040, rgba(240, 192, 64, .4));
}

.bolsa-ruta-step p {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  color: #94a3b8;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.bolsa-ruta-step p strong {
  color: #f0c040;
}

/* ---- Contenido textual ---- */
.bolsa-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bolsa-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  color: #cbd5e1;
  margin: 0;
  text-align: justify;
}

.bolsa-content strong {
  color: #fff;
}

.bolsa-cierre {
  font-style: italic;
  color: #94a3b8 !important;
  border-left: 3px solid #f0c040;
  background: rgba(240, 192, 64, .05);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-top: 6px;
}

/* ── Responsive fondo animado bolsa ── */
@media (max-width: 768px) {

  .bw-wave-1,
  .bw-wave-3 {
    height: 180px;
  }

  .bw-wave-2 {
    height: 160px;
  }

  .bw-line:nth-child(1) {
    width: 80%;
  }

  .bw-line:nth-child(2) {
    width: 75%;
  }

  .bw-line:nth-child(3) {
    width: 90%;
  }
}

@media (max-width: 480px) {

  .bw-wave-1,
  .bw-wave-2,
  .bw-wave-3 {
    height: 130px;
  }

  .bw-ring {
    width: 80px;
    height: 80px;
  }

  .bw-line {
    width: 100%;
  }
}

@media (max-width: 360px) {

  .bw-ring:nth-child(3),
  .bw-ring:nth-child(4) {
    display: none;
  }
}

/* Responsive contenido */
@media (max-width: 700px) {
  .bolsa-cards {
    grid-template-columns: 1fr;
  }

  .bolsa-ruta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .bolsa-ruta-line {
    display: none;
  }
}

/* CONTACTO - DISE�'O PREMIUM OSCURO */
.contacto-section {
  background: #0d0d0d;
  /* Fondo casi negro profundo */
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  position: relative;
}

.contacto-info {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto-info .section-label {
  color: var(--dorado);
  /* Dorado oscuro/ámbar */
  letter-spacing: 0.15em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contacto-info .section-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--dorado);
  display: inline-block;
}

.contacto-info .section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 50px;
  line-height: 1.1;
  text-transform: uppercase;
}

.contacto-info .section-title span {
  color: var(--dorado-ambar);
  /* Dorado más brillante para "UBICACI�"N" */
}

.contacto-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.contacto-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contacto-icon {
  width: 45px;
  height: 45px;
  background: rgba(234, 179, 8, 0.08);
  /* Fondo dorado muy sutil */
  border-radius: 8px;
  /* Bordes ligeramente redondeados */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--dorado-ambar);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.contacto-item:hover .contacto-icon {
  background: rgba(234, 179, 8, 0.15);
  transform: scale(1.05);
}

.contacto-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  /* Letra secundaria gris oscuro */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  font-weight: 600;
}

.contacto-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #f8fafc;
  /* Blanco perla */
  font-weight: 500;
  line-height: 1.4;
}

.contacto-value a {
  color: var(--dorado-ambar);
  text-decoration: none;
  transition: color 0.3s;
}

.contacto-value a:hover {
  color: var(--dorado-claro);
  text-decoration: underline;
}

/* Botón WhatsApp inline en contacto */
.wsp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  margin-top: 4px;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
}

.wsp-btn:hover {
  background: #1db954;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none !important;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  /* Verde original WhatsApp */
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 8px;
  /* Bordes más rectangulares modernos */
  border: none;
  text-decoration: none;
  margin-top: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  /* Resplandor verde */
  align-self: flex-start;
  /* Evita que crezca ocupando todo el ancho */
}

.whatsapp-btn:hover {
  background: #22c55e;
  /* WhatsApp brand color */
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

/* MAPA */
.contacto-mapa {
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.contacto-mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
  /* Se quita el filtro para mostrar el mapa en sus colores originales y vibrantes como en la foto */
}

/* ===== REDES SOCIALES ===== */

@keyframes rc-card-in {
  from {
    opacity: 0;
    transform: translateY(32px) scale(.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rc-orb-drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.15);
  }
}

@keyframes rc-icon-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rc-arrow-pop {
  from {
    opacity: 0;
    transform: translate(-4px, 4px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* ── Sección ── */
.redes-section {
  position: relative;
  overflow: hidden;
  background: #0f2914;
  padding: 64px 24px;
  text-align: center;
  border-top: 1px solid rgba(240, 192, 64, .18);
}

/* Grid puntillado de fondo */
.redes-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(240, 192, 64, .1) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: .5;
}

/* Orbes de color ambiente */
.redes-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.redes-glow-orb--1 {
  width: 360px;
  height: 360px;
  background: rgba(240, 192, 64, .08);
  top: -120px;
  left: -80px;
  animation: rc-orb-drift 14s ease-in-out infinite;
}

.redes-glow-orb--2 {
  width: 280px;
  height: 280px;
  background: rgba(74, 148, 81, .15);
  bottom: -100px;
  right: -60px;
  animation: rc-orb-drift 18s ease-in-out infinite reverse;
}

/* ── Inner ── */
.redes-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

/* ── Cabecera con líneas ── */
.redes-header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 10px;
}

.redes-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 192, 64, .5), transparent);
}

/* ── Título ── */
.redes-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .25em;
  color: rgba(255, 255, 255, .55);
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.redes-title span {
  color: #f0c040;
}

/* ── Subtítulo ── */
.redes-sub {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: rgba(255, 255, 255, .38);
  margin: 0 0 40px;
  letter-spacing: .02em;
}

/* ── Grid de tarjetas ── */
.redes-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Tarjeta individual ── */
.red-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 110px;
  padding: 24px 12px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform .35s cubic-bezier(.34, 1.56, .64, 1),
    border-color .3s ease,
    background .3s ease;
  animation: rc-card-in .5s cubic-bezier(.34, 1.56, .64, 1) both;
}

.red-card:nth-child(1) {
  animation-delay: .05s;
}

.red-card:nth-child(2) {
  animation-delay: .13s;
}

.red-card:nth-child(3) {
  animation-delay: .21s;
}

.red-card:nth-child(4) {
  animation-delay: .29s;
}

.red-card:nth-child(5) {
  animation-delay: .37s;
}

.red-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, .08);
}

/* Glow interno al hover */
.red-card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.red-card:hover .red-card-glow {
  opacity: 1;
}

/* ── Círculo del ícono ── */
.red-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease;
}

.red-card:hover .red-card-icon {
  transform: scale(1.12) rotate(-6deg);
}

.red-card-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* ── Nombre de la red ── */
.red-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  transition: color .25s ease;
}

.red-card:hover .red-card-name {
  color: #fff;
}

/* ── Flecha de salida ── */
.red-card-arrow {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: .75rem;
  color: rgba(255, 255, 255, .25);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .25s ease, transform .25s ease, color .25s ease;
}

.red-card:hover .red-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Colores por red ── */
.red-fb .red-card-icon {
  background: #1877F2;
}

.red-fb {
  --card-color: #1877F2;
}

.red-fb .red-card-glow {
  background: radial-gradient(circle at 50% 0%, rgba(24, 119, 242, .25), transparent 70%);
}

.red-fb:hover {
  border-color: rgba(24, 119, 242, .45);
}

.red-fb:hover .red-card-icon {
  box-shadow: 0 8px 24px rgba(24, 119, 242, .5);
}

.red-fb:hover .red-card-arrow {
  color: #1877F2;
}

.red-yt .red-card-icon {
  background: #FF0000;
}

.red-yt {
  --card-color: #FF0000;
}

.red-yt .red-card-glow {
  background: radial-gradient(circle at 50% 0%, rgba(255, 0, 0, .22), transparent 70%);
}

.red-yt:hover {
  border-color: rgba(255, 0, 0, .4);
}

.red-yt:hover .red-card-icon {
  box-shadow: 0 8px 24px rgba(255, 0, 0, .5);
}

.red-yt:hover .red-card-arrow {
  color: #FF0000;
}

.red-ig .red-card-icon {
  background: linear-gradient(135deg, #833ab4, #E1306C, #F77737);
}

.red-ig {
  --card-color: #E1306C;
}

.red-ig .red-card-glow {
  background: radial-gradient(circle at 50% 0%, rgba(225, 48, 108, .22), transparent 70%);
}

.red-ig:hover {
  border-color: rgba(225, 48, 108, .4);
}

.red-ig:hover .red-card-icon {
  box-shadow: 0 8px 24px rgba(225, 48, 108, .5);
}

.red-ig:hover .red-card-arrow {
  color: #F77737;
}

.red-li .red-card-icon {
  background: #0A66C2;
}

.red-li {
  --card-color: #0A66C2;
}

.red-li .red-card-glow {
  background: radial-gradient(circle at 50% 0%, rgba(10, 102, 194, .25), transparent 70%);
}

.red-li:hover {
  border-color: rgba(10, 102, 194, .45);
}

.red-li:hover .red-card-icon {
  box-shadow: 0 8px 24px rgba(10, 102, 194, .5);
}

.red-li:hover .red-card-arrow {
  color: #0A66C2;
}

.red-tt .red-card-icon {
  background: #010101;
  border: 1px solid rgba(255, 255, 255, .15);
}

.red-tt {
  --card-color: #69C9D0;
}

.red-tt .red-card-glow {
  background: radial-gradient(circle at 50% 0%, rgba(105, 201, 208, .15), transparent 70%);
}

.red-tt:hover {
  border-color: rgba(105, 201, 208, .35);
}

.red-tt:hover .red-card-icon {
  box-shadow: 0 8px 24px rgba(105, 201, 208, .35);
}

.red-tt:hover .red-card-arrow {
  color: #69C9D0;
}

/* ── Responsive ── */
@media (max-width: 500px) {
  .redes-cards {
    gap: 12px;
  }

  .red-card {
    width: 90px;
    padding: 20px 8px 16px;
  }

  .red-card-icon {
    width: 50px;
    height: 50px;
  }

  .red-card-icon svg {
    width: 22px;
    height: 22px;
  }
}

/* FOOTER */
/* ===== FOOTER ===== */
footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #020c04 0%, #051208 60%, #081a0b 100%);
  font-family: 'Inter', sans-serif;
  border-top: 1px solid rgba(240, 192, 64, .25);
}

/* Orbe decorativo */
.footer-glow-orb {
  position: absolute;
  width: 500px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 192, 64, .05) 0%, transparent 70%);
  top: -80px;
  left: -100px;
  pointer-events: none;
  filter: blur(40px);
}

/* ── Contenedor principal ── */
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 48px;
}

/* ── Columna marca ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(240, 192, 64, .1);
  border: 1px solid rgba(240, 192, 64, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0c040;
}

.footer-logo-badge svg {
  width: 22px;
  height: 22px;
}

.footer-brand strong {
  color: #f0c040;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.15;
  text-transform: uppercase;
}

.footer-brand p {
  color: #475569;
  font-size: .75rem;
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}

.footer-badge-ruc {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240, 192, 64, .55);
  background: rgba(240, 192, 64, .06);
  border: 1px solid rgba(240, 192, 64, .12);
  border-radius: 6px;
  padding: 4px 10px;
  align-self: flex-start;
}

/* ── Columnas genéricas ── */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* ── Links de navegación ── */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .04em;
  padding: 6px 0;
  transition: color .2s ease, gap .2s ease;
}

.footer-link-arrow {
  font-size: 1rem;
  color: rgba(240, 192, 64, .3);
  transition: color .2s ease, transform .2s ease;
  line-height: 1;
}

.footer-links a:hover {
  color: #f0c040;
  gap: 12px;
}

.footer-links a:hover .footer-link-arrow {
  color: #f0c040;
  transform: translateX(3px);
}

/* ── Contacto ── */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #64748b;
  text-decoration: none;
  font-size: .78rem;
  line-height: 1.5;
  transition: color .2s ease;
}

.footer-contact-item:hover {
  color: #f0c040;
}

.footer-contact-item:hover .footer-contact-icon {
  background: rgba(240, 192, 64, .18);
  border-color: rgba(240, 192, 64, .4);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0c040;
  transition: background .2s ease, border-color .2s ease;
}

.footer-contact-icon svg {
  width: 14px;
  height: 14px;
}

/* ── Barra inferior ── */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .05);
  background: rgba(0, 0, 0, .25);
}

.footer-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #334155;
}

.footer-bottom-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(240, 192, 64, .35);
  flex-shrink: 0;
}

/* Responsive footer */
@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 20px 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-bottom-dot {
    display: none;
  }
}

/* BOTÓN VOLVER ARRIBA */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--dorado);
  color: var(--verde);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--dorado-claro);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}

/* Footer responsive */
@media (max-width: 768px) {
  footer {
    padding: 36px 20px 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }

  .footer-dev {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 28px 16px 20px;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Breakpoints organizados de mayor a menor
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet grande: ≤ 1100px ── */
@media (max-width: 1100px) {
  .recorrido-layout {
    grid-template-columns: 1fr;
  }

  .recorrido-menu {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .rec-btn {
    min-width: 150px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .rec-btn.active {
    border-bottom-color: var(--dorado);
    border-left-color: transparent;
  }
}

/* ── Tablet: ≤ 900px — hamburger aparece aquí ── */
@media (max-width: 900px) {

  /* ─ Topbar: ocultar en tablet/móvil ─ */
  .topbar {
    display: none;
  }

  /* ─ Nav: activar menú hamburguesa ─ */
  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active {
    background: rgba(240, 192, 64, .15);
    border-color: rgba(240, 192, 64, .4);
  }

  .mobile-toggle.active span {
    background: #f0c040;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 22px;
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 22px;
  }

  /* Liberar nav-bar-inner del overflow para que el menú salga */
  .nav-bar-inner {
    overflow: visible;
  }

  .nav-menu {
    position: absolute;
    top: 90px;
    /* justo debajo de la barra */
    left: 0;
    right: 0;
    background: rgba(4, 14, 6, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 12px 16px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    border-bottom: 1px solid rgba(240, 192, 64, .12);
    /* Animación con max-height en lugar de clip-path */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-menu.open {
    max-height: 90vh;
    padding: 12px 16px 20px;
    overflow-y: auto;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: left;
    gap: 2px;
  }

  .nav-links li {
    animation: none;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-size: .85rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, .7);
    border-bottom: none;
  }

  .nav-links a::before {
    content: '›';
    font-size: 1.1rem;
    color: rgba(240, 192, 64, .4);
    transition: color .2s ease, transform .2s ease;
    flex-shrink: 0;
  }

  .nav-links a:hover::before {
    color: #f0c040;
    transform: translateX(3px);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.nav-anuncios {
    color: #f0c040;
  }

  .nav-links a.nav-anuncios::before {
    color: #f0c040;
  }

  .nav-links a.nav-cta {
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    max-width: 100%;
    border-radius: 12px;
    padding: 13px 20px;
  }

  .nav-links a.nav-cta::before {
    display: none;
  }

  /* ─ Padding general ─ */
  nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  section {
    padding: 60px 24px;
  }

  .admision-section,
  .redes-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* ─ Director ─ */
  .director-inner {
    grid-template-columns: 1fr;
  }

  .director-img-col {
    min-height: 300px;
  }

  .director-img-col::after {
    background: linear-gradient(to top, var(--gris-oscuro), transparent);
  }

  .director-content {
    padding: 44px 8%;
    align-items: center;
  }

  .director-content>* {
    max-width: 100%;
  }

  /* ─ Admisión: 2 columnas ─ */
  .admision-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .admision-grid::before {
    display: none;
  }

  /* ─ Estadísticas: 2 columnas ─ */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ─ Galería ─ */
  .galeria-item {
    flex: 0 0 88%;
    height: 340px;
  }

  /* ─ Noticias: 1 columna ─ */
  .noticias-grid {
    grid-template-columns: 1fr;
  }

  /* ─ Contacto: 1 columna ─ */
  .contacto-section {
    grid-template-columns: 1fr;
  }

  .contacto-info {
    padding: 40px 20px;
  }

  .contacto-info .section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .contacto-items-wrapper {
    gap: 20px;
  }

  .contacto-item {
    gap: 14px;
    align-items: flex-start;
  }

  .contacto-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    font-size: 1rem;
  }

  .contacto-mapa {
    min-height: 320px;
  }

  /* ─ Documentos: 1 columna ─ */
  .docs-grid {
    grid-template-columns: 1fr;
  }

  /* ─ Docentes: 2 columnas ─ */
  .docentes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .docente-table th,
  .docente-table td {
    font-size: 0.75rem;
    padding: 8px 5px;
  }
}

/* ── Mobile grande: ≤ 640px ── */
@media (max-width: 640px) {

  body {
    padding-top: 96px;
  }

  /* ─ Nav compacto ─ */
  nav {
    padding: 12px 16px;
  }

  nav.scrolled {
    padding: 8px 16px;
  }

  .nav-logo {
    width: 48px;
    height: 48px;
  }

  nav.scrolled .nav-logo {
    width: 42px;
    height: 42px;
  }

  .nav-text .main-title {
    font-size: 1.05rem;
  }

  nav.scrolled .nav-text .main-title {
    font-size: 0.95rem;
  }

  .nav-text .sub-title {
    display: none;
  }

  /* ─ Hero ─ */
  .hero {
    min-height: 88vh;
    padding: 86px 18px 48px;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 11vw, 4.8rem);
  }

  .hero-sub {
    font-size: 1rem;
    margin: 18px 0 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-primary,
  .btn-outline {
    text-align: center;
    width: 100%;
    max-width: 340px;
    padding: 15px 28px;
  }

  .hero-stats {
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 0;
    padding: 14px 16px;
    border-radius: 12px;
  }

  .hero-stat {
    padding: 0 16px;
    min-width: 90px;
  }

  .hero-stat .num {
    font-size: 2.2rem;
  }

  /* ─ Secciones ─ */
  section {
    padding: 52px 18px;
  }

  .admision-section,
  .redes-section {
    padding: 52px 18px;
  }

  footer {
    padding: 28px 18px;
  }

  /* ─ Noticias: 2 columnas → 1 columna ─ */
  .noticias-grid {
    grid-template-columns: 1fr;
  }

  /* ─ Documentos: 2 columnas ─ */
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ─ Galería ─ */
  .galeria-item {
    flex: 0 0 85%;
  }

  /* ─ Whatsapp ─ */
  .whatsapp-btn {
    align-self: stretch;
    justify-content: center;
  }
}

/* ── Mobile: ≤ 480px ── */
@media (max-width: 480px) {

  body {
    padding-top: 90px;
  }

  /* ─ Nav ─ */
  .nav-text .main-title {
    font-size: 0.95rem;
  }

  nav.scrolled .nav-text .main-title {
    font-size: 0.88rem;
  }

  /* ─ Padding global ─ */
  nav,
  section,
  .admision-section,
  .redes-section,
  .contacto-info,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .admision-section,
  .redes-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  /* ─ Hero ─ */
  .hero {
    min-height: 82vh;
    padding: 72px 16px 44px;
  }

  .hero-stats {
    margin-top: 28px;
    gap: 18px;
  }

  .hero-stat .num {
    font-size: 2rem;
  }

  .hero-stat .lbl {
    font-size: 0.6rem;
  }

  /* ─ Admisión: 1 columna ─ */
  .admision-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .admision-grid::before {
    display: none;
  }

  .admision-card {
    padding: 32px 22px 24px;
  }

  .card-num {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  /* ─ Estadísticas: 1 columna ─ */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-box .big {
    font-size: 2.5rem;
  }

  .stat-box .unit {
    font-size: 1.5rem;
  }

  /* ─ Grids 1 columna ─ */
  .noticias-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  /* ─ Docentes: 1 columna ─ */
  .docentes-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .docente-header {
    flex-direction: column;
    text-align: center;
  }

  .docente-card {
    text-align: center;
  }

  .docente-avatar {
    margin: 0 auto 6px;
  }

  .docente-main-info {
    align-items: center;
  }

  /* ─ Galería ─ */
  .galeria-item {
    flex: 0 0 100%;
  }

  .galeria-grid {
    margin: 0 -10px;
    gap: 10px;
  }

  .galeria-tabs {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  /* ─ Contacto ─ */
  .contacto-info {
    padding: 32px 16px;
  }

  .contacto-info .section-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  .contacto-items-wrapper {
    gap: 16px;
  }

  .contacto-item {
    gap: 12px;
  }

  .contacto-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .contacto-mapa {
    min-height: 260px;
    width: 100%;
    overflow: hidden;
  }

  .contacto-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
  }

  .wsp-btn {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    padding: 12px 14px;
    font-size: 0.8rem;
    white-space: normal;
    word-break: break-word;
  }

  .whatsapp-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  /* ─ Docentes tabla: diseño bloque ─ */
  .docente-table,
  .docente-table tbody,
  .docente-table tr,
  .docente-table th,
  .docente-table td {
    display: block;
    width: 100%;
  }

  .docente-table tr {
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 10px;
  }

  .docente-table th {
    display: none;
  }

  .docente-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border-bottom: 1px dotted #ccc;
  }

  .docente-table td:last-child {
    border-bottom: 0;
  }

  .docente-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-right: 15px;
    font-weight: bold;
    text-align: left;
    color: var(--verde-oscuro);
  }
}

/* ── Mobile pequeño: ≤ 360px ── */
@media (max-width: 360px) {

  body {
    padding-top: 86px;
  }

  .nav-logo {
    width: 38px;
    height: 38px;
  }

  .nav-text .main-title {
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.2rem);
  }

  .hero-stats {
    gap: 14px;
  }

  .hero-stat .num {
    font-size: 1.8rem;
  }

  .admision-grid {
    gap: 24px;
  }

  .tab-btn {
    padding: 7px 10px;
    font-size: 0.7rem;
  }

  section {
    padding: 36px 14px;
  }

  .admision-section,
  .redes-section {
    padding: 36px 14px;
  }
}

/* ACCESIBILIDAD: Sin animaciones para usuarios sensibles */
/* FOCUS INDICATORS �?" accesibilidad de teclado */
/* Solo visible al navegar con Tab/teclado; no aparece al hacer clic con mouse */
:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
}

/* Elementos sobre fondos oscuros: dorado más claro para mayor contraste */
.topbar-links a:focus-visible,
.red-link:focus-visible,
.mobile-toggle:focus-visible {
  outline-color: var(--dorado-claro);
}

/* ══════════════════════════════════════════════
   RESPONSIVO — Fondos animados (todas secciones)
   ══════════════════════════════════════════════ */

/* Tablet ≤ 768px */
@media (max-width: 768px) {

  /* Orbes — reducir tamaño para que no desborden */
  .hero-orb-1,
  .adm-orb-1,
  .st-orb-1,
  .rd-orb-1,
  .ft-orb-1,
  .dc-orb-1 {
    width: 420px;
    height: 420px;
  }

  .hero-orb-2,
  .adm-orb-2,
  .st-orb-2,
  .rd-orb-2,
  .ft-orb-2,
  .dc-orb-2 {
    width: 360px;
    height: 360px;
  }

  .hero-orb-3,
  .adm-orb-3,
  .st-orb-3,
  .rd-orb-3,
  .ft-orb-3,
  .dc-orb-3 {
    width: 260px;
    height: 260px;
  }

  /* Shapes — reducir tamaño */
  .nx-shape-1 {
    width: 280px;
    height: 280px;
  }

  .nx-shape-2 {
    width: 240px;
    height: 240px;
  }

  .nx-shape-3 {
    width: 180px;
    height: 180px;
  }
}

/* Móvil ≤ 480px */
@media (max-width: 480px) {

  /* Orbes muy pequeños en móvil */
  .hero-orb-1,
  .adm-orb-1,
  .st-orb-1,
  .rd-orb-1,
  .ft-orb-1,
  .dc-orb-1 {
    width: 280px;
    height: 280px;
    top: -100px;
    left: -80px;
  }

  .hero-orb-2,
  .adm-orb-2,
  .st-orb-2,
  .rd-orb-2,
  .ft-orb-2,
  .dc-orb-2 {
    width: 240px;
    height: 240px;
    bottom: -80px;
    right: -60px;
  }

  .hero-orb-3,
  .adm-orb-3,
  .st-orb-3,
  .rd-orb-3,
  .ft-orb-3,
  .dc-orb-3 {
    width: 180px;
    height: 180px;
  }

  /* Puntos de fondo */
  .hero-bg-dots,
  .rd-bg-dots,
  .ft-bg-dots,
  .adm-bg-dots,
  .st-bg-dots,
  .dc-bg-dots {
    background-size: 28px 28px;
  }

  /* Partículas — ocultar las que caen fuera del viewport */
  .hero-p:nth-child(7),
  .hero-p:nth-child(8),
  .adm-p:nth-child(7),
  .adm-p:nth-child(8),
  .st-p:nth-child(7),
  .st-p:nth-child(8),
  .rd-p:nth-child(7),
  .rd-p:nth-child(8),
  .ft-p:nth-child(7),
  .ft-p:nth-child(8),
  .dc-p:nth-child(7),
  .dc-p:nth-child(8) {
    display: none;
  }

  /* Shapes más pequeños y reposicionados */
  .nx-shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: 2%;
  }

  .nx-shape-2 {
    width: 170px;
    height: 170px;
    bottom: -40px;
    left: 2%;
  }

  .nx-shape-3 {
    display: none;
  }

  /* Scan lines — menos anchas en móvil */
  .hero-scan,
  .adm-scan,
  .st-scan {
    height: 2px;
  }
}

/* Móvil pequeño ≤ 360px */
@media (max-width: 360px) {

  .hero-orb-1,
  .adm-orb-1,
  .st-orb-1,
  .rd-orb-1,
  .ft-orb-1,
  .dc-orb-1 {
    width: 220px;
    height: 220px;
  }

  .hero-orb-2,
  .adm-orb-2,
  .st-orb-2,
  .rd-orb-2,
  .ft-orb-2,
  .dc-orb-2 {
    width: 190px;
    height: 190px;
  }

  .hero-orb-3,
  .adm-orb-3,
  .st-orb-3,
  .rd-orb-3,
  .ft-orb-3,
  .dc-orb-3 {
    display: none;
  }

  .nx-shape-1 {
    width: 160px;
    height: 160px;
  }

  .nx-shape-2 {
    width: 140px;
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .stat-box {
    opacity: 1;
    transform: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ANIMACIONES MODERNAS v2 — SCROLL REVEAL, PARTÍCULAS & FX
   ═══════════════════════════════════════════════════════════════ */

/* ── Barra de progreso de lectura ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--dorado), var(--dorado-claro), var(--verde-claro));
  z-index: 10000;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.scroll-reveal.from-left {
  transform: translateX(-65px);
}

.scroll-reveal.from-right {
  transform: translateX(65px);
}

.scroll-reveal.zoom-in {
  transform: scale(0.88) translateY(24px);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: none;
}

.scroll-reveal.d1 {
  transition-delay: 0.07s;
}

.scroll-reveal.d2 {
  transition-delay: 0.14s;
}

.scroll-reveal.d3 {
  transition-delay: 0.21s;
}

.scroll-reveal.d4 {
  transition-delay: 0.28s;
}

.scroll-reveal.d5 {
  transition-delay: 0.35s;
}

.scroll-reveal.d6 {
  transition-delay: 0.42s;
}

.scroll-reveal.d7 {
  transition-delay: 0.49s;
}

.scroll-reveal.d8 {
  transition-delay: 0.56s;
}

/* ── Orbs flotantes en el hero ── */
@keyframes orbDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(28px, -22px) scale(1.06);
  }

  50% {
    transform: translate(-18px, 18px) scale(0.94);
  }

  75% {
    transform: translate(22px, 8px) scale(1.03);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(74, 148, 81, .22) 0%, transparent 70%);
  top: 0;
  right: 5%;
  animation: orbDrift 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 162, 39, .16) 0%, transparent 70%);
  top: 50%;
  right: 25%;
  animation: orbDrift 16s ease-in-out infinite;
  animation-delay: -5s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(45, 107, 51, .28) 0%, transparent 70%);
  bottom: 12%;
  left: 5%;
  animation: orbDrift 9s ease-in-out infinite;
  animation-delay: -7s;
}

/* Orbs van antes en el DOM, por eso el div no necesita z-index */

/* ── Hero scroll indicator ── */
@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: .5;
  }

  50% {
    transform: translateX(-50%) translateY(11px);
    opacity: 1;
  }
}

#hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

#hero-scroll-indicator span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

#hero-scroll-indicator::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, .45);
  border-bottom: 2px solid rgba(255, 255, 255, .45);
  transform: rotate(45deg);
  margin-top: -6px;
}

/* ── Hero badge pulse ── */
@keyframes badgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, .4), inset 0 0 0 1px rgba(201, 162, 39, .45);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(201, 162, 39, 0), inset 0 0 0 1px rgba(201, 162, 39, .45);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0), inset 0 0 0 1px rgba(201, 162, 39, .45);
  }
}

.hero-badge {
  animation: fadeUp .7s ease both, badgePulse 3.5s ease-in-out 1.4s infinite;
}

/* ── Hero em glow ── */
@keyframes emGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(201, 162, 39, .25));
  }

  50% {
    filter: drop-shadow(0 0 32px rgba(240, 200, 74, .7)) drop-shadow(0 0 60px rgba(201, 162, 39, .25));
  }
}

.hero h1 em {
  animation: emGlow 4s ease-in-out infinite;
}

/* ── Hero stats float ── */
@keyframes statFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.hero-stat {
  animation: statFloat 4s ease-in-out infinite;
}

.hero-stat:nth-child(2) {
  animation-delay: -1.3s;
}

.hero-stat:nth-child(3) {
  animation-delay: -2.6s;
}

/* ── Btn shimmer ── */
@keyframes btnShimmer {
  0% {
    left: -80%;
  }

  100% {
    left: 160%;
  }
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-15deg);
  animation: btnShimmer 3.2s ease-in-out infinite;
}

.btn-outline {
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-15deg);
  animation: btnShimmer 3.8s ease-in-out .8s infinite;
}

/* ── Logo glow suave ── */
@keyframes logoGlow {

  0%,
  100% {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3));
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(201, 162, 39, .55));
  }
}

.nav-logo {
  animation: logoGlow 5s ease-in-out infinite;
}

/* ── Director img hover mejorado ── */
.director-img-col img {
  transition: filter .6s ease, transform .6s ease;
}

.director-img-col:hover img {
  filter: grayscale(0%) brightness(1.06);
  transform: scale(1.04);
}

/* ── Doc card shimmer ── */
@keyframes cardShimmer {
  from {
    transform: translateX(-100%) skewX(-15deg);
  }

  to {
    transform: translateX(260%) skewX(-15deg);
  }
}

.doc-card {
  position: relative;
  overflow: hidden;
}

.doc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
}

.doc-card:hover::after {
  animation: cardShimmer .75s ease forwards;
}

/* ── Noticia card shimmer ── */
.noticia-card::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .07), transparent);
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
  z-index: 6;
  border-radius: 18px;
}

.noticia-card:hover::after {
  animation: cardShimmer .85s ease forwards;
}

/* ── Anuncio destacado border glow ── */
@keyframes borderGlow {

  0%,
  100% {
    border-left-color: var(--dorado);
  }

  50% {
    border-left-color: var(--dorado-claro);
    box-shadow: -5px 0 16px rgba(201, 162, 39, .32);
  }
}

.anuncio-destacado {
  animation: borderGlow 3s ease-in-out infinite;
}

/* ── Back to top pulse ── */
@keyframes backTopPulse {
  0% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25), 0 0 0 0 rgba(201, 162, 39, .55);
  }

  70% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25), 0 0 0 14px rgba(201, 162, 39, 0);
  }

  100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25), 0 0 0 0 rgba(201, 162, 39, 0);
  }
}

.back-to-top.visible {
  animation: backTopPulse 2.5s ease-in-out infinite;
}

/* ── WhatsApp float ── */
@keyframes wspFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.whatsapp-btn {
  animation: wspFloat 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
  animation: none;
  transform: translateY(-4px);
}

/* socialBounce reemplazado por rd-icon-bounce en la nueva sección redes */

/* ── DOCUMENTOS INSTITUCIONALES — REDISEÑO PREMIUM ── */

.documentos-section {
  background: linear-gradient(145deg, #050f07 0%, #0b1f0e 45%, #060e08 100%);
  background-size: 300% 300%;
  animation: statsBgShift 18s ease infinite;
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}

/* Cuadrícula de fondo animada */
.documentos-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 107, 51, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 107, 51, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridScroll 25s linear infinite;
  pointer-events: none;
}

@keyframes gridScroll {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 56px 56px, 56px 56px;
  }
}

/* Línea superior verde-dorado */
.documentos-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--verde-claro) 20%,
      var(--dorado-claro) 50%,
      var(--verde-claro) 80%,
      transparent 100%);
  background-size: 200% 100%;
  animation: topLineFlow 4s linear infinite;
}

/* ── Documentos: fondo animado (sin scan) ── */
.dc-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(240, 192, 64, .18) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  animation: adm-dot-drift 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.dc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 0;
}

.dc-orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(74, 148, 81, .55) 0%, rgba(74, 148, 81, .18) 40%, transparent 70%);
  top: -200px;
  left: -160px;
  animation: adm-orb-move-1 19s ease-in-out infinite;
}

.dc-orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(240, 192, 64, .4) 0%, rgba(240, 192, 64, .12) 40%, transparent 70%);
  bottom: -150px;
  right: -110px;
  animation: adm-orb-move-2 16s ease-in-out infinite;
  animation-delay: -7s;
}

.dc-orb-3 {
  width: 370px;
  height: 370px;
  background: radial-gradient(circle, rgba(30, 200, 100, .55) 0%, rgba(30, 140, 80, .18) 40%, transparent 70%);
  top: 30%;
  left: 42%;
  animation: adm-orb-move-3 23s ease-in-out infinite;
  animation-delay: -12s;
}

.dc-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.dc-p {
  position: absolute;
  border-radius: 50%;
  background: #f0c040;
  box-shadow: 0 0 6px 2px rgba(240, 192, 64, .7), 0 0 14px 4px rgba(240, 192, 64, .3);
  animation: adm-particle-rise linear infinite;
  will-change: transform, opacity;
}

.dc-p:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 6%;
  bottom: 8%;
  animation-duration: 5.1s;
  animation-delay: 0.1s;
  --px: 37px;
}

.dc-p:nth-child(2) {
  width: 4px;
  height: 4px;
  left: 17%;
  bottom: 20%;
  animation-duration: 7.1s;
  animation-delay: 1.3s;
  --px: -31px;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .6);
}

.dc-p:nth-child(3) {
  width: 7px;
  height: 7px;
  left: 32%;
  bottom: 5%;
  animation-duration: 6.1s;
  animation-delay: 2.8s;
  --px: 21px;
}

.dc-p:nth-child(4) {
  width: 4px;
  height: 4px;
  left: 50%;
  bottom: 15%;
  animation-duration: 8.1s;
  animation-delay: 0.6s;
  --px: -51px;
  background: #aef7b5;
  box-shadow: 0 0 8px 2px rgba(174, 247, 181, .6);
}

.dc-p:nth-child(5) {
  width: 8px;
  height: 8px;
  left: 62%;
  bottom: 7%;
  animation-duration: 5.6s;
  animation-delay: 3.4s;
  --px: 32px;
}

.dc-p:nth-child(6) {
  width: 5px;
  height: 5px;
  left: 74%;
  bottom: 22%;
  animation-duration: 7.6s;
  animation-delay: 1.9s;
  --px: -23px;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .6);
}

.dc-p:nth-child(7) {
  width: 6px;
  height: 6px;
  left: 84%;
  bottom: 11%;
  animation-duration: 6.6s;
  animation-delay: 4.5s;
  --px: 15px;
}

.dc-p:nth-child(8) {
  width: 9px;
  height: 9px;
  left: 93%;
  bottom: 19%;
  animation-duration: 9.1s;
  animation-delay: 2.1s;
  --px: -43px;
  background: #aef7b5;
  box-shadow: 0 0 10px 3px rgba(174, 247, 181, .5);
}

/* Contenido sobre el fondo */
.documentos-section .section-label,
.documentos-section .section-title,
.docs-grid {
  position: relative;
  z-index: 3;
}

/* Títulos sobre fondo oscuro */
.documentos-section .section-label {
  color: var(--dorado-claro);
}

.documentos-section .section-label::before {
  background: var(--dorado);
}

.documentos-section .section-title {
  color: #ffffff;
}

.documentos-section .section-title span {
  color: var(--dorado-claro);
}

/* Grid: 4 columnas iguales */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 52px;
  position: relative;
  z-index: 1;
}

/* Tarjeta — layout vertical + glassmorphism */
.doc-card {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 40px 24px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
}

/* Línea dorada superior que se expande al hover */
.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent, var(--dorado-claro), var(--dorado), var(--dorado-claro), transparent);
  border-radius: 0 0 4px 4px;
  transition: left 0.4s ease, width 0.4s ease;
  z-index: 2;
}

.doc-card:hover::before {
  left: 8%;
  width: 84%;
}

/* Badge "↓ DESCARGAR" que aparece en hover */
.doc-card::after {
  content: '↓  DESCARGAR';
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--dorado);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 20px;
  padding: 5px 14px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.doc-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hover dramático */
.doc-card:hover {
  transform: translateY(-14px) scale(1.04);
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.05) 100%);
  box-shadow:
    0 32px 68px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 175, 55, 0.3),
    0 0 48px rgba(212, 175, 55, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

/* Icono — grande, vertical, con animación */
.doc-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(45, 107, 51, 0.4), rgba(26, 74, 30, 0.2));
  border: 2px solid rgba(74, 148, 81, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.doc-card:hover .doc-icon {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.38), rgba(201, 162, 39, 0.16));
  border-color: rgba(201, 162, 39, 0.65);
  transform: scale(1.18) rotate(-6deg);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.35);
}

/* Info: centrado vertical */
.doc-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* Título */
.doc-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* Descripción */
.doc-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
}

/* Tarjeta Excel — acento verde más intenso */
.doc-card--excel {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.doc-card--excel .doc-icon {
  background: linear-gradient(135deg, rgba(33, 115, 70, 0.45), rgba(33, 115, 70, 0.18));
  border-color: rgba(33, 115, 70, 0.55);
}

.doc-card--excel:hover .doc-icon {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.38), rgba(33, 115, 70, 0.2));
}

/* Responsive: 2 columnas en tablet */
@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-card {
    padding: 34px 20px 46px;
  }
}

@media (max-width: 480px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .doc-card {
    padding: 30px 20px 44px;
  }
}

/* ── Reduce motion — apagar todas las nuevas animaciones ── */
@media (prefers-reduced-motion: reduce) {

  .hero-orb,
  .hero-badge,
  .hero h1 em,
  .hero-stat,
  .btn-primary::before,
  .btn-outline::before,
  .nav-logo,
  .whatsapp-btn,
  .back-to-top.visible,
  .anuncio-destacado,
  #hero-scroll-indicator,
  .stats-section,
  .stats-section::before,
  .stats-section::after,
  .stat-icon,
  .stat-box .big {
    animation: none !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .stat-box {
    opacity: 1 !important;
    transform: none !important;
  }

  .red-link {
    opacity: 1 !important;
  }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE MÓVIL — Secciones actualizadas
   ══════════════════════════════════════════════════════ */

/* ── Cursor: ocultar completamente en pantallas táctiles ── */
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
  body.no-cursor,
  body.no-cursor * {
    cursor: auto !important;
  }
}

/* ══ GALERÍA ══════════════════════════════════════════ */

@media (max-width: 900px) {
  .galeria-section {
    padding-bottom: 60px;
  }
  .galeria-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .galeria-arrows {
    align-self: flex-end;
  }
  .galeria-item {
    height: 320px;
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  .galeria-section {
    padding-bottom: 44px;
  }
  .galeria-tabs {
    border-radius: 14px;
    padding: 5px;
    gap: 5px;
    width: 100%;
  }
  .tab-btn {
    border-radius: 10px;
    flex: 1;
    text-align: center;
    padding: 9px 8px;
    font-size: 0.72rem;
    min-width: 0;
  }
  .galeria-item {
    height: 260px;
    border-radius: 14px;
  }
  .g-ctrl {
    width: 40px;
    height: 40px;
    font-size: 0.88rem;
  }
  /* En táctil mostrar overlay siempre */
  .galeria-item .overlay {
    opacity: 0.85;
  }
}

@media (max-width: 480px) {
  .galeria-section::after {
    background-size: 22px 22px;
  }
  .galeria-tabs {
    flex-wrap: wrap;
  }
  .tab-btn {
    padding: 8px 10px;
    font-size: 0.7rem;
    letter-spacing: .08em;
  }
  .galeria-item {
    height: 220px;
    border-radius: 12px;
  }
  /* Desactivar efectos de borde y shimmer en móvil */
  .galeria-item::before,
  .galeria-item::after {
    display: none;
  }
  .galeria-header {
    gap: 10px;
  }
  .g-ctrl {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 360px) {
  .galeria-item {
    height: 190px;
  }
  .tab-btn {
    padding: 7px 8px;
    font-size: 0.66rem;
  }
  .galeria-tabs {
    gap: 4px;
    padding: 4px;
  }
}

/* ══ ESTADÍSTICAS ════════════════════════════════════ */

@media (max-width: 900px) {
  .stat-box {
    padding: 36px 20px 30px;
  }
  .stat-box .big {
    font-size: 3.2rem;
  }
}

@media (max-width: 640px) {
  .stat-box {
    padding: 30px 16px 26px;
  }
  .stat-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
  }
  .stat-box .big {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .stat-box {
    padding: 26px 14px 22px;
  }
  .stat-icon {
    width: 52px;
    height: 52px;
  }
}

/* ══ HOVER EFFECTS — desactivar en dispositivos táctiles ══ */
@media (hover: none) {
  /* Galería */
  .galeria-item:hover {
    transform: none;
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
  }
  .galeria-item:hover img {
    transform: none;
  }
  /* Stat boxes */
  .stat-box:hover {
    transform: none;
    background: linear-gradient(145deg, #1c3a1c 0%, #0a130a 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.09);
    border-color: rgba(212,175,55,.35);
  }
  .stat-box:hover .stat-icon {
    transform: none;
  }
  /* Admisión cards */
  .admision-card:hover {
    transform: none;
  }
  /* Tabs */
  .tab-btn:hover {
    transform: none;
  }
  /* Flechas galería */
  .g-ctrl:hover {
    transform: none;
  }
}