@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;900&display=swap");

/* ===== VARIABLES ===== */
:root {
  --blue-950: #021d38;
  --blue-900: #042c53;
  --blue-800: #0c447c;
  --blue-700: #185fa5;
  --blue-600: #378add;
  --blue-200: #85b7eb;
  --blue-100: #b5d4f4;
  --blue-50: #e6f1fb;
  --white: #ffffff;
  --gray-50: #f8f7f4;
  --gray-100: #efefeb;
  --gray-400: #b4b2a9;
  --gray-600: #5f5e5a;
  --gold: #c9a84c;
  --font-display: "Roboto", sans-serif;
  --font-body: "Roboto", sans-serif;
  --nav-h: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--blue-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--blue-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: box-shadow 0.3s;
}
#navbar.scrolled {
  box-shadow: 0 2px 24px rgba(4, 44, 83, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.nav-logo-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-name {
  line-height: 1.2;
  display: flex;
  gap: 4px;
  align-items: baseline;
}
.nav-name strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-name span {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  font-weight: 400;
  white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-200), transparent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 70%;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.nav-cta {
  background: var(--blue-600) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  margin-left: 8px;
  border-radius: var(--radius-sm) !important;
}
.nav-cta:hover {
  background: #2a75c5 !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 110%,
      rgba(55, 138, 221, 0.18) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 40% at 20% 20%,
      rgba(12, 68, 124, 0.5) 0%,
      transparent 60%
    );
  pointer-events: none;
  animation: parallax 20s ease-in-out infinite;
}
@keyframes parallax {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 60px 1.5rem 80px;
  max-width: 680px;
  margin: 0 auto;
}
.hero-logo-wrap {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
  margin: 0 auto 28px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.3);
}
.hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--blue-200);
  font-weight: 600;
  margin-bottom: 14px;
}
#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  text-transform: uppercase;
}
#hero h1 em {
  font-style: normal;
  color: var(--white);
}
/* Versículo bíblico */
.hero-versiculo {
  margin: 18px auto 20px;
  max-width: 540px;
  border: none;
  padding: 0;
}
.hero-versiculo p {
  font-size: clamp(15px, 2.2vw, 17.5px);
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 6px;
}
.hero-versiculo cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-lema {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  padding: 5px 14px;
}
.hero-desc {
  font-size: 18px;
  color: rgba(181, 212, 244, 0.85);
  max-width: 520px;
  margin: 0 auto 38px;
  font-weight: 300;
  line-height: 1.75;
}
.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* Accesibilidad: resalta foco para navegacion con teclado */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid #22c55e;
  outline-offset: 3px;
  border-radius: 8px;
}
.btn-white {
  background: var(--white);
  color: var(--blue-900);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}
.btn-white:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-weight: 400;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(24, 95, 165, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
  box-shadow: 0 8px 25px rgba(24, 95, 165, 0.4);
  transform: translateY(-2px);
}

/* ===== SECTION BASE ===== */
.section {
  padding: 88px 1.5rem;
  position: relative;
}
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue-600), transparent);
}
.section-alt {
  background: var(--gray-50);
}
.section-dark {
  background: var(--blue-900);
}
.section-inner {
  max-width: 980px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 48px;
  position: relative;
}
.section-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--blue-600);
  border-radius: 50%;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-300), transparent);
  max-width: 60px;
}
.section-label-light {
  color: var(--blue-200);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--blue-900);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-title-light {
  color: var(--white);
}
.section-desc {
  font-size: 17px;
  color: var(--gray-600);
  font-weight: 300;
  max-width: 580px;
  line-height: 1.75;
}
.section-desc-light {
  color: var(--blue-100);
}

/* ===== MISION / VISION ===== */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.mv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 0.5px solid #dce8f5;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
}
.mv-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(24, 95, 165, 0.2),
    0 8px 16px rgba(24, 95, 165, 0.1);
}
.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue-700);
}
.mv-icon {
  font-size: 22px;
  margin-bottom: 12px;
}
.mv-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--blue-700);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.mv-card p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== OFERTA ACADÉMICA ===== */
.oferta-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}
.titulos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.titulos-table th {
  background: var(--blue-900);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.titulos-table td {
  padding: 10px 14px;
  border-bottom: 0.5px solid #dce8f5;
  color: var(--gray-600);
  vertical-align: top;
}
.titulos-table tr:last-child td {
  border-bottom: none;
}
.titulos-table td:first-child {
  color: var(--blue-900);
  font-weight: 600;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.features-list li {
  font-size: 16px;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.features-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
  margin-top: 6px;
  flex-shrink: 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.area-card {
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 0.5px solid rgba(4, 44, 83, 0.12);
  transition: all 0.3s ease;
  box-shadow: 0 12px 28px rgba(4, 44, 83, 0.07);
  border-left: 6px solid var(--blue-600);
}
.area-card:hover {
  border-color: var(--blue-700);
  box-shadow: 0 16px 32px rgba(24, 95, 165, 0.16);
  transform: translateY(-4px);
}
.area-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--blue-900);
  margin-bottom: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.area-tag {
  font-size: 11px;
  background: var(--blue-50);
  color: var(--blue-800);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.area-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.area-card ul li {
  font-size: 15px;
  color: var(--gray-600);
  padding-left: 12px;
  position: relative;
  line-height: 1.45;
}
.area-card ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--blue-400);
}

.materias-bimestre {
  background: var(--blue-900);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.materias-bimestre h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge-activo {
  font-size: 11px;
  background: #22c55e;
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-cerrado {
  font-size: 11px;
  background: #ef4444;
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.materias-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
}
.mat-card h4 {
  font-family: var(--font-display);
  font-size: 17.5px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.mat-card p {
  font-size: 15px;
  color: var(--blue-100);
  line-height: 1.65;
  margin-bottom: 12px;
}
.mat-meta {
  font-size: 12px;
  color: var(--blue-200);
  display: flex;
  gap: 14px;
}

/* ===== CONVENIOS ===== */
.convenios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.convenio-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  border: 0.5px solid #dce8f5;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.convenio-card:hover {
  border-color: var(--blue-600);
  box-shadow: 0 8px 20px rgba(24, 95, 165, 0.12);
  transform: translateY(-4px);
}
.convenio-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.convenio-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 4px;
  line-height: 1.35;
}
.convenio-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ===== EQUIPO ===== */
.equipo-grupos {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.equipo-grupo h3 {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue-600);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #dce8f5;
  margin-bottom: 16px;
}
.equipo-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.miembro-pill {
  background: var(--white);
  border: 0.5px solid #dce8f5;
  border-radius: 30px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--blue-900);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
.miembro-pill:hover {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 6px 12px rgba(24, 95, 165, 0.1);
  transform: translateY(-2px);
}
.pill-avatar {
  display: none;
}
.pill-avatar.alt {
  display: none;
}
.pill-info {
  line-height: 1.2;
  flex: 1;
}
.pill-name {
  font-weight: 600;
  font-size: 15px;
}
.pill-role {
  font-size: 13px;
  color: var(--gray-600);
}

/* ===== INSCRIPCION ===== */
#inscripcion .section-header {
  text-align: center;
}
#inscripcion .section-desc {
  margin-left: auto;
  margin-right: auto;
}
.inscripcion-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.inscripcion-text {
  text-align: left;
}
.inscripcion-text h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}
.inscripcion-text p {
  color: var(--blue-100);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 28px;
}
.form-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
}
.form-box-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}
.form-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-box-sub {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  margin-bottom: 22px !important;
}
.btn-inscripcion {
  background: var(--blue-600);
  color: var(--white);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-inscripcion:hover {
  background: var(--blue-700);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 15px;
  color: var(--blue-100);
  margin-bottom: 22px;
}
.dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}
.dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

/* Inscripciones cerradas: CTAs deshabilitados */
.inscripcion-cta-bloqueada {
  pointer-events: none;
  cursor: not-allowed !important;
  opacity: 0.72;
}
.nav-cta.inscripcion-cta-bloqueada,
.nav-cta.inscripcion-cta-bloqueada:hover {
  background: #64748b !important;
  color: rgba(255, 255, 255, 0.9) !important;
}
.btn.btn-ghost.inscripcion-cta-bloqueada,
.btn.btn-ghost.inscripcion-cta-bloqueada:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  transform: none;
}
.btn-inscripcion.inscripcion-cta-bloqueada,
.btn-inscripcion.inscripcion-cta-bloqueada:hover {
  background: #64748b;
  color: rgba(255, 255, 255, 0.92);
}

/* ===== CONTACTO ===== */
.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.contacto-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 0.5px solid #dce8f5;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.contacto-card:hover {
  border-color: var(--blue-600);
  box-shadow: 0 12px 28px rgba(24, 95, 165, 0.15);
  transform: translateY(-6px);
}
.contacto-ico {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.contacto-ico svg {
  width: 24px;
  height: 24px;
}
.contacto-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--blue-900);
  margin-bottom: 6px;
}
.contacto-card p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 18px;
  line-height: 1.5;
}
.btn-social-fb {
  background: #1877f2;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}
.btn-social-fb:hover {
  background: #1565d8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}
.btn-social-ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(253, 29, 29, 0.3);
}
.btn-social-ig:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(253, 29, 29, 0.4);
  filter: brightness(1.1);
}
.btn-email-link {
  background: var(--blue-900);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(4, 44, 83, 0.3);
}
.btn-email-link:hover {
  background: var(--blue-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 44, 83, 0.4);
}
.direccion-card {
  margin-top: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 0.5px solid #dce8f5;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}
.direccion-card:hover {
  border-color: var(--blue-600);
  box-shadow: 0 8px 16px rgba(24, 95, 165, 0.1);
}
.dir-icon {
  font-size: 22px;
  margin-top: 2px;
}
.dir-info p {
  font-size: 16px;
  color: var(--blue-900);
  font-weight: 600;
  margin-bottom: 2px;
}
.dir-info span {
  font-size: 14px;
  color: var(--gray-600);
  display: block;
  line-height: 1.55;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(180deg, var(--blue-950) 0%, #011425 100%);
  padding: 60px 1.5rem 40px;
  color: var(--blue-100);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.footer-brand span {
  font-size: 12px;
  color: var(--blue-200);
}
.footer-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  padding: 5px 10px;
  border-radius: 4px;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: var(--white);
}
.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-align: right;
  line-height: 1.6;
}
.footer-credits {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
}
.footer-credits a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}
.footer-credits a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 29, 56, 0.78);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}
.modal-head {
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h3 {
  font-family: var(--font-display);
  font-size: 23px;
  color: var(--blue-900);
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.modal-close:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}
.modal-body {
  padding: 20px 28px 28px;
}
.modal-form-placeholder {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed #c8dff5;
}
.modal-form-placeholder p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.modal-form-placeholder code {
  font-size: 12px;
  color: var(--blue-700);
  display: block;
  margin-top: 10px;
  background: var(--blue-50);
  padding: 8px 12px;
  border-radius: 6px;
}

/* ===== SKIP LINK (Accesibilidad) ===== */
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  display: inline-block;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.7s ease forwards;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ESTADÍSTICAS ===== */
#estadisticas {
  padding: 72px 1.5rem;
}
.estadisticas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1;
}
.stat-label {
  font-size: 16px;
  color: var(--blue-100);
  font-weight: 500;
  line-height: 1.4;
}

/* ===== BENEFICIOS ===== */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.beneficio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 0.5px solid #dce8f5;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}
.beneficio-card:hover {
  border-color: var(--blue-600);
  box-shadow: 0 12px 28px rgba(24, 95, 165, 0.15);
  transform: translateY(-6px);
}
.beneficio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue-600), transparent);
}
.beneficio-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.beneficio-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--blue-900);
  font-weight: 700;
  margin-bottom: 8px;
}
.beneficio-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== EVENTOS / GALERÍA ===== */
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.evento-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid #dce8f5;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  background: var(--white);
}
.evento-card:hover {
  box-shadow: 0 12px 32px rgba(24, 95, 165, 0.15);
  transform: translateY(-6px);
}
.evento-img-wrap {
  margin-bottom: 14px;
  aspect-ratio: 16/9;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}
.evento-body {
  padding: 0 16px 18px;
}
.evento-image {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
}

.evento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: transparent;
}

.evento-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 14px;
}
.evento-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 44, 83, 0.6);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: all 0.3s ease;
}
.evento-card:hover .evento-overlay {
  background: rgba(4, 44, 83, 0.8);
}
.evento-overlay h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--white);
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}
.evento-content {
  padding: 18px 16px;
}
.evento-content p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 10px;
}
.evento-fecha {
  display: inline-block;
  font-size: 18px;
  line-height: 1.2;
  color: #166534;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid #22c55e;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
  box-shadow:
    0 0 0 2px rgba(34, 197, 94, 0.12),
    0 6px 16px rgba(34, 197, 94, 0.2);
}

/* ===== MAPA ===== */
.mapa-wrapper {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #dce8f5;
}
.mapa-wrapper h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--blue-900);
  font-weight: 600;
  margin-bottom: 20px;
}
.mapa-wrapper iframe {
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(24, 95, 165, 0.12);
}

/* ===== FOOTER MEJORADO ===== */
.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-align: right;
  line-height: 1.6;
}
.btn-cta-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(24, 95, 165, 0.3);
  position: relative;
}
.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 95, 165, 0.4);
}

/* ===== TESTIMONIOS ===== */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.testimonio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 0.5px solid #dce8f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.testimonio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold));
}
.testimonio-card:hover {
  box-shadow: 0 12px 32px rgba(24, 95, 165, 0.15);
  transform: translateY(-6px);
}
.testimonio-stars {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.testimonio-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
  border-left: 3px solid var(--blue-600);
  padding-left: 12px;
}
.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonio-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.testimonio-info h4 {
  font-size: 14px;
  color: var(--blue-900);
  font-weight: 600;
  margin-bottom: 2px;
}
.testimonio-info span {
  font-size: 12px;
  color: var(--gray-400);
}

/* WhatsApp button styles removed */

/* ===== ACTIVE NAV LINK ===== */
.nav-links a.active-nav {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* ===== SECTION DECORATORS ===== */
#mision .section-header::after,
#oferta .section-header::after,
#convenios .section-header::after,
#equipo .section-header::after,
#testimonios .section-header::after,
#inscripcion .section-header::after,
#contacto .section-header::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-200));
  border-radius: 2px;
  margin-top: 16px;
}

/* ===== ENHANCED LOGO SHADOW ===== */
.hero-logo-wrap {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1);
  animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ===== ENHANCED MODAL STYLING ===== */
.modal {
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-overlay {
  animation: fadeIn 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
  .oferta-intro {
    grid-template-columns: 1fr;
  }
  .materias-cards {
    grid-template-columns: 1fr;
  }
  .inscripcion-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-copy {
    text-align: center;
  }
  .section-label::after {
    display: none;
  }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--blue-950);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 10px 12px;
    border-radius: 4px;
  }
  .hamburger {
    display: flex;
  }
  .section {
    padding: 64px 1.25rem;
  }
}
@media (max-width: 500px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .testimonios-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }
  .hero-inner {
    padding: 40px 1rem 60px;
  }
  .section {
    padding: 60px 1rem;
  }
}

/* ===== GALERÍA / CARRUSEL ===== */
.carrusel-outer {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.carrusel-wrapper {
  flex: 1;
  overflow: hidden;
  margin-top: 8px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}
.carrusel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}
.carrusel-item {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 0.5px solid #dce8f5;
  background: var(--blue-50);
  transition: box-shadow 0.3s ease;
}
.carrusel-item:hover {
  box-shadow: 0 8px 24px rgba(4, 44, 83, 0.2);
}
.carrusel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.carrusel-item:hover img {
  transform: scale(1.06);
}
.carrusel-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  inset: 0;
}
.carrusel-placeholder span {
  font-size: 13px;
  color: var(--blue-700);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.carrusel-placeholder::before {
  content: "📷";
  font-size: 28px;
}

/* Flechas */
.carrusel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 0.5px solid #dce8f5;
  color: var(--blue-800);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(4, 44, 83, 0.12);
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
  z-index: 2;
  margin-top: 8px;
  user-select: none;
}
.carrusel-arrow:hover {
  background: var(--blue-50);
  box-shadow: 0 4px 16px rgba(4, 44, 83, 0.2);
  transform: scale(1.08);
}
.carrusel-arrow:active {
  transform: scale(0.96);
}
.carrusel-arrow-left {
  margin-right: 10px;
}
.carrusel-arrow-right {
  margin-left: 10px;
}

/* ===== LIGHTBOX GALERÍA ===== */
.lb-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
  pointer-events: none;
}
.lb-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: none; /* el overlay en sí no bloquea — solo el backdrop */
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 15, 30, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.lb-overlay.active .lb-backdrop {
  opacity: 1;
}
.lb-img-wrap {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  max-width: 88vw;
  max-height: 82vh;
}
.lb-overlay.active .lb-img-wrap {
  opacity: 1;
  transform: scale(1);
}
.lb-img-wrap img {
  display: block;
  max-width: 88vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Placeholder en el lightbox */
.lb-ph {
  width: 480px;
  max-width: 88vw;
  height: 320px;
  border-radius: var(--radius-lg);
  position: relative !important;
  inset: unset !important;
}
.lb-ph::before {
  font-size: 44px;
}
.lb-ph span {
  font-size: 15px;
  color: var(--blue-700);
}

@media (max-width: 720px) {
  .carrusel-item {
    width: 210px;
    height: 155px;
  }
  .carrusel-arrow {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}
