/* Estilos Principales y Animaciones - Reporto Táchira */
body {
    background-color: #F8FAFC;
    color: #0F172A;
    overflow-x: hidden;
}

html.dark body {
    background-color: #09131c;
    color: #F1F5F9;
}

/* Animación de Cintillo Breaking News */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-ticker {
    display: flex;
    width: max-content;
    animation: ticker 38s linear infinite;
}

.animate-ticker:hover {
    animation-play-state: paused;
}

/* Pulso de denuncia urgente */
@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(217, 43, 43, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(217, 43, 43, 0);
    }
}

.btn-denuncia-pulse {
    animation: pulse-red 2s infinite;
}

/* Scrollbar sutil */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0F2942;
}

::-webkit-scrollbar-thumb {
    background: #D92B2B;
    border-radius: 4px;
}


/* ============================================================================
   ADAPTACIÓN MULTI-DISPOSITIVO: CELULAR, TABLET, COMPUTADORA Y TELEVISOR (TV)
   ============================================================================ */

/* Escalado fluido de raíz según resolución del dispositivo */
html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
}

/* Celulares pequeños (< 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    .btn-denuncia-pulse {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    html {
        font-size: 15.5px;
    }
}

/* Computadoras de escritorio (1280px - 1919px) */
@media (min-width: 1280px) {
    html {
        font-size: 16px;
    }
}

/* Televisores Smart TV / Pantallas Full HD y 4K (>= 1920px) */
@media (min-width: 1920px) {
    html {
        font-size: 18.5px;
    }
    .max-w-7xl {
        max-width: 1680px !important;
    }
}

@media (min-width: 2560px) {
    html {
        font-size: 21px;
    }
    .max-w-7xl {
        max-width: 2100px !important;
    }
}

/* Animación suave del Cajón / Menú Desplegable de Tres Rayitas (☰) */
@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-drawer-open {
    animation: slideDownMenu 0.22s ease-out forwards;
}

/* Ocultar barra de desplazamiento horizontal sin perder funcionalidad */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Soporte de navegación con control remoto de Smart TV (focus visible claro) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #F59E0B;
    outline-offset: 2px;
}

/* ============================================================================
   VARIABLES DE DISEÑO GLOBAL CONFIGURABLES DESDE EL PANEL ADMINISTRATIVO
   ============================================================================ */
:root {
    --rt-primary: #0F2942;
    --rt-accent: #D92B2B;
    --rt-alert: #F59E0B;
    --rt-ticker-duration: 38s;
}

.animate-ticker {
    animation-duration: var(--rt-ticker-duration, 38s);
}

#site-navigation {
    background-color: var(--rt-primary) !important;
}

#colophon {
    border-top-color: var(--rt-accent) !important;
}

.btn-denuncia-pulse {
    background-color: var(--rt-accent) !important;
}

#cfg-site_badge,
#breaking-news-bar .bg-cordillera-600 {
    background-color: var(--rt-accent) !important;
}

#cfg-site_title_accent {
    color: var(--rt-accent) !important;
}

::-webkit-scrollbar-track {
    background: var(--rt-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--rt-accent);
}

/* ============================================================================
   ADAPTACIÓN INTELIGENTE DE IMÁGENES DE NOTAS DE PRENSA SEGÚN UBICACIÓN
   ============================================================================ */
.press-media-frame {
    position: relative;
    overflow: hidden;
    background-color: #0b1521;
}

.press-media-backdrop {
    position: absolute;
    inset: -12px;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.42) saturate(1.15);
    transform: scale(1.08);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
    z-index: 0;
}

.press-media-frame.is-ambient-fit .press-media-backdrop {
    opacity: 1;
}

.press-media-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.press-media-frame.is-ambient-fit .press-media-img {
    object-fit: contain !important;
    object-position: center !important;
}

.press-media-frame.is-portrait-focus .press-media-img {
    object-fit: cover;
    object-position: 50% 22%;
}

.press-slot-hero-main {
    aspect-ratio: 16 / 10;
}
@media (min-width: 640px) {
    .press-slot-hero-main {
        aspect-ratio: 16 / 9;
    }
}

.press-slot-hero-side {
    aspect-ratio: 16 / 10;
}

.press-slot-cat-lead {
    aspect-ratio: 16 / 10;
}
@media (min-width: 768px) {
    .press-slot-cat-lead {
        aspect-ratio: auto;
        min-height: 290px;
    }
}

.press-slot-card {
    aspect-ratio: 16 / 10;
}

.press-slot-modal {
    aspect-ratio: 16 / 10;
    max-height: 62vh;
}
@media (min-width: 640px) {
    .press-slot-modal {
        aspect-ratio: 16 / 9;
    }
}
