/* -------------------------------------------------------
   BARRA SUPERIOR
------------------------------------------------------- */
.top-info {
    background: transparent !important;
    color: #fff;
    padding: 6px 20px;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 3100 !important;
}

/* -------------------------------------------------------
   HEADER PREMIUM — CORREGIDO
------------------------------------------------------- */
.header-premium {
    width: 100%;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 10px 0 15px 0;
    position: absolute !important;
    top: 40px;
    left: 0;
    z-index: 3000 !important;
}

/* CONTENEDOR */
.header-container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* -------------------------------------------------------
   LOGO + TAGLINE
------------------------------------------------------- */
.logo-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
}

.logo-tagline {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
}

/* -------------------------------------------------------
   BOTONES CURSOS + BROCHURE
------------------------------------------------------- */
.header-buttons {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.btn-cursos-header-link,
.btn-brochure-header-link {
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    line-height: 1.1;
    color: #fff;
    animation: slideInCursos 1.2s ease forwards;
    opacity: 0;
}

.btn-cursos-header-link {
    background: #005bbb;
}

.btn-brochure-header-link {
    background: #c62828;
}

/* -------------------------------------------------------
   ANIMACIÓN DESLIZANDO DESDE LA DERECHA
------------------------------------------------------- */
@keyframes slideInCursos {
    0% { transform: translateX(120px); opacity: 0; }
    60% { transform: translateX(-10px); opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}

/* -------------------------------------------------------
   MENÚ COMPLETO ABAJO
------------------------------------------------------- */
.header-nav-full {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.header-nav-full .nav-item {
    color: #005bbb !important;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    transition: 0.2s ease-in-out;
}

.header-nav-full .nav-item:hover {
    color: #0077ff !important;
}

/* -------------------------------------------------------
   DROPDOWN
------------------------------------------------------- */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 260px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 9999;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #222;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s ease-in-out;
}

.dropdown-content a:hover {
    background: #f0f0f0;
}

/* -------------------------------------------------------
   RESPONSIVE (MOBILE)
------------------------------------------------------- */
@media (max-width: 768px) {

    /* Header fijo y compacto */
    .header-premium {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        width: 100%;
        padding: 12px 0 !important;
        background: rgba(0,0,0,0.45) !important;
        backdrop-filter: blur(6px);
        z-index: 5000 !important;
    }

    /* Ocultar barra superior */
    .top-info {
        display: none !important;
    }

    .logo img {
        height: 55px;
    }

    .logo-tagline {
        display: none !important;
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-cursos-header-link,
    .btn-brochure-header-link {
        width: 100%;
        text-align: center;
        padding: 16px;
        font-size: 17px;
    }

    /* Menú en columna */
    .header-nav-full {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 12px !important;
        width: 100%;
        padding-bottom: 10px !important;
    }

    .header-nav-full .nav-item {
        width: 100%;
        padding: 12px 0;
        text-align: left;
        font-size: 18px;
        color: #e6f0ff !important;
        text-shadow: 0 0 4px rgba(0,0,0,0.6);
    }

    .dropdown-content {
        position: relative;
        background: none;
        box-shadow: none;
        padding-left: 15px;
        width: 100%;
    }

    .dropdown-content a {
        font-size: 16px;
        padding: 8px 0;
        width: 100%;
        text-align: left;
    }

    /* Mostrar todo el menú (luego lo reducimos con hamburguesa) */
    .header-nav-full .nav-item,
    .header-nav-full .dropbtn {
        display: block !important;
    }
}

/* -------------------------------------------------------
   HEADER EN FILA PARA PC
------------------------------------------------------- */
.header-desktop-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* BOTONES A LA DERECHA */
.header-buttons-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ACHICAR HEADER EN PC */
@media (min-width: 1024px) {

    .header-premium {
        padding: 6px 0 8px 0 !important;
    }

    .logo img {
        height: 58px !important;
    }

    .logo-tagline {
        font-size: 16px !important;
    }

    .header-nav-compact {
        margin-top: 6px !important;
    }
}

/* Alinear TODOS los ítems del menú en PC */
.header-nav-full .nav-item,
.header-nav-full .dropbtn {
    padding: 10px 10px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 42px !important;
}
/* ============================
   OCULTAR HAMBURGUESA EN PC
============================ */
.menu-toggle {
    display: none !important;
}

/* ============================
   MOBILE: MOSTRAR HAMBURGUESA
============================ */
@media (max-width: 768px) {

    .menu-toggle {
        display: block !important;
        font-size: 32px;
        color: #fff;
        cursor: pointer;
        padding: 6px 12px;
        z-index: 6000;
    }

    /* Ocultar menú completo en mobile */
    .header-nav-full {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.75);
        padding: 20px;
        border-radius: 0 0 12px 12px;
    }

    /* Mostrar menú cuando se toca ☰ */
    .header-nav-full.active {
        display: flex !important;
    }

    /* Ocultar ítems que NO deben aparecer en mobile */
    .pc-only {
        display: none !important;
    }
}
/* ============================
   MOBILE — MENÚ EN BLANCO
============================ */
@media (max-width: 768px) {

    /* Ítems del menú */
    .header-nav-full .nav-item,
    .header-nav-full .dropbtn {
        color: #ffffff !important;
        text-shadow: 0 0 6px rgba(0,0,0,0.7);
    }

    /* Ítems dentro del dropdown */
    .dropdown-content a {
        color: #ffffff !important;
        text-shadow: 0 0 6px rgba(0,0,0,0.7);
    }

    /* Fondo del menú desplegado */
    .header-nav-full.active {
        background: rgba(0,0,0,0.75) !important;
    }
}
/* BOTONES TRANSPARENTES + TEXTO AZUL EVH */
.btn-cursos-header-link,
.btn-brochure-header-link {
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    line-height: 1.1;

    background: transparent !important; /* transparente */
    color: #005bbb !important;          /* azul EVH */
    border: 2px solid #005bbb !important; /* borde azul */
    transition: 0.25s ease;
}

/* Hover */
.btn-cursos-header-link:hover,
.btn-brochure-header-link:hover {
    background: rgba(255,255,255,0.12) !important; /* leve brillo */
    border-color: #0077ff !important;              /* azul más claro */
    color: #0077ff !important;
}
/* BOTÓN WHATSAPP FIJO */
.whatsapp-fixed {
    position: fixed;
    bottom: 22px;
    right: 22px; /* ← AHORA A LA DERECHA */
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 20px;
    border-radius: 50px;

    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);

    color: #005bbb;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;

    border: 2px solid #005bbb;
    transition: 0.25s ease;

    animation: waBounce 2.2s infinite ease-in-out;
}

.whatsapp-fixed img {
    width: 26px;
    height: 26px;
}

/* EFECTO SALTO */
@keyframes waBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* HOVER */
.whatsapp-fixed:hover {
    background: rgba(255,255,255,0.15);
    border-color: #0077ff;
    color: #0077ff;
}