/* ========================================
   OPTIMIZACIÓN MOBILE Y TABLET SOLAMENTE
   Archivo: no-hover-mobile.css
   
   ⚠️ CRÍTICO: Este archivo SOLO afecta a:
   - Mobile: 0px - 767px
   - Tablet: 768px - 1023px
   - Desktop (1024px+): SIN CAMBIOS
   ======================================== */

/* ========================================
   MOBILE Y TABLET (0px - 1023px)
   ======================================== */
@media screen and (max-width: 1023px) {
    
    /* ===== DESACTIVAR TRANSICIONES PESADAS ===== */
    .resultado-card,
    .noticia-card,
    .mas-leida-card,
    .noticia-relacionada,
    .col-1 .noticia-grande,
    .col-2 .noticia-vertical,
    .imgs-estiradas .noticia-destacada,
    .video-1, 
    .video-2, 
    .video-3,
    .img-vertical-larga,
    .noticia-miniatura {
        transition: none !important;
    }
    
    /* Transiciones de imágenes - simplificadas */
    .resultado-imagen,
    .noticia-imagen img,
    .slide img {
        transition: opacity 0.2s ease !important;
    }
    
    /* ===== BUSQUEDA.CSS - DESACTIVAR HOVERS ===== */
    .resultado-card:hover {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    }
    
    .resultado-card:hover .resultado-imagen {
        transform: none !important;
    }
    
    .resultado-card:hover .resultado-titulo,
    .resultado-card:hover .resultado-titulo a {
        color: var(--grisoscuro) !important;
    }
    
    .noticia-miniatura:hover {
        transform: none !important;
    }
    
    .noticia-miniatura h4 a:hover {
        color: var(--grisoscuro) !important;
    }
    
    /* ===== INICIO.CSS - DESACTIVAR HOVERS ===== */
    .slide a:hover img {
        opacity: 1 !important;
        transition: none !important;
    }
    
    .prev:hover, 
    .next:hover {
        background: rgba(0,0,0,0.4) !important;
    }
    
    .slides {
        transition: transform 0.3s ease-in-out !important;
    }
    
    .col-1 .noticia-grande:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .col-2 .noticia-vertical:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .mas-leida-card:hover {
        transform: none !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
        background-color: var(--grisclaro) !important;
        transition: none !important;
    }
    
    .banner-link:hover:not(.no-link) {
        opacity: 1 !important;
        transition: none !important;
    }
    
    .video-1:hover, 
    .video-2:hover, 
    .video-3:hover {
        transform: none !important;
    }
    
    .img-vertical-larga:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .imgs-estiradas .noticia-destacada:hover {
        transform: none !important;
        box-shadow: 0 0 5px rgba(0,0,0,0.1) !important;
    }
    
    /* ===== NOTICIA.CSS - DESACTIVAR HOVERS ===== */
    .btn-leer,
    .btn-red-social,
    .btn-enviar-comentario,
    .volver-noticia,
    .btn-volver {
        transition: opacity 0.2s ease, background-color 0.2s ease !important;
    }
    
    .btn-leer:hover {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }
    
    .btn-leer.leyendo {
        animation: none !important;
    }
    
    .btn-red-social:hover {
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .btn-red-social:active {
        transform: none !important;
    }
    
    .btn-facebook:hover,
    .btn-instagram:hover,
    .btn-whatsapp:hover,
    .btn-copiar:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .btn-copiar.copiado {
        animation: none !important;
    }
    
    .volver-noticia:hover {
        background: var(--rojo) !important;
        transform: none !important;
        box-shadow: 0 5px 15px rgba(189, 50, 41, 0.3) !important;
    }
    
    .noticia-relacionada:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .btn-enviar-comentario:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .notificacion-flotante {
        transition: opacity 0.2s ease, transform 0.2s ease !important;
    }
    
    /* ===== SECCION.CSS - DESACTIVAR HOVERS ===== */
    .noticia-card:hover {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    }
    
    .noticia-card:hover .noticia-imagen img {
        transform: none !important;
    }
    
    .noticia-card:hover .noticia-titulo {
        color: var(--grisoscuro) !important;
    }
    
    .btn-volver:hover {
        background: var(--rojo) !important;
        transform: none !important;
        box-shadow: 0 5px 15px rgba(189, 50, 41, 0.3) !important;
    }
    
    /* ===== STYLE.CSS - DESACTIVAR HOVERS ===== */
    .hamburger-btn:hover {
        background: var(--rojo) !important;
        transform: none !important;
        box-shadow: 0 4px 8px rgba(189, 50, 41, 0.3) !important;
    }
    
    .hamburger-btn,
    .hamburger-btn img {
        transition: opacity 0.2s ease, visibility 0.2s ease !important;
    }
    
    .menu-nav > li > a:hover::after {
        width: 0 !important;
    }
    
    .nav-bajo {
        transition: left 0.3s ease !important;
    }
    
    .menu-overlay {
        transition: opacity 0.3s ease !important;
    }
    
    .logo-footer:hover {
        transform: none !important;
        filter: brightness(1.1) !important;
    }
    
    .logo-footer,
    .logo-riestra,
    .redes-icon-footer {
        transition: opacity 0.2s ease !important;
    }
    
    .redes-icon-footer:hover {
        transform: none !important;
        filter: grayscale(0%) brightness(0.9) !important;
        background-color: rgba(234, 232, 220, 0.1) !important;
        border-color: transparent !important;
    }
    
    .footer-social a,
    .footer-contact .email-footer {
        transition: background-color 0.2s ease, opacity 0.2s ease !important;
    }
    
    .footer-social a:hover {
        background-color: rgba(234, 232, 220, 0.05) !important;
        border-color: rgba(234, 232, 220, 0.2) !important;
        transform: none !important;
    }
    
    .logo-riestra:hover {
        transform: none !important;
        filter: brightness(1.1) !important;
    }
    
    .footer-contact .redes-icon-footer:hover {
        transform: none !important;
        filter: grayscale(0%) brightness(0.9) !important;
        background-color: rgba(234, 232, 220, 0.1) !important;
        border-color: transparent !important;
    }
    
    .footer-contact .email-footer:hover {
        background-color: rgba(234, 232, 220, 0.05) !important;
        border-color: rgba(234, 232, 220, 0.2) !important;
        transform: none !important;
    }
    
    /* ===== FORMULARIO ===== */
    .form-control input,
    .form-control label span {
        transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease !important;
    }
    
    .form-control input[type="submit"] {
        transition: opacity 0.2s ease, background-color 0.2s ease !important;
    }
    
    .form-control input[type="submit"]:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .form {
        transition: border-bottom-color 0.2s ease !important;
    }
    
    /* ===== OPTIMIZACIÓN GPU ===== */
    .slides,
    .nav-bajo,
    .menu-overlay,
    .hamburger-btn {
        will-change: auto !important;
        transform: translateZ(0) !important;
        backface-visibility: hidden !important;
    }
    
    .noticia-card,
    .resultado-card {
        will-change: auto !important;
    }
    
    /* ===== SIMPLIFICAR EFECTOS VISUALES ===== */
    .busqueda-header::before,
    .noticia-header::before,
    .seccion-header::before {
        background: var(--rojo) !important;
    }
    
    .noticia-overlay {
        background: rgba(0,0,0,0.3) !important;
    }
    
    .info-grande,
    .info-vertical,
    .info-destacada {
        background: rgba(0,0,0,0.75) !important;
    }
    
    .logo-footer,
    .logo-riestra,
    .redes-icon-footer {
        filter: none !important;
    }
    
    /* ===== ÁREAS DE TOQUE MÍNIMAS ===== */
    .menu-nav > li > a,
    .btn-leer,
    .btn-red-social,
    .hamburger-btn,
    .prev,
    .next {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* ===== FEEDBACK TÁCTIL ===== */
    .noticia-card,
    .resultado-card {
        position: relative;
    }
    
    .noticia-card:active::after,
    .resultado-card:active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.05);
        pointer-events: none;
    }
}

/* ========================================
   SOLO MOBILE (0px - 767px)
   ======================================== */
@media screen and (max-width: 767px) {
    
    /* Deshabilitar animaciones keyframes */
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1); }
    }
    
    @keyframes pulseSuccess {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1); }
    }
    
    @keyframes loading {
        0% { background-position: 0 0; }
        100% { background-position: 0 0; }
    }
    
    /* Desactivar :active con transform */
    .btn-red-social:active,
    .btn-leer:active,
    .btn-enviar-comentario:active,
    .volver-noticia:active,
    .btn-volver:active {
        transform: none !important;
    }
    
    /* Feedback táctil simple */
    a:active,
    button:active {
        opacity: 0.7 !important;
        transition: opacity 0.1s ease !important;
    }
    
    .slides {
        transition: transform 0.25s ease-in-out !important;
    }
    
    /* Simplificar box-shadows */
    .container-noticia,
    .seccion-header,
    .busqueda-header,
    .sin-resultados,
    .mensaje-error {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
}

/* ========================================
   SOLO TABLET (768px - 1023px)
   ======================================== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    
    .noticia-card,
    .resultado-card {
        transition: opacity 0.2s ease !important;
    }
    
    .noticia-card:active,
    .resultado-card:active {
        opacity: 0.9 !important;
    }
}

/* ========================================
   DISPOSITIVOS TÁCTILES
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
    }
    
    .noticia-card:active,
    .resultado-card:active,
    .mas-leida-card:active,
    .noticia-relacionada:active,
    .noticia-miniatura:active {
        opacity: 0.85;
        transition: opacity 0.1s ease !important;
    }
    
    .btn-leer:active,
    .btn-red-social:active,
    .btn-volver:active,
    .btn-enviar-comentario:active,
    .volver-noticia:active {
        opacity: 0.8;
        transition: opacity 0.1s ease !important;
    }
    
    .menu-nav > li > a:active {
        background-color: rgba(255, 255, 255, 0.1) !important;
        transition: background-color 0.1s ease !important;
    }
    
    .redes-icon:active,
    .redes-icon-footer:active {
        opacity: 0.7;
        transition: opacity 0.1s ease !important;
    }
}

/* ========================================
   PREFERENCIAS DE ACCESIBILIDAD
   SOLO EN MOBILE Y TABLET
   ======================================== */
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .notificacion-flotante,
    .menu-overlay,
    .nav-bajo {
        transition: opacity 0.15s ease !important;
    }
}