:root{
  --banner:#1D4567;
  --btn:#3984C6;
  --ice:#F6F8FA;
  --text:#222831;
  --muted:#6b7280;
  --card-bg:#f3f6f9;
}

*{box-sizing:border-box}

html,body{
  height:100%;
  margin:0;
}

body{
  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
========================= */
.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-size:cover;
  background-position:center;
  opacity:.12;
  pointer-events:none;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:#1d4568;
  mix-blend-mode:multiply;
  z-index:1;
}

.hero::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:30%;
  height:100%;
  background:#3984c7;
  transform:skewX(21deg);
  z-index:2;
}

.hero-content{
  position:relative;
  z-index:3;
  max-width:900px;
  padding:20px;
}

.hero-logo{
  height:86px;
  margin-bottom:18px;
}

.hero-title{
  font-size:2rem;
  font-weight:700;
  letter-spacing:.6px;
  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;
  box-shadow:0 10px 30px rgba(25,35,50,.08);
  background:white;
}

.circle-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* =========================
   INSCRIPCIONES
========================= */
.inscripciones{
  position:relative;
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:white;
  background:var(--banner);
}

.inscripciones-overlay{
  position:absolute;
  inset:0;
  background:rgba(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;
}

.inscripciones .lead{
  color:#f0f6fa;
  margin-bottom:18px;
}

/* =========================
   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;
  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;
}

.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,.04);
  text-align:center;
  transition:.28s;
}

.cat-box:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 30px rgba(6,12,24,.08);
}

/* =========================
   BOTONES
========================= */
.btn{
  border:0;
  padding:8px 14px;
  border-radius:10px;
  cursor:pointer;
  background:transparent;
}

.btn.primary{
  background:var(--btn);
  color:white;
  padding:10px 20px;
  border-radius:26px;
  font-weight:600;
  transition:.18s;
  text-decoration: none;
}

.btn.primary.large{
  padding:14px 36px;
}

.btn.primary:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 22px rgba(57,132,198,.18);
}

/* =========================
   CURSOS CORTOS
========================= */
.cursos-cortos{
  background:#337AB7;
  padding:80px 20px;
  display:flex;
  justify-content:center;
}

.curso-card{
  background:#1D4567;
  color:white;
  border-radius:8px;
  padding:40px 60px;
  max-width:750px;
  opacity:0;
  transform:translateY(40px);
  transition:.8s;
}

.curso-card.visible{
  opacity:1;
  transform:none;
}

.curso-card h2{
  text-align:center;
  margin-bottom:20px;
  border-bottom:1px solid #cfdedc;
}

/* =========================
   CONVOCATORIA
========================= */
.convocatoria{
  display:flex;
  justify-content:center;
  text-align:center;
  padding:80px 20px;
  background:var(--banner);
  color:white;
}

.convocatoria-content{
  max-width:780px;
}

/* =========================
   UBICACIÓN
========================= */
.ubicacion{
  text-align:center;
  padding:80px 20px;
  max-width:900px;
  margin:0 auto;
}

.map-container{
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 24px rgba(0,0,0,.15);
}

/* =========================
   ANIMACIONES
========================= */
.fade-slide-up{
  opacity:0;
  transform:translateY(20px);
  transition:.8s cubic-bezier(.2,.9,.3,1);
}

.fade-from-right{
  opacity:0;
  transform:translateX(40px);
  transition:.9s cubic-bezier(.2,.9,.3,1);
}

.visible{
  opacity:1;
  transform:none;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:900px){
  .hero{height:360px}
}

@media (max-width:480px){
  .container{padding:24px 16px}
  .hero{height:300px}
  .hero::after{display:none}
  .hero-title{font-size:1.25rem}
}
/* =====================================================
   FIX DEFINITIVO HEADER MOBILE (NO TOCAR)
===================================================== */

/* permitir que el menú se despliegue */
body,
.site-header,
.nav-main,
.nav-inner {
  overflow: visible !important;
}

/* asegurar jerarquía visual */
.site-header {
  position: relative;
  z-index: 9999;
}

.nav-main {
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* menú mobile visible */
@media (max-width: 1024px) {

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
  }

  /* dropdown mobile */
  .dropdown-menu {
    display: none;
  }

  .dropdown.open > .dropdown-menu {
    display: block;
  }
}
/* =====================================================
   FIX HEADER MOBILE — HERO NO DEBE TAPAR EL MENU
===================================================== */
@media (max-width: 1024px) {

  /* el hero no puede tapar el nav */
  .hero {
    position: relative;
    z-index: 1;
  }

  /* el header siempre arriba */
  .site-header {
    position: relative;
    z-index: 10000;
  }

  .nav-main {
    z-index: 10001;
  }

  /* menu desplegado por encima de todo */
  .nav-links.active {
    z-index: 10002;
  }
}
/* =========================
   FIX CONTENEDOR HEADER
========================= */
#header{
  display: block;
  width: 100%;
  position: relative;
  z-index: 100;
}
/* =========================
   FIX DEFINITIVO HEADER DINÁMICO
========================= */
#header{
  display: block !important;
  width: 100%;
  height: auto;
  overflow: visible;
  position: relative;
  z-index: 1000;
}
/* =====================================================
   ELIMINACIÓN COMPLETA DE TODO HOVER/FOCUS AZUL
===================================================== */

/* Reset total para todos los navegadores */
*:focus,
*:active,
*:hover:active,
*:hover:focus {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Para elementos específicos que suelen tener el problema */
a,
button,
input,
select,
textarea,
[role="button"],
[tabindex] {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Quitar el outline azul de focus en todos los elementos */
:focus {
  outline: 0 !important;
  outline-style: none !important;
  outline-width: 0 !important;
  box-shadow: none !important;
}

/* Desactivar el highlight en móviles completamente */
@media (hover: none) and (pointer: coarse) {
  * {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
  }
  
  a:active,
  button:active,
  input:active,
  [role="button"]:active {
    background-color: transparent !important;
    opacity: 1 !important;
  }
}

/* Para iOS específicamente */
@supports (-webkit-touch-callout: none) {
  * {
    -webkit-tap-highlight-color: transparent !important;
  }
}

/* Para Chrome/Android */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  * {
    -webkit-tap-highlight-color: transparent !important;
  }
}