/* Estilos propios del diseño (el resto viene de Tailwind). */
/* Diseño solo claro: evita que Chrome/Samsung Internet en modo oscuro inviertan los colores */
:root { color-scheme: only light; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    font-family: 'Source Sans 3', 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.65;
}
/* "hidden" siempre gana, aunque el elemento tenga clases flex/inline-flex */
[hidden] { display: none !important; }

.custom-scrollbar::-webkit-scrollbar { height: 5px; width: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.4; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
.animate-pulse-ring { animation: pulse-ring 2s infinite ease-in-out; }

.item-enter { animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Marquesina "Lo último": siempre en una línea. En computadora, si no entra, se corta con "…".
   En celular, linea.js anima .ticker-pista (avanza poco a poco hasta el final y vuelve a empezar). */
.ticker { overflow: hidden; white-space: nowrap; }
.ticker-pista { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-pista.mover { display: inline-block; overflow: visible; text-overflow: clip; will-change: transform; }

/* Momento destacado al llegar desde un enlace compartido (#id) */
li:target > article { box-shadow: 0 0 0 3px #fdc613; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-pulse-ring, .item-enter { animation: none; }
    /* La marquesina "Lo último" se mueve igual (pedido del cliente): es lenta y se pausa al tocarla */
}
