/* ==========================================
   HEADER TRANSPARENTE INDEPENDIENTE
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background-color: transparent;
    padding: 22px 40px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* --- Brand (Logo Autogestionable + Slogan) --- */
.header-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    gap: 12px;
}

.brand-logo {
    height: 28px !important;
    width: auto !important;
    max-width: 180px !important;
    display: block !important;
    object-fit: contain !important;
}

.brand-divider {
    color: #ffffff;
    font-size: 20px;
    font-weight: 300;
    opacity: 0.8;
}

.brand-slogan {
    color: #ffffff;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* --- Navegación --- */
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 14px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.nav-menu a:hover {
    opacity: 0.75;
}

.nav-menu .sep {
    color: #ffffff;
    opacity: 0.5;
    font-size: 14px;
    pointer-events: none;
}

/* --- Botón Contacto (#EB0618) --- */
.btn-contacto {
    background-color: #EB0618 !important;
    color: #ffffff !important;
    padding: 7px 20px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: inline-block;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.btn-contacto:hover {
    background-color: #c40413 !important;
    transform: scale(1.04);
}

/* --- Redes Sociales --- */
.header-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-social a {
    color: #ffffff;
    font-size: 16px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-social a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.soc-sep {
    color: #ffffff;
    opacity: 0.5;
    font-size: 14px;
    pointer-events: none;
}

/* ==========================================
   ESTADO SCROLL (.is-scrolled)
   ========================================== */
.site-header.is-scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 14px 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   RESPONSIVE MÓVIL
   ========================================== */
.nav-toggle {
    display: none;
}

@media (max-width: 1100px) {
    .brand-divider, .brand-slogan {
        display: none !important;
    }

    .site-header {
        padding: 16px 20px;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 100001;
    }

    .nav-toggle span {
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #2222FF;
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100000;
        gap: 30px;
    }

    .header-nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1.8rem;
        font-weight: bold;
    }

    .nav-menu .sep, .soc-sep {
        display: none !important;
    }

    .btn-contacto {
        font-size: 1.3rem !important;
        padding: 10px 30px !important;
    }

    .header-social {
        gap: 20px;
    }

    .header-social a {
        font-size: 22px;
    }
}