:root {
  --navy: #0a1628;
  --blue: #1565c0;
  --cyan: #00b4d8;
  --cyan-light: #90e0ef;
  --orange: #ff6b2b;
  --white: #fff;
  --gray: #f4f6fb;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --glass: hsla(0, 0%, 100%, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
*,
:after,
:before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Nunito, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 80px;
  background: hsla(0, 0%, 100%, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(10, 22, 40, 0.1);
  transition: background 0.3s, box-shadow 0.3s;
}
.logo-area-group {
  gap: 12px;
  text-decoration: none;
}
.logo-area-group {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  display: block;
  padding: 8px 13px;
  font-family: Montserrat, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.nav-links > li > a:hover {
  color: var(--blue);
  background: rgba(21, 101, 192, 0.07);
}
.nav-links > li > a.active {
  color: var(--blue);
}
.nav-cta > a {
  background: linear-gradient(135deg, var(--orange), #ff9a3c) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(255, 107, 43, 0.35);
  transition: transform 0.18s, box-shadow 0.18s !important;
}
.nav-cta > a:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(255, 107, 43, 0.5) !important;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.18);
  padding: 10px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  border: 1px solid rgba(21, 101, 192, 0.08);
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li {
  list-style: none;
}
.dropdown-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-family: Nunito, sans-serif;
}
.dropdown-menu li a:hover {
  background: rgba(21, 101, 192, 0.08);
  color: var(--blue);
}
.dropdown-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  transition: transform 0.22s;
}
.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}
.hero {
  min-height: 100vh;   /* ocupa toda la pantalla */
  position: relative;
  overflow: hidden;    /* evita desbordes */
}

.slides-wrapper{
  display:flex;
  width:100%;
  transition:transform .8s ease;
}
.slide{
  min-width:100%;
  position:relative;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;   /* llena todo el hero */
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 8s ease;
}


/* Si quieres que siempre llene el hero aunque recorte un poco */
.slide-bg.full-cover {
  background-size: cover;     /* llena todo el hero */
  background-position: center;
}

.slide.active .slide-bg {
  transform: scale(1);
}
.slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 22, 40, 0.82),
    rgba(10, 22, 40, 0.52) 55%,
    rgba(10, 22, 40, 0.15)
  );
  z-index: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 8s ease;
}



.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* lo empuja hacia abajo */
  padding: 0 8% 120px;         /* aumenta el espacio inferior */
  max-width: 680px;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s 0.3s, transform 0.6s 0.3s;
}
.slide-tag:before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--cyan);
  display: block;
}
.slide-title {
  font-family: Montserrat, sans-serif;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s 0.45s, transform 0.65s 0.45s;
}
.slide-title span {
  color: var(--cyan);
}
.slide-desc {
  font-size: 15px;
  line-height: 1.7;
  color: hsla(0, 0%, 100%, 0.82);
  margin-bottom: 36px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s 0.6s, transform 0.6s 0.6s;
}
.slide-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 0.75s, transform 0.6s 0.75s;
}
.slide.active .slide-btns,
.slide.active .slide-desc,
.slide.active .slide-tag,
.slide.active .slide-title {
  opacity: 1;
  transform: translateY(0);
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0077b6);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 180, 216, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 180, 216, 0.55);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid hsla(0, 0%, 100%, 0.55);
}
.btn-secondary:hover {
  background: hsla(0, 0%, 100%, 0.12);
  border-color: #fff;
  transform: translateY(-3px);
}
.carousel-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.4);
  border: 2px solid hsla(0, 0%, 100%, 0.5);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.dot.active {
  background: var(--cyan);
  border-color: var(--cyan);
  width: 28px;
  border-radius: 10px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background: hsla(0, 0%, 100%, 0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid hsla(0, 0%, 100%, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: background 0.2s;
}
.carousel-arrow:hover {
  background: rgba(0, 180, 216, 0.45);
}
.arrow-prev {
  left: 24px;
}
.arrow-next {
  right: 24px;
}
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  z-index: 10;
  transition: width 0.1s linear;
}
.stats-ribbon {
  background: linear-gradient(135deg, var(--navy) 0, #0d2545 100%);
  padding: 36px 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.stat-item {
  text-align: center;
  color: #fff;
}
.stat-num {
  font-family: Montserrat, sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--cyan);
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.65);
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: hsla(0, 0%, 100%, 0.15);
}
.section {
  padding: 80px 60px;
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 180, 216, 0.1);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-tag,
.section-title {
  font-family: Montserrat, sans-serif;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -1px;
}
.section-title span {
  color: var(--blue);
}
.section-sub {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1300px;
  margin: 0 auto;
}
.program-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(21, 101, 192, 0.1);
  cursor: pointer;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 22, 40, 0.14);
}
.card-top {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-top svg {
  width: 56px;
  height: 56px;
  fill: #fff;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
.card-body {
  padding: 24px;
}
.card-title {
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.card-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 18px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: gap 0.2s;
}
.card-link:hover {
  gap: 10px;
}
footer {
  background: var(--navy);
  color: hsla(0, 0%, 100%, 0.65);
  padding: 50px 60px 30px;
}
.virtual-library-btn {
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: var(--cyan);
  padding: 6px 14px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.2s;
}
.virtual-library-btn:hover {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
}
@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .section {
    padding: 60px 24px;
  }
  .stats-ribbon {
    padding: 28px 24px;
  }
  .slide-content {
    max-width: 100%;
    padding: 0 6% 80px;
  }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-container {
  background: #fff;
  border-radius: 28px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-container {
  transform: scale(1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 2px solid #eef2ff;
  background: linear-gradient(135deg, #f8faff, #fff);
  border-radius: 28px 28px 0 0;
}
.modal-header h2 {
  font-family: Montserrat, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}
.modal-header h2 span {
  color: var(--blue);
}
.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-mid);
  transition: color 0.2s;
  line-height: 1;
}
.modal-close:hover {
  color: var(--orange);
}
.modal-body {
  padding: 32px;
}
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.teacher-card {
  background: #f9fafc;
  border-radius: 20px;
  padding: 20px;
  transition: all 0.25s;
  border: 1px solid #eef2ff;
  text-align: center;
}
.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--cyan-light);
}
.teacher-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}
.cv-btn,
.teacher-name {
  font-family: Montserrat, sans-serif;
}
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue), #0d47a1);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(21, 101, 192, 0.4);
}
.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid #eef2ff;
  text-align: center;
  font-size: 12px;
  color: var(--text-mid);
  background: #fafcff;
  border-radius: 0 0 28px 28px;
}
.gallery-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8faff, #fff);
}
.gallery-trigger-btn {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: none;
  padding: 16px 42px;
  border-radius: 50px;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.3);
}
.gallery-trigger-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(21, 101, 192, 0.4);
}
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}
.gallery-modal-container {
  background: transparent;
  width: 92%;
  max-width: 1300px;
  height: 88vh;
  position: relative;
}
.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 20px;
  color: #fff;
}
.gallery-modal-header h3 {
  font-family: Montserrat, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0;
}
.gallery-modal-header h3 span {
  color: var(--cyan);
}
.gallery-modal-close {
  background: hsla(0, 0%, 100%, 0.15);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.gallery-modal-close:hover {
  background: rgba(255, 107, 43, 0.8);
  transform: rotate(90deg);
}
.gallery-grid-container {
  height: calc(100% - 70px);
  overflow-y: auto;
  padding-right: 8px;
}
.gallery-grid-container::-webkit-scrollbar {
  width: 6px;
}
.gallery-grid-container::-webkit-scrollbar-track {
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 10px;
}
.gallery-grid-container::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 10px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-lightbox.active {
  visibility: visible;
  opacity: 1;
}
.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: hsla(0, 0%, 100%, 0.2);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 107, 43, 0.8);
}
.lightbox-next,
.lightbox-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: hsla(0, 0%, 100%, 0.15);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}
.lightbox-next:hover,
.lightbox-prev:hover {
  background: var(--cyan);
}
.lightbox-counter {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 16px;
  border-radius: 40px;
}





/* ===== DROPDOWN FIX ===== */

.nav-links li {
  position: relative;
}

/* Mantiene visible el menú */
.has-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px); /* pequeño espacio visual */
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 9999;
}

/* Área invisible para que no se pierda el hover */
.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 15px;
}

/* Mostrar menú */
.has-dropdown:hover .dropdown-menu,
.has-dropdown .dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mega dropdown */
.mega-dropdown {
  min-width: 500px;
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 18px;
}

/* Dropdown normal */
.dropdown-menu {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  padding: 12px 0;
}

/* Items */
.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  white-space: nowrap;
  text-decoration: none;
  color: #222;
  transition: background .2s ease;
}

.dropdown-menu a:hover {
  background: rgba(0,180,216,0.08);
}







/* ═══════════════════ MODAL PDF ═══════════════════ */

.pdf-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;

  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
}

/* ACTIVO */
.pdf-modal-overlay.active{
  opacity: 1;
  visibility: visible;
}

/* CONTENEDOR */
.pdf-modal-container{
  width: 92%;
  max-width: 1100px;
  height: 90vh;

  background: white;
  border-radius: 22px;

  overflow: hidden;

  box-shadow:
    0 20px 60px rgba(0,0,0,.35);

  transform: translateY(25px) scale(.96);
  transition: .35s ease;
}

/* ANIMACIÓN */
.pdf-modal-overlay.active .pdf-modal-container{
  transform: translateY(0) scale(1);
}

/* HEADER */
.pdf-modal-header{
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 24px;

  background: linear-gradient(
    135deg,
    #00b4d8,
    #0077b6
  );

  color: white;
}

/* TÍTULO */
.pdf-modal-header h2{
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

/* BOTÓN CERRAR */
.pdf-close-btn{
  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  cursor: pointer;

  font-size: 28px;
  color: white;

  background: rgba(255,255,255,.15);

  transition: .25s ease;
}

.pdf-close-btn:hover{
  background: rgba(255,255,255,.3);
  transform: rotate(90deg);
}

/* BODY */
.pdf-modal-body{
  height: calc(90vh - 70px);
  background: #f4f7fb;
}

/* IFRAME */
.pdf-frame{
  width: 100%;
  height: 100%;
  border: none;
}





img[alt="Computron logo"] {
  border-radius: 18px; /* esquinas redondeadas estilizadas */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img[alt="Computron logo"]:hover {
  transform: scale(1.05); /* efecto zoom suave */
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); /* sombra elegante */
}






/* HERO */
.hero{
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: #000;
}

/* Ajustes responsive */
@media (max-width: 1024px){
  .hero{
    height: 85vh;
  }
}

@media (max-width: 768px){
  .hero{
    height: 78vh;
    min-height: 560px;
  }
}

@media (max-width: 480px){
  .hero{
    height: 72vh;
    min-height: 500px;
  }
}

/* Wrapper */
.slides-wrapper{
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .9s ease-in-out;
}

/* Slide */
.slide{
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Imagen */
.slide-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 6s ease;
}

/* Efecto zoom elegante */
.slide.active .slide-bg{
  transform: scale(1.08);
}

/* Oscurecer imagen */
.slide::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.72),
    rgba(0,0,0,.35),
    rgba(0,0,0,.15)
  );
  z-index: 1;
}

/* Contenido */
.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  padding: 0 7%;
  color: white;

  /* Ajuste para subir el contenido */
  margin-top: -100px;   /* desplaza hacia arriba */
  padding-top: 20px;   /* mantiene un poco de espacio interno */
}


/* Tag */
.slide-tag{
  display: inline-block;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .9rem;
  margin-bottom: 18px;
}

/* Título */
.slide-title{
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
}

.slide-title span{
  color: #42a5f5;
}

/* Descripción */
.slide-desc{
  font-size: clamp(.95rem, 2vw, 1.15rem);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 650px;
}

/* Botones */
.slide-btns{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary{
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: .3s;
}

.btn-primary{
  background: #1976d2;
  color: white;
}

.btn-primary:hover{
  transform: translateY(-3px);
  background: #2196f3;
}

.btn-secondary{
  border: 2px solid rgba(255,255,255,.4);
  color: white;
}

.btn-secondary:hover{
  background: rgba(255,255,255,.12);
}

/* Flechas */
.carousel-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  transition: .3s;
}

.carousel-arrow:hover{
  background: rgba(255,255,255,.28);
}

.arrow-prev{
  left: 24px;
}

.arrow-next{
  right: 24px;
}

/* Dots */
.carousel-dots{
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: .3s;
}

.dot.active{
  width: 34px;
  border-radius: 999px;
  background: #42a5f5;
}

/* Barra progreso */
.progress-bar{
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0%;
  background: #42a5f5;
  z-index: 30;
}

/* Responsive contenido */
@media (max-width: 768px){

  .slide-content{
    padding: 0 24px;
    text-align: center;
    margin-top: 40px;
  }

  .slide-btns{
    justify-content: center;
  }

  .carousel-arrow{
    width: 44px;
    height: 44px;
  }

}





    .social-float-container {
        position: fixed;
        top: 50%;
        right: 28px;
        transform: translateY(-50%);
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 18px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* Cada item (icono) */
    .social-float-item {
        display: block;
        width: 58px;
        height: 58px;
        border-radius: 36px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(4px);
        box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.8);
        transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        position: relative;
        cursor: pointer;
        border: 1px solid rgba(255,255,255,0.55);
    }

    /* Estilo hover: expansión suave */
    .social-float-item:hover {
        transform: scale(1.12) translateX(-6px);
        box-shadow: 0 20px 32px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.9);
        background: white;
    }

    /* Tamaño y color de los íconos SVG */
    .social-float-item svg {
        width: 28px;
        height: 28px;
        transition: transform 0.25s ease;
    }

    .social-float-item:hover svg {
        transform: scale(1.02);
    }

    /* Tooltip elegante */
    .social-float-item .tooltip {
        position: absolute;
        right: 72px;
        background: rgba(20, 25, 35, 0.92);
        backdrop-filter: blur(12px);
        color: #f0f3f8;
        font-size: 0.85rem;
        font-weight: 500;
        padding: 6px 14px;
        border-radius: 40px;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        transform: translateX(12px) scale(0.92);
        transition: all 0.2s ease-out;
        font-family: 'Inter', system-ui, sans-serif;
        box-shadow: 0 6px 14px rgba(0,0,0,0.15);
        border: 0.5px solid rgba(255,255,255,0.2);
    }

    .social-float-item:hover .tooltip {
        opacity: 1;
        transform: translateX(0px) scale(1);
        transition-delay: 0.05s;
    }

    /* Responsive para móviles */
    @media (max-width: 640px) {
        .social-float-container {
            right: 16px;
            gap: 14px;
        }
        .social-float-item {
            width: 48px;
            height: 48px;
        }
        .social-float-item svg {
            width: 24px;
            height: 24px;
        }
        .social-float-item .tooltip {
            font-size: 0.75rem;
            padding: 4px 10px;
            right: 62px;
        }
    }

    /* Animación de entrada */
    @keyframes floatSlideUp {
        0% {
            opacity: 0;
            transform: translateY(25px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .social-float-item {
        animation: floatSlideUp 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
        opacity: 0;
    }

    /* Retrasos escalonados */
    .social-float-item:nth-child(1) { animation-delay: 0.05s; }
    .social-float-item:nth-child(2) { animation-delay: 0.15s; }
    .social-float-item:nth-child(3) { animation-delay: 0.25s; }

    /* Efecto de resplandor */
    @keyframes softGlow {
        0% { box-shadow: 0 0 0 0 rgba(255,255,245,0.3);}
        100% { box-shadow: 0 0 0 6px rgba(255,255,245,0);}
    }

    .social-float-item {
        animation: floatSlideUp 0.55s forwards, softGlow 0.7s ease-out;
    }

    /* Colores personalizados para cada red social en hover */
    .social-float-item.tiktok:hover {
        background: linear-gradient(135deg, #010101, #161616);
        border-color: rgba(0, 242, 254, 0.5);
        box-shadow: 0 12px 28px -8px rgba(0,0,0,0.4), 0 0 0 2px rgba(0,242,254,0.3);
    }
    .social-float-item.tiktok:hover svg {
        filter: drop-shadow(0 0 2px rgba(0,242,254,0.6));
    }
    
    .social-float-item.facebook:hover {
        background: #1877f2;
        border-color: #ffffff80;
    }
    .social-float-item.facebook:hover svg path {
        fill: white;
    }
    
    .social-float-item.instagram:hover {
        background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        border-color: rgba(255,255,210,0.6);
    }
    .social-float-item.instagram:hover svg path {
        fill: white;
    }

    /* Transición para los paths de los SVGs */
    .social-float-item svg path {
        transition: fill 0.25s ease;
    }

    /* Efecto al hacer clic */
    .social-float-item:active {
        transform: scale(0.98) translateX(-2px);
        transition: transform 0.1s;
    }







    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    #computron-splash {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Open Sans', sans-serif;
      overflow: hidden;
      transition: opacity 0.55s ease, visibility 0.55s ease;
    }
    #computron-splash.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    /* ── IMAGEN DE FONDO REAL ── */
    .splash-bg-img {
      position: absolute;
      inset: 0;
      background-image: url('https://images.unsplash.com/photo-1562774053-701939374585?w=1600&q=80');
      background-size: cover;
      background-position: center;
      opacity: 0.18;
      z-index: 0;
    }

    /* ── DEGRADADO ENCIMA DE LA IMAGEN ── */
    .splash-bg-gradient {
      position: absolute;
      inset: 0;
      background: linear-gradient(145deg,
        rgba(6,32,64,0.97)   0%,
        rgba(13,61,122,0.93) 30%,
        rgba(11,95,160,0.90) 60%,
        rgba(10,143,160,0.88) 85%,
        rgba(8,184,158,0.87) 100%);
      z-index: 1;
    }

    /* ── GRID PUNTILLADO ── */
    .splash-bg-dots {
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
      background-size: 30px 30px;
      animation: bgPan 22s linear infinite;
      z-index: 2;
    }
    @keyframes bgPan {
      from { background-position: 0 0; }
      to   { background-position: 60px 60px; }
    }

    /* ── ORBS ── */
    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(90px);
      opacity: 0.28;
      animation: pulse 7s ease-in-out infinite alternate;
      pointer-events: none;
      z-index: 3;
    }
    .orb-1 { width: 420px; height: 420px; background: #1ae4f0; top: -140px; left: -120px; animation-delay: 0s; }
    .orb-2 { width: 320px; height: 320px; background: #0046c8; bottom: -90px; right: -80px; animation-delay: 2.5s; }
    .orb-3 { width: 220px; height: 220px; background: #00d490; bottom: 25%; left: 5%; animation-delay: 4.5s; }
    @keyframes pulse {
      from { transform: scale(1);    opacity: 0.22; }
      to   { transform: scale(1.18); opacity: 0.38; }
    }

    /* ── MASCOTA ── */
    .mascot-wrap {
      position: absolute;
      right: -20px;
      bottom: -10px;
      width: min(370px, 50vw);
      opacity: 0.14;
      pointer-events: none;
      animation: mascotFloat 6s ease-in-out infinite alternate;
      filter: drop-shadow(0 0 40px rgba(90,230,255,0.45));
      z-index: 4;
    }
    @keyframes mascotFloat {
      from { transform: translateY(0px) rotate(-1deg); }
      to   { transform: translateY(-18px) rotate(1deg); }
    }

    /* ── CARD ── */
    .splash-card {
      position: relative;
      z-index: 5;
      width: min(430px, 93vw);
      background: rgba(255,255,255,0.10);
      backdrop-filter: blur(20px) saturate(170%);
      -webkit-backdrop-filter: blur(20px) saturate(170%);
      border: 1px solid rgba(255,255,255,0.22);
      border-radius: 26px;
      padding: 46px 38px 42px;
      box-shadow: 0 12px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.28);
      animation: cardIn 0.75s cubic-bezier(0.22,1,0.36,1) both;
    }
    @keyframes cardIn {
      from { opacity: 0; transform: translateY(30px) scale(0.96); }
      to   { opacity: 1; transform: translateY(0)   scale(1); }
    }

    .splash-title {
      font-family: 'Montserrat', sans-serif;
      font-weight: 800;
      font-size: clamp(1.28rem, 4.5vw, 1.58rem);
      color: #fff;
      text-align: center;
      line-height: 1.32;
      margin-bottom: 6px;
      text-shadow: 0 2px 14px rgba(0,0,0,0.30);
      animation: fadeUp 0.6s 0.15s both;
    }
    .splash-title span { color: #62eeff; }

    .splash-divider {
      width: 56px; height: 2px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
      margin: 17px auto 20px;
      animation: fadeUp 0.6s 0.25s both;
    }
    .splash-subtitle {
      font-size: 0.88rem;
      color: rgba(255,255,255,0.75);
      text-align: center;
      margin-bottom: 28px;
      letter-spacing: 0.3px;
      animation: fadeUp 0.6s 0.30s both;
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── BOTONES ── */
    .splash-btn {
      display: flex;
      align-items: center;
      gap: 14px;
      width: 100%;
      padding: 15px 20px;
      border: none;
      border-radius: 14px;
      cursor: pointer;
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 0.84rem;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      text-decoration: none;
      position: relative;
      overflow: hidden;
      transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
      margin-bottom: 13px;
    }
    .splash-btn:last-child { margin-bottom: 0; }
    .splash-btn::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
      transform: translateX(-100%);
      transition: transform 0.42s ease;
    }
    .splash-btn:hover::after { transform: translateX(110%); }
    .splash-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.32); filter: brightness(1.09); }
    .splash-btn:active { transform: translateY(0); }

    .btn-cajamarca { background: linear-gradient(135deg,#1258c4 0%,#1e88e5 100%); box-shadow: 0 4px 18px rgba(18,88,196,0.50); animation: fadeUp 0.6s 0.40s both; }
    .btn-lima      { background: linear-gradient(135deg,#00919e 0%,#26c6da 100%); box-shadow: 0 4px 18px rgba(0,145,158,0.50); animation: fadeUp 0.6s 0.50s both; }
    .btn-general   { background: linear-gradient(135deg,#008570 0%,#26a69a 100%); box-shadow: 0 4px 18px rgba(0,133,112,0.50); animation: fadeUp 0.6s 0.60s both; }

    .btn-icon {
      flex-shrink: 0;
      width: 38px; height: 38px;
      border-radius: 10px;
      background: rgba(255,255,255,0.18);
      display: flex; align-items: center; justify-content: center;
    }
    .btn-icon svg { width: 20px; height: 20px; fill: #fff; }
    .btn-label { flex: 1; text-align: left; }
    .btn-arrow { margin-left: auto; font-size: 1.15rem; opacity: 0.85; }
 





        .modal-overlay-inscripcion {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
        }

        .modal-overlay-inscripcion.active {
            opacity: 1;
            visibility: visible;
        }

        /* Contenedor del modal */
        .modal-container-inscripcion {
            background: #ffffff;
            max-width: 550px;
            width: 90%;
            border-radius: 32px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
            transform: scale(0.95) translateY(20px);
            transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            overflow: hidden;
            position: relative;
        }

        .modal-overlay-inscripcion.active .modal-container-inscripcion {
            transform: scale(1) translateY(0);
        }

        /* Header del modal */
        .modal-header-inscripcion {
            background: linear-gradient(135deg, #0b2b44 0%, #123e5e 100%);
            padding: 24px 28px;
            position: relative;
            color: white;
        }

        .modal-header-inscripcion h2 {
            font-size: 1.75rem;
            font-weight: 700;
            margin: 0;
            letter-spacing: -0.3px;
            font-family: 'Montserrat', 'Poppins', sans-serif;
        }

        .modal-header-inscripcion h2 span {
            font-weight: 300;
            opacity: 0.9;
        }

        .modal-header-inscripcion p {
            font-size: 0.85rem;
            margin: 8px 0 0;
            opacity: 0.8;
        }

        .btn-close-modal {
            position: absolute;
            top: 20px;
            right: 24px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            color: white;
            font-size: 24px;
            font-weight: 300;
            backdrop-filter: blur(4px);
        }

        .btn-close-modal:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: rotate(90deg);
        }

        /* Cuerpo del formulario */
        .modal-body-inscripcion {
            padding: 32px 28px 36px;
            background: #fefefe;
        }

        /* Grupos de formulario */
        .form-group-inscripcion {
            margin-bottom: 22px;
        }

        .form-group-inscripcion label {
            display: block;
            font-weight: 600;
            font-size: 0.85rem;
            margin-bottom: 8px;
            color: #1f2e3a;
            letter-spacing: 0.3px;
        }

        .form-group-inscripcion label .required {
            color: #e53e3e;
            margin-left: 3px;
        }

        .form-group-inscripcion input,
        .form-group-inscripcion select,
        .form-group-inscripcion textarea {
            width: 100%;
            padding: 14px 18px;
            font-size: 0.95rem;
            font-family: 'Poppins', 'Segoe UI', sans-serif;
            border: 1.5px solid #e2e8f0;
            border-radius: 20px;
            background-color: #ffffff;
            transition: all 0.25s ease;
            outline: none;
            color: #1a2c3e;
        }

        .form-group-inscripcion input:focus,
        .form-group-inscripcion select:focus,
        .form-group-inscripcion textarea:focus {
            border-color: #2c7da0;
            box-shadow: 0 0 0 4px rgba(44, 125, 160, 0.15);
        }

        .form-group-inscripcion textarea {
            resize: vertical;
            min-height: 85px;
        }

        /* Opciones de select agrupadas (optgroup) */
        select optgroup {
            font-weight: 700;
            color: #0b2b44;
            background: #f8fafc;
        }

        /* Botón enviar */
        .btn-submit-inscripcion {
            width: 100%;
            background: linear-gradient(105deg, #0f4c5f 0%, #1b6b85 100%);
            border: none;
            padding: 15px 20px;
            font-size: 1rem;
            font-weight: 700;
            font-family: 'Montserrat', sans-serif;
            color: white;
            border-radius: 40px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            transition: all 0.25s;
            margin-top: 10px;
            box-shadow: 0 6px 14px rgba(18, 62, 94, 0.25);
        }

        .btn-submit-inscripcion:hover {
            transform: translateY(-2px);
            background: linear-gradient(105deg, #0a3b4a 0%, #135c77 100%);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
        }

        .btn-submit-inscripcion:active {
            transform: translateY(1px);
        }

        /* Mensaje de éxito o error */
        .form-message {
            margin-top: 20px;
            text-align: center;
            font-size: 0.8rem;
            font-weight: 500;
            padding: 10px;
            border-radius: 50px;
            background: #f1f5f9;
            transition: all 0.2s;
        }

        .form-message.success {
            background: #dff9e6;
            color: #2e6b3e;
        }

        .form-message.error {
            background: #ffe6e5;
            color: #c23d2b;
        }

        /* Botón flotante para abrir modal (puedes colocarlo donde quieras en tu web) */
        .open-modal-btn {
            position: fixed;
            bottom: 30px;
            left: 30px;
            background: linear-gradient(135deg, #0f4c5f, #1b6b85);
            border: none;
            color: white;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
            padding: 14px 28px;
            border-radius: 60px;
            font-size: 1rem;
            cursor: pointer;
            box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 999;
            transition: transform 0.2s, background 0.2s;
            border: 1px solid rgba(255,255,255,0.2);
        }

        .open-modal-btn:hover {
            transform: translateY(-3px);
            background: linear-gradient(135deg, #0a3b4a, #0f5570);
        }

        /* Responsive */
        @media (max-width: 550px) {
            .modal-header-inscripcion h2 { font-size: 1.4rem; }
            .modal-body-inscripcion { padding: 28px 20px; }
            .form-group-inscripcion input,
            .form-group-inscripcion select { padding: 12px 16px; }
        }

    /* (Tus estilos se mantienen exactamente iguales - solo agrego un pequeño ajuste para el honeypot) */
    .modal-overlay-inscripcion { ... } /* tus estilos completos aquí */

    /* Honeypot oculto */
    .honeypot-field {
        position: absolute;
        left: -9999px;
        opacity: 0;
        height: 0;
        overflow: hidden;
    }




/* ================= NAVBAR MODERNA ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 78px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 10px 18px;
    color: #1e2a44;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(11, 43, 68, 0.08);
    color: #0b2b44;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #0b2b44, #1b6b85);
    color: white;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 20px;
    min-width: 280px;
    transition: all 0.3s ease;
    z-index: 999;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

/* Mega dropdown */
.mega-dropdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 620px;
}

/* Resto de estilos de dropdown (mantén los que ya tenías y agrega estos si faltan) */
.dropdown-section-title {
    font-weight: 700;
    color: #0b2b44;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: block;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

/* Botón Biblioteca */
.virtual-library-btn {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.virtual-library-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.3);
}





.pdf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.pdf-modal-container {
    width: 90%;
    max-width: 1100px;
    height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.pdf-modal-header {
    padding: 16px 24px;
    background: linear-gradient(135deg, #0b2b44, #1565c0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdf-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 4px 12px;
}

.pdf-modal-body {
    height: calc(100% - 70px);
    background: #f8fafc;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}




/* ================= FIX MODAL DOCENTES ================= */
#docentesCVModal.modal-overlay,
#conveniosModal.modal-overlay,
#registroInscripcionModal.modal-overlay {
    z-index: 30000 !important;
}

.modal-overlay {
    z-index: 25000 !important;
    display: none; /* importante para control con JS */
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Asegurar que el contenedor se vea bien */
.modal-container {
    z-index: 30001 !important;
    position: relative;
}

/* Evitar que otros estilos rompan los modales */
.pdf-modal-overlay {
    z-index: 99999 !important;
}

/* Aumentar z-index del navbar para que no tape modales */
.navbar {
    z-index: 10000 !important;
}