/**
 * Logo Profesional - Diseño Compacto y Elegante
 * Sistema APE - Portal Web
 */

/* ===== LOGO PROFESIONAL COMPACTO ===== */

/* Contenedor del logo */
.header-left .logo {
    display: inline-block !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

/* Enlace del logo - Diseño compacto y profesional */
.header-left .logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #1e88e5 0%, #0ab39c 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 12px rgba(30, 136, 229, 0.15), 
                0 1px 6px rgba(10, 179, 156, 0.1) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
}

/* Hover effect del contenedor del logo */
.header-left .logo a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.25), 
                0 2px 12px rgba(10, 179, 156, 0.18),
                0 0 0 4px rgba(30, 136, 229, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    filter: brightness(1.05) !important;
}

/* Imagen del logo - Tamaño compacto */
.header-left .logo a img {
    width: 50px !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 2 !important;
    filter: brightness(1.1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1)) !important;
    transition: all 0.3s ease !important;
}

/* Hover effect de la imagen */
.header-left .logo a:hover img {
    filter: brightness(1.15) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12)) !important;
    transform: scale(1.03) !important;
}

/* Efecto de brillo sutil en hover */
.header-left .logo a::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #1e88e5 0%, #0ab39c 100%) !important;
    opacity: 0 !important;
    z-index: -1 !important;
    transition: opacity 0.3s ease !important;
    filter: blur(8px) !important;
}

.header-left .logo a:hover::before {
    opacity: 0.3 !important;
}

/* Responsive: Tablets (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .header-left .logo a {
        padding: 7px 10px !important;
        border-radius: 10px !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    .header-left .logo a img {
        width: 45px !important;
    }
}

/* Responsive: Mobile (menos de 768px) */
@media (max-width: 767px) {
    .header-left .logo a {
        padding: 6px 9px !important;
        border-radius: 8px !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 2px 10px rgba(30, 136, 229, 0.12), 
                    0 1px 5px rgba(10, 179, 156, 0.08) !important;
    }
    
    .header-left .logo a img {
        width: 40px !important;
    }
    
    .header-left .logo a:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 15px rgba(30, 136, 229, 0.2), 
                    0 2px 10px rgba(10, 179, 156, 0.15) !important;
    }
}

/* Asegurar que el header-info no tenga conflictos */
.header-left .header-info {
    display: flex !important;
    align-items: center !important;
}

/* Ajuste para el contenedor header-left */
.header-left.rbt-header-content {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Logo en el menú móvil (popup-mobile-menu) */
.popup-mobile-menu .logo {
    display: inline-block !important;
    margin-bottom: 15px !important;
}

.popup-mobile-menu .logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #1e88e5 0%, #0ab39c 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 12px rgba(30, 136, 229, 0.15) !important;
}

.popup-mobile-menu .logo a img {
    width: 50px !important;
    height: auto !important;
    filter: brightness(1.1) !important;
}

/* Animación suave al cargar la página */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-left .logo {
    animation: logoEntrance 0.5s ease-out !important;
}
