:root {
  --banner: #1D4567;
  --btn: #3984C6;
  --ice: #F6F8FA;
  --text: #222831;
  --muted: #6b7280;
  --card-bg: #f3f6f9;
}
html, body {
  height: 100%;
  margin: 0;
}

* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--ice);
  color: var(--text);
  line-height: 1.5;
}

/* CONTAINERS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ============================================================
   HERO - Estandarización unificada para todos los heroes
   ============================================================ */

/* Hero base (se aplica a cualquier hero que tenga la clase .hero-base) */
.hero-base {
  position: relative;
  height: 460px !important;
  min-height: 460px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  background: var(--banner);
}

/* Contenedor del contenido (debe estar presente en todos los heroes) */
.hero-base .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
}

/* Logo estandarizado */
.hero-base .hero-logo {
  height: 90px !important;
  width: auto !important;
  margin-bottom: 25px !important;
  object-fit: contain;
  display: inline-block;
}

/* Título estandarizado (usa la clase .hero-title o h1) */
.hero-base .hero-title,
.hero-base h1 {
  font-size: 2.1rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  max-width: 900px;
  letter-spacing: 0.6px;
  color: #f8fbff;
}

/* ============================================================
   MANTENER ESTILOS ÚNICOS DE CADA HERO
   ============================================================ */

/* Home (ya tiene altura 460px, se mantiene) */
.page-home .hero {
  height: 460px !important;
  min-height: 460px !important;
}

/* Método INDETEC (gradiente y animación) */
.metodo-hero {
  background: linear-gradient(180deg, #0a3a65, #0f4e93) !important;
}
.metodo-hero .hero-logo {
  animation: float 3s ease-in-out infinite;
}

/* Ingresantes (gradiente y animación) */
.ingresantes-hero {
  background: linear-gradient(to bottom, #0f3c5d, #0d2b44) !important;
}
.ingresantes-hero .hero-logo {
  animation: float 3s ease-in-out infinite;
}

/* Animación float (compartida) */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE - MANTENER PROPORCIONES
   ============================================================ */
@media (max-width: 900px) {
  .hero-base {
    height: 360px !important;
    min-height: 360px !important;
  }
  
  .hero-base .hero-logo {
    height: 70px !important;
  }
  
  .hero-base .hero-title,
  .hero-base h1 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 480px) {
  .hero-base {
    height: 300px !important;
    min-height: 300px !important;
  }
  
  .hero-base .hero-logo {
    height: 56px !important;
  }
  
  .hero-base .hero-title,
  .hero-base h1 {
    font-size: 1.4rem !important;
  }
}

/* ============================================================
   HERO ORIGINAL (para páginas sin estandarizar, se mantiene)
   ============================================================ */
.hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  background: var(--banner);
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
  transition: transform .12s linear;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: #3984c7;
  transform-origin: top right;
  transform: skewX(21deg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #1d4568;
  z-index: 1;
  mix-blend-mode: multiply;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}
.hero-logo {
  height: 86px;
  opacity: 0.95;
  margin-bottom: 18px;
}
.hero-title {
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin: 0 auto;
  color: #f8fbff;
}
/* COMPROMISO */
.comp-row {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.comp-text {
  flex: 1 1 520px;
  padding-right: 20px;
}
.comp-text h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
.comp-text p {
  font-size: 1.05rem;
  color: var(--muted);
}
.comp-image {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.circle-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(25, 35, 50, 0.08);
  background: white;
}
.circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.decor-lines {
  position: absolute;
  right: -10px;
  top: -6px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(57, 132, 198, 0.12) 0%, rgba(29, 69, 103, 0.06) 100%);
  transform: rotate(12deg);
  border-radius: 12px;
  pointer-events: none;
}

/* INSCRIPCIONES */
.inscripciones {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  background-color: var(--banner);
}
.inscripciones-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
  z-index: 1;
}
.inscripciones-inner {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 1000px;
}
.inscripciones h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  letter-spacing: 0.6px;
}
.inscripciones .lead {
  color: #f0f6fa;
  font-weight: 500;
  margin-bottom: 18px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* CATEGORIAS */
.section-title {
  text-align: center;
  margin-bottom: 28px;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--muted);
}
.cat-row {
  display: flex;
  gap: 28px;
  align-items: stretch;
  flex-wrap: wrap;
}
.cat-image {
  flex: 1 1 480px;
  min-height: 380px;
  overflow: hidden;
  border-radius: 8px;
}
.cat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-grid {
  flex: 1 1 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cat-box {
  background: #fff;
  padding: 28px;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(6, 12, 24, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: transform .28s ease, box-shadow .28s ease;
}
.cat-box h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.cat-box p {
  color: var(--muted);
  margin: 0;
}
.cat-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(6, 12, 24, 0.08);
}

/* BOTONES */
.btn {
  font-family: inherit;
  border: 0;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
.btn.primary {
  background: var(--btn);
  color: white;
  padding: 10px 20px;
  border-radius: 26px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn.primary.large {
  padding: 14px 36px;
  font-size: 1.02rem;
}
.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(57, 132, 198, 0.18);
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-radius: 20px;
  padding: 8px 12px;
}
.btn.small {
  padding: 8px 10px;
  font-size: .92rem;
}

/* FOOTER */
.site-footer {
  padding: 36px 0;
  background: #0b1720;
  color: #d7e7f0;
  text-align: center;
  margin-top: 40px;
}

/* ANIMACIONES */
.fade-slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s cubic-bezier(.2, .9, .3, 1);
}
.fade-from-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all .9s cubic-bezier(.2, .9, .3, 1);
}
.visible {
  opacity: 1;
  transform: none;
}

/* CURSOS CORTOS */
.cursos-cortos {
  background-color: #337AB7;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.curso-card {
  background-color: #1D4567;
  color: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
  max-width: 750px;
  padding: 40px 60px;
  text-align: justify;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.curso-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.curso-card h2 {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #cfdedc;
  padding-bottom: 10px;
}
.curso-card .btn {
  margin-top: 25px;
  display: block;
  margin-inline: auto;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .comp-row {
    flex-direction: column-reverse;
    gap: 18px;
  }
  .comp-image {
    order: 1;
    margin-bottom: 8px;
  }
  .comp-text {
    order: 2;
    padding: 0;
  }
  .hero {
    height: 360px;
  }
  .hero-logo {
    height: 70px;
  }
  /* ELIMINADA LA LÍNEA .nav-links{display:none} */
  .cat-row {
    flex-direction: column;
  }
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .hero {
    height: 300px;
  }
  .hero-title {
    font-size: 1.25rem;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .nav-links .dropdown-menu {
    position: relative;
    box-shadow: none;
    background: transparent;
    padding-left: 15px;
  }
  .nav-links .dropdown-menu a {
    padding: 8px 0;
  }
}

/* ==== FORZAR POPPINS SOLO EN EL HEADER (EXCEPTO ICONOS) ==== */
#siteHeader,
#siteHeader *:not(.fab):not(.fas):not(.far):not(.fa) {
  font-family: "Poppins", sans-serif !important;
  font-weight: 400 !important;
}

/* ============================================================
   FIX GLOBAL PARA <a class="btn"> — evitar subrayado
   ============================================================ */
a.btn,
a.primary,
a.btn.primary,
a.btn.primary.large {
  text-decoration: none !important;
  color: inherit;
  display: inline-block;
}
a.btn:hover,
a.primary:hover,
a.btn.primary:hover {
  text-decoration: none !important;
}

/* ============================================================
   CONVOCATORIA — centrar todo el bloque como debe verse
   ============================================================ */
.convocatoria {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: var(--banner);
  color: white;
}
.convocatoria-content {
  max-width: 780px;
  margin: 0 auto;
}
.convocatoria-content h2 {
  margin-bottom: 16px;
}
.convocatoria-content p {
  margin-bottom: 22px;
  color: #e7eef5;
}
.convocatoria-content a.btn.primary {
  margin-top: 18px;
  text-decoration: none !important;
}

/* ============================================================
   OPCIONAL (recomendado): botón INDETEC más consistente
   ============================================================ */
.convocatoria .btn.primary {
  background: var(--btn);
  padding: 12px 34px;
  border-radius: 28px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease;
}
.convocatoria .btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(57, 132, 198, 0.20);
}

/* ============================================================
   UBICACIÓN — diseño mejorado
   ============================================================ */
.ubicacion {
  text-align: center;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.ubicacion h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--banner);
  margin-bottom: 30px;
}
.map-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}
.ubicacion.fade-slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.ubicacion.fade-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}