/* Cinta de anuncios (partials/anuncios.html.twig) */
.an-aviso { background: #0a0a0a; color: #fff; font-size: 13px; line-height: 1.25; border-bottom: 2px solid #e00010; box-shadow: 0 2px 16px rgba(224, 0, 16, .28); position: sticky; top: 0; z-index: 50; overflow: hidden; max-height: 5rem; transition: max-height .3s ease, border-width .3s ease, box-shadow .3s ease; }
.an-aviso.oculta { max-height: 0; border-bottom-width: 0; box-shadow: none; }
.an-activo [data-header] { top: var(--an-h, 0px) !important; }
@media (min-width: 1024px) { .an-activo [data-header] { top: calc(var(--an-h, 0px) - 7rem) !important; } }
.an-viewport { overflow: hidden; padding: .35rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.an-track { display: flex; width: max-content; animation: an-corre var(--dur, 40s) linear infinite; will-change: transform; }
.an-aviso:hover .an-track, .an-aviso:focus-within .an-track { animation-play-state: paused; }
.an-lista { display: flex; flex: none; align-items: center; margin: 0; padding: 0; list-style: none; }
.an-item { display: flex; align-items: center; gap: .65rem; white-space: nowrap; }
.an-item::after { content: '✦'; color: #e00010; margin: 0 1.3rem; font-size: 10px; }
.an-chip { border-radius: 9999px; padding: 1px 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; background: #e00010; color: #fff; box-shadow: 0 0 12px rgba(224, 0, 16, .55); }
.an-enlace { font-weight: 800; text-decoration: underline; text-decoration-color: #e00010; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .2s; }
.an-enlace:hover { color: #ff5360; }
/* Ocultar (flecha arriba, a la derecha de la cinta) y pestaña para volver a mostrarla */
.an-x { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 9999px; background: #0a0a0a; box-shadow: -16px 0 12px 4px #0a0a0a; opacity: .9; transition: opacity .2s, background .2s; }
.an-x:hover { opacity: 1; background: #e00010; }
.an-mostrar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: .4rem; padding: 4px 12px 5px; border-radius: 0 0 10px 10px; background: #e00010; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 4px 14px rgba(224, 0, 16, .4); transition: background .2s, padding .2s; }
.an-mostrar[hidden] { display: none; }
.an-mostrar:hover { background: #a3000c; padding-top: 7px; }
@keyframes an-corre { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .an-track { animation: none; width: auto; }
  .an-lista[aria-hidden="true"] { display: none; }
  .an-lista { flex-wrap: wrap; row-gap: .4rem; padding: 0 3rem 0 1rem; }
  .an-aviso, .an-mostrar { transition: none; }
  .an-viewport { -webkit-mask-image: none; mask-image: none; }
}
