/* =========================
   HEADER
========================= */
.site-header{
  font-family: 'Poppins', sans-serif;
  width: 100%;
  background: #fff;
}

/* =========================
   HEADER TOP
========================= */
.header-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 20px;
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,0.04);
  font-size:0.95rem;
}

.header-top .socials a{
  margin-right:10px;
  color: #2a6ebb;  /* Solo cambié esto a azul */
  text-decoration:none;
  font-weight:600;
}

.header-top .phone{
  margin-left:12px;
  color:var(--muted);
}

/* =========================
   BOTÓN HEADER GENERAL
========================= */
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: white;
  color: #2a6ebb;
  border: 2px solid #2a6ebb;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  gap: 8px;
  height: 44px;
  box-sizing: border-box;
  line-height: 1;
}

.btn-header:hover {
  background: #2a6ebb;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 110, 187, 0.2);
}

.btn-header:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(42, 110, 187, 0.2);
}

/* Icono dentro del botón */
.btn-header .whatsapp-icon {
  width: 10px;
  height: 10px;
  fill: currentColor;
  flex-shrink: 0;
}

/* =========================
   BOTÓN WHATSAPP ESPECÍFICO
========================= */
.btn-header.whatsapp {
  background: white;
  color: #2a6ebb;
  border: 2px solid #2a6ebb;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  height: 44px;
}

.btn-header.whatsapp:hover {
  background: #2a6ebb;
  color: white;
}

/* =========================
   BOTÓN INSCRIPCIONES (si es necesario específico)
========================= */
.btn-header.inscripciones {
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  height: 44px;
}

/* Asegurar que ambos botones tengan el mismo tamaño en header-top */
.header-actions .btn-header {
  min-width: 120px;
  text-align: center;
}

/* Para mobile en el menú */
@media (max-width: 1024px) {
  .whatsapp-mobile.mobile-only a.btn-header.whatsapp {
    padding: 12px 24px !important;
    height: 48px !important;
    font-size: 1rem !important;
  }
}
/* =========================
   NAV
========================= */
.nav-main{
  background:#fff;
  box-shadow:0 2px 10px rgba(2,6,23,0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* =========================
   LOGO
========================= */
.logo img{
  height:48px;
  display:block;
}

/* =========================
   LINKS DESKTOP
========================= */
.nav-links{
  display:flex;
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
  align-items:center;
}

.nav-links a{
  text-decoration:none;
  color:var(--muted);
  font-weight:500;
  padding:8px 6px;
  position:relative;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:3px;
  background:var(--btn);
  transition:width .25s ease;
  border-radius:3px;
}

.nav-links a:hover::after{
  width:100%;
}

/* =========================
   DROPDOWN DESKTOP
========================= */
.dropdown{
  position:relative;
}

.dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  background:white;
  list-style:none;
  padding:10px 0;
  margin:0;
  min-width:200px;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  border-radius:6px;
  display:none;
  z-index:50;
}

.dropdown:hover .dropdown-menu{
  display:block;
}

.dropdown-menu a{
  padding:10px 20px;
  display:block;
  color:#333;
  font-weight:500;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.dropdown-menu a:hover{
  background:#e6eef7;
  color:var(--btn);
}

/* =========================
   HAMBURGER
========================= */
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:6px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.nav-toggle span{
  width:26px;
  height:3px;
  background:var(--banner);
  border-radius:2px;
  transition:transform .3s ease, opacity .2s ease;
}

/* animación X */
.nav-toggle.open span:nth-child(1){
  transform:translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2){
  opacity:0;
}

.nav-toggle.open span:nth-child(3){
  transform:translateY(-9px) rotate(-45deg);
}

/* =========================
   MOBILE / TABLET
========================= */
@media (max-width:1024px){

  .header-top{
    display:none;
  }

  .nav-toggle{
    display:flex;
  }

  .nav-links{
    display:none;
    flex-direction:column;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    padding:20px;
    gap:18px;
    box-shadow:0 15px 30px rgba(0,0,0,.15);
    z-index:9999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-links.active{
    display:flex;
  }

  .nav-links a {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: 0;
    width: 100%;
    display: block;
    padding: 12px 0;
  }
  
  .nav-links a:hover::after {
    width: 0;
  }

  /* dropdown mobile */
  .dropdown-menu{
    position:relative;
    box-shadow:none;
    padding-left:0;
    margin-top:8px;
    display:none;
    background: #f8f9fa;
    border-left: 3px solid var(--btn);
    animation: slideDown 0.3s ease forwards;
    margin-left: 10px;
  }
  
  .dropdown-menu a {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    border-bottom: 1px solid #eaeaea;
  }
  
  .dropdown-menu a:last-child {
    border-bottom: none;
  }
  
  .dropdown-menu a:hover {
    background: #e6eef7;
    color: var(--btn);
  }
  
  .dropdown > a {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    padding: 12px 0;
  }
}

/* Animación para dropdowns */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   FIX HEADER MOBILE - REGLAS ADICIONALES CRÍTICAS
===================================================== */
@media (max-width: 1024px) {
  .site-header {
    position: relative;
    z-index: 10000;
  }

  .nav-main {
    z-index: 10001;
  }

  .nav-links.active {
    z-index: 10002;
  }

  .dropdown .dropdown-menu {
    display: none !important;
  }
  
  .dropdown.open .dropdown-menu {
    display: block !important;
  }
  
  .dropdown:hover .dropdown-menu,
  .dropdown:focus .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: none !important;
  }
  
  .dropdown.open .dropdown-menu,
  .dropdown.open:hover .dropdown-menu,
  .dropdown.open:focus .dropdown-menu {
    display: block !important;
  }
}

/* =====================================================
   FIX VISIBILIDAD ABSOLUTA
===================================================== */
@media (max-width: 1024px) {
  .nav-links .dropdown.open .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .nav-links .dropdown:not(.open) .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* =====================================================
   ELIMINAR SUBRAYADO AZUL EN TODOS LOS ELEMENTOS CLICKEABLES
===================================================== */
@media (max-width: 1024px) {
  .nav-links a:active,
  .nav-links a:focus,
  .dropdown > a:active,
  .dropdown > a:focus,
  .dropdown-menu a:active,
  .dropdown-menu a:focus,
  .nav-toggle:active,
  .nav-toggle:focus {
    background-color: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
  }
  
  .nav-links a,
  .dropdown > a,
  .dropdown-menu a {
    -webkit-touch-callout: none;
  }
  
  .nav-links a,
  .dropdown > a,
  .dropdown-menu a,
  .nav-toggle {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
  }
}

/* =========================
   WHATSAPP MOBILE - CORREGIDO
========================= */
@media (max-width: 1024px) {
  /* Ocultar WhatsApp en header-top en mobile */
  .header-actions .btn-header.whatsapp {
    display: none !important;
  }
  
  /* Mostrar WhatsApp en menú móvil */
  .whatsapp-mobile.mobile-only {
    display: block !important;
    width: 100%;
    margin-top: 15px;
    list-style: none;
  }
  
  /* Estilos específicos para el botón WhatsApp en mobile */
  .whatsapp-mobile .btn-header.whatsapp {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    background: white !important;
    color: #2a6ebb !important;
    border: 2px solid #2a6ebb !important;
    border-radius: 30px !important;
    margin-top: 10px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }
  
  .whatsapp-mobile .btn-header.whatsapp .whatsapp-icon {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
  }
  
  .whatsapp-mobile .btn-header.whatsapp:hover {
    background: #2a6ebb !important;
    color: white !important;
  }
}

/* =========================
   WHATSAPP DESKTOP
========================= */
@media (min-width: 1025px) {
  /* Ocultar WhatsApp en menú móvil en desktop */
  .whatsapp-mobile.mobile-only {
    display: none !important;
  }
  
  /* Mostrar WhatsApp en header-top en desktop */
  .header-actions .btn-header.whatsapp {
    display: inline-flex !important;
    margin-left: 12px;
  }
}

/* =====================================================
   FIX DEFINITIVO PARA BOTÓN WHATSAPP MOBILE
   (Agregar esto al final para máxima prioridad)
===================================================== */
.whatsapp-mobile.mobile-only a.btn-header.whatsapp {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: white !important;
  color: #2a6ebb !important;
  border: 2px solid #2a6ebb !important;
  border-radius: 30px !important;
  padding: 12px 20px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 10px auto 0 auto !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  gap: 8px !important;
}

.whatsapp-mobile.mobile-only a.btn-header.whatsapp:hover {
  background: #2a6ebb !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(42, 110, 187, 0.2) !important;
}

.whatsapp-mobile.mobile-only a.btn-header.whatsapp:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(42, 110, 187, 0.2) !important;
}

.whatsapp-mobile.mobile-only a.btn-header.whatsapp .whatsapp-icon {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
  flex-shrink: 0 !important;
}