/* Header Principal - Diseño Mejorado con más presencia del logo */

.headerPrincipal {
    width: calc(100% - 200px);
    padding: 20px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2d2d2d !important;
    position: absolute;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border-bottom: 1px solid rgba(48, 117, 130, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.headerPrincipal .contenedorEmpresa {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.3s ease;
}

.headerPrincipal .contenedorEmpresa:hover {
    transform: scale(1.02);
}

.headerPrincipal .logoContainer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(135deg, rgba(79, 172, 187, 0.1), rgba(48, 117, 130, 0.05));
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(48, 117, 130, 0.15), 0 0 0 1px rgba(48, 117, 130, 0.1) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.headerPrincipal .logoContainer::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4FACBB, #307582, #173F49);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.headerPrincipal .contenedorEmpresa:hover .logoContainer::before {
    opacity: 0.2;
}

.headerPrincipal .logoContainer:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 6px 24px rgba(48, 117, 130, 0.25), 0 0 0 1px rgba(48, 117, 130, 0.15) inset;
}

.headerPrincipal .logoContainer img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(48, 117, 130, 0.2));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.headerPrincipal .contenedorEmpresa:hover .logoContainer img {
    filter: drop-shadow(0 4px 12px rgba(48, 117, 130, 0.3));
}

.headerPrincipal h3 {
    color: #1f2a2e;
    font-weight: 700;
    font-size: 26px;
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #307582 0%, #173F49 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: all 0.3s ease;
}

.headerPrincipal .contenedorEmpresa:hover h3 {
    transform: translateX(2px);
}

.headerPrincipal .contenedorPerfil,
.headerPrincipal .contenedorPerfil .perfil {
    display: flex;
    align-items: center;
}

.headerPrincipal .contenedorPerfil .perfil {
    gap: 12px;
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(48, 117, 130, 0.1);
    transition: all 0.3s ease;
}

.headerPrincipal .contenedorPerfil .perfil:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(48, 117, 130, 0.2);
    box-shadow: 0 4px 16px rgba(48, 117, 130, 0.15);
}

.headerPrincipal .contenedorPerfil .perfil img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(48, 117, 130, 0.15);
    transition: all 0.3s ease;
    padding: 2px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.headerPrincipal .contenedorPerfil .perfil img:hover {
    border-color: #307582;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(48, 117, 130, 0.25);
}

.headerPrincipal .contenedorPerfil .perfil button {
    background-color: transparent;
    outline: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.headerPrincipal .contenedorPerfil .perfil button:hover {
    background: rgba(48, 117, 130, 0.1);
    transform: scale(1.1);
}

.headerPrincipal .contenedorPerfil .perfil button svg {
    stroke: #307582;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

.headerPrincipal .contenedorPerfil .perfil button:hover svg {
    stroke: #173F49;
    transform: translateX(-2px);
}

.headerPrincipal .menuPrincipal a,
.menuPrincipal.menuResponse a {
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    margin: 0 20px;
    position: relative;
    padding-bottom: 6px;
    transition: all 0.3s ease;
}

.headerPrincipal .menuPrincipal a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4FACBB, #307582);
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.headerPrincipal .menuPrincipal a:hover,
.menuPrincipal.menuResponse a:hover {
    color: #307582;
    transform: translateY(-2px);
}

.headerPrincipal .menuPrincipal a:hover::before {
    width: 100%;
}


/* Responsive */
@media (max-width: 920px) {
    .headerPrincipal {
        width: calc(100% - 80px) !important;
        padding: 16px 40px !important;
    }

    .headerPrincipal.views {
        width: 100% !important;
        padding: 16px 30px !important;
    }

    .headerPrincipal .logoContainer img {
        width: 40px;
        height: 40px;
    }

    .headerPrincipal h3 {
        font-size: 22px;
    }

    .headerPrincipal .contenedorPerfil .perfil img {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .headerPrincipal {
        padding: 14px 30px !important;
    }

    .headerPrincipal.views {
        width: 100% !important;
        padding: 14px 20px !important;
    }

    .headerPrincipal .logoContainer {
        padding: 6px;
    }

    .headerPrincipal .logoContainer img {
        width: 44px;
        height: 44px;
    }

    .headerPrincipal h3 {
        font-size: 20px;
    }
}

/* Estilos adicionales para views */
.headerPrincipal.views {
    width: 100% !important;
    padding: 20px 40px !important;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.headerPrincipal.views .contenedorEmpresa.empresaDos .logoContainer img {
    filter: none;
}

/* Animación sutil para el header */
@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.headerPrincipal {
    animation: headerFadeIn 0.5s ease-out;
}
