/* 
   HIGHLIGHT MÓVIL PARA CALCULADORA - Fortinix
   Archivo específico para asegurar que funcione en móvil
*/

/* ESTILOS ESPECÍFICOS PARA EL MENÚ MÓVIL OPTIMIZADO */
@media (max-width: 992px) {
    
    /* Ocultar menú desktop */
    .header {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    /* Mostrar menú móvil optimizado */
    #blogMobileHeader {
        display: block !important;
    }
    
    /* ESTILOS PARA HIGHLIGHT EN MENÚ MÓVIL */
    #blogMobileMenuPanel .highlight-nav {
        background: linear-gradient(90deg, rgba(237, 38, 122, 0.2), rgba(237, 38, 122, 0.1)) !important;
        border-left: 4px solid #ED267A !important;
        border-right: 4px solid #ED267A !important;
        color: #ED267A !important;
        font-weight: 700 !important;
        position: relative !important;
        border-radius: 0 !important;
        margin: 0 !important;
        box-shadow: inset 0 0 10px rgba(237, 38, 122, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* Icono de calculadora */
    #blogMobileMenuPanel .highlight-nav::after {
        content: '🧮' !important;
        font-size: 1.5rem !important;
        margin-left: 10px !important;
        animation: pulse-calc 2s infinite !important;
        filter: drop-shadow(0 0 3px rgba(237, 38, 122, 0.5)) !important;
    }
    
    /* Hover effect para móvil/touch */
    #blogMobileMenuPanel .highlight-nav:hover,
    #blogMobileMenuPanel .highlight-nav:active {
        background: linear-gradient(90deg, rgba(237, 38, 122, 0.4), rgba(237, 38, 122, 0.2)) !important;
        transform: translateX(10px) !important;
        box-shadow: 
            inset 0 0 15px rgba(237, 38, 122, 0.2),
            0 4px 15px rgba(237, 38, 122, 0.3) !important;
        border-left-width: 6px !important;
        border-right-width: 6px !important;
        color: #FFFFFF !important;
    }
    
    /* Animación de pulso para el icono */
    @keyframes pulse-calc {
        0% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.1);
            opacity: 0.8;
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    /* Efecto especial cuando el menú está abierto */
    #blogMobileMenuPanel.open .highlight-nav::after {
        animation: bounce-in 0.6s ease-out !important;
    }
    
    @keyframes bounce-in {
        0% {
            transform: scale(0) rotate(0deg);
            opacity: 0;
        }
        50% {
            transform: scale(1.3) rotate(180deg);
            opacity: 0.7;
        }
        100% {
            transform: scale(1) rotate(360deg);
            opacity: 1;
        }
    }
    
    /* Asegurar que todos los demás enlaces se vean normales */
    #blogMobileMenuPanel a:not(.highlight-nav) {
        background: transparent !important;
        border-left: 4px solid transparent !important;
        border-right: none !important;
        color: #FFFFFF !important;
        font-weight: 500 !important;
    }
    
    #blogMobileMenuPanel a:not(.highlight-nav):hover {
        background: rgba(0, 157, 255, 0.1) !important;
        border-left-color: #009DFF !important;
        color: #009DFF !important;
    }
    
    /* Para el enlace activo del blog */
    #blogMobileMenuPanel a.active:not(.highlight-nav) {
        background: rgba(0, 157, 255, 0.15) !important;
        border-left-color: #009DFF !important;
        color: #009DFF !important;
        font-weight: 600 !important;
    }
}

/* PARA PANTALLAS MUY PEQUEÑAS */
@media (max-width: 480px) {
    #blogMobileMenuPanel .highlight-nav {
        padding: 16px 20px !important;
        font-size: 1rem !important;
    }
    
    #blogMobileMenuPanel .highlight-nav::after {
        font-size: 1.3rem !important;
    }
}

/* PARA TABLETS EN MODO PORTRAIT */
@media (min-width: 481px) and (max-width: 768px) {
    #blogMobileMenuPanel .highlight-nav {
        padding: 20px 30px !important;
        font-size: 1.1rem !important;
    }
    
    #blogMobileMenuPanel .highlight-nav::after {
        font-size: 1.4rem !important;
    }
}

/* ASEGURAR QUE FUNCIONA EN DISPOSITIVOS TOUCH */
@media (pointer: coarse) {
    #blogMobileMenuPanel .highlight-nav {
        min-height: 60px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Feedback táctil mejorado */
    #blogMobileMenuPanel .highlight-nav:active {
        background: rgba(237, 38, 122, 0.5) !important;
        transform: scale(0.98) translateX(5px) !important;
        transition: all 0.1s ease !important;
    }
}

/* DEBUG: Si necesitas verificar que el CSS se carga */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: red;
    z-index: 999999;
    opacity: 0.5;
}

/* Borrar el debug después de verificar */
@media (min-width: 993px) {
    body::before {
        display: none;
    }
}