/* ===== ESTILOS ÚNICOS PARA HEADER BLUE LIFE ===== */
/* Estos estilos no interferirán con otros elementos */

/* Reset específico para el header */
.bl-header-reset {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Contenedor principal del header */
.bl-header-main {
    background-color: #03355c;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* Z-index muy alto para evitar superposiciones */
    isolation: isolate;
    /* Crea nuevo contexto de apilamiento */
}

/* Contenedor para logo y hamburguesa */
.bl-header-left-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Estilos del logo */
.bl-header-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}

.bl-header-dot {
    color: #b6e7fe;
}

/* Navegación principal */
.bl-header-nav {
    display: flex;
    align-items: center;
}

.bl-header-nav a {
    color: white;
    margin: 0 0.75rem;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    font-family: Arial, sans-serif;
}

.bl-header-nav a:hover {
    color: #b6e7fe;
}

/* Botón de contacto específico */
.bl-header-contact-btn {
    background-color: #b6e7fe;
    padding: 0.5rem 4rem;
    border-radius: 4px;
    font-weight: bold;
}

.bl-header-nav a.bl-header-contact-btn {
    color: #555;
    font-weight: 350;
}

.bl-header-nav a.bl-header-contact-btn:hover {
    background-color: #9fd9f8;
}

/* Botón hamburguesa (oculto por defecto en desktop) */
.bl-header-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.bl-header-hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Overlay específico */
.bl-header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    display: none;
}

.bl-header-overlay.active {
    display: block;
}

/* ===== MEDIA QUERIES ESPECÍFICAS ===== */

@media (max-width: 1024px) {
    .bl-header-contact-btn {
        padding: 0.5rem 2rem;
        font-size: 0.9rem;
    }

    .bl-header-nav a {
        font-size: 0.9rem;
        margin: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .bl-header-main {
        padding: 1rem;
    }

    .bl-header-contact-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Mostrar botón hamburguesa en móviles */
    .bl-header-hamburger {
        display: flex;
    }

    /* Menú móvil */
    .bl-header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #03355c;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 80px;
        transition: right 0.4s ease;
        z-index: 9998;
    }

    .bl-header-nav.active {
        right: 0;
    }

    .bl-header-nav a {
        margin: 1.2rem 0;
        font-size: 1rem;
        width: 80%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .bl-header-nav a.bl-header-contact-btn {
        margin-top: 1.5rem;
        width: 80%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .bl-header-nav a {
        font-size: 0.85rem;
        margin: 1rem 0;
    }

    .bl-header-contact-btn {
        padding: 0.5rem 1rem;
    }

    .bl-header-nav {
        width: 85%;
    }

    .bl-header-logo a {
        font-size: 1.3rem;
    }

    .bl-header-main {
        padding: 0.8rem 1rem;
    }

    .bl-header-left-group {
        gap: 0.8rem;
    }
}

/* Clase para body cuando el header está presente */
.body-with-bl-header {
    padding-top: 50px;
}