/* -------------------------------------------------------
   BARRA SUPERIOR
------------------------------------------------------- */
.top-info {
    background: #111;
    color: #fff;
    padding: 6px 20px;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    position: relative;
    z-index: 3000; /* SIEMPRE ARRIBA DEL HERO */
}

/* -------------------------------------------------------
   HEADER
------------------------------------------------------- */
.header {
    background: rgba(235,235,235,0.78);
    backdrop-filter: blur(3px);
    padding: 4px 0;
    position: sticky;
    top: 0;
    z-index: 2800; /* ENTRE TOP-INFO Y HERO */
    overflow: visible;

    /* FIX CRÍTICO: antes estaba "isolation: isolate" y rompía el slider */
    isolation: auto;
}

.header .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* -------------------------------------------------------
   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: #0c314f;
    white-space: nowrap;
    line-height: 1;
}

/* -------------------------------------------------------
   NAVEGACIÓN
------------------------------------------------------- */
.nav {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2850; /* SOBRE EL HERO PERO BAJO TOP-INFO */
}

.nav a,
.nav .dropbtn {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 5px;
    transition: 0.2s ease-in-out;
    font-size: 18px;
    display: inline-block;
}

.nav a:hover,
.nav .dropbtn:hover {
    color: #d4a017;
}

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

.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);
    z-index: 2870;
    border-radius: 4px;
    padding: 8px 0;
}

.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;
}

/* -------------------------------------------------------
   SUBMENÚS LATERALES
------------------------------------------------------- */
.sub-dropdown {
    position: relative;
}

.sub-dropbtn {
    display: block;
    padding: 10px 15px;
    cursor: pointer;
}

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

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

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

    .logo img {
        height: 48px;
    }

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

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .nav {
        gap: 12px;
        flex-wrap: wrap;
    }

    .dropdown-content {
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        min-width: unset;
        box-shadow: none;
        border: none;
    }

    .dropdown-content a {
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 38px;
    }
}