/* Modal de avisos de la campana (assets/js/avisos.js) · móvil: hoja inferior · escritorio: desplegable */
.av-modal { position: fixed; inset: 0; z-index: 100000; font-family: Inter, system-ui, sans-serif; color: #0a0a0c; }
.av-modal[hidden] { display: none; }
.av-fondo { position: absolute; inset: 0; background: rgba(10,10,12,.55); opacity: 0; transition: opacity .2s ease; }
.av-modal.visible .av-fondo { opacity: 1; }
html.av-abierto { overflow: hidden; }
.av-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; display: flex; flex-direction: column; background: #f0ede6; border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 50px rgba(0,0,0,.3); transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.7,.2,1); overflow: hidden; }
.av-modal.visible .av-panel { transform: none; }
.av-cab { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 18px 20px 16px; background: #0a0a0c; color: #fff; overflow: hidden; }
.av-cab::before { content: ''; position: absolute; left: 50%; top: 10px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(255,255,255,.25); }
.av-cab::after { content: ''; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,199,44,.28), rgba(255,199,44,0) 70%); pointer-events: none; }
.av-cab h2 { margin: 6px 0 0; font: 400 32px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .5px; color: #fff; text-align: left; }
.av-sub { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); }
.av-x { position: relative; z-index: 1; margin-left: auto; align-self: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.av-x:hover { background: rgba(255,255,255,.2); }
.av-cuerpo { flex: 1; overflow-y: auto; padding: 4px 14px 14px; overscroll-behavior: contain; }
.av-dia { margin: 14px 6px 6px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(0,0,0,.5); }
.av-lista { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 18px; border: 1px solid rgba(0,0,0,.07); overflow: hidden; }
.av-lista li + li { border-top: 1px solid rgba(0,0,0,.06); }
.av-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 16px; color: #0a0a0c !important; text-decoration: none !important; }
.av-item:hover { background: #f8f6f1; }
.av-item.nuevo { background: #fff8dc; }
.av-item.nuevo::before { content: ''; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #E4162B; }
.av-ic { flex: 0 0 38px; height: 38px; border-radius: 50%; background: #f0ede6 center / 18px no-repeat; }
.av-ic.final { background: #0a0a0c; color: #fff; font: 800 10px/38px Inter, sans-serif; letter-spacing: 1px; text-align: center; }
.av-ic.directo { background-color: #E4162B; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5l3.5 2.6-1.3 4.1H9.8L8.5 10.1z'/%3E%3C/svg%3E"); background-size: 22px; }
.av-ic.aviso { background: #FFC72C; color: #0a0a0c; font: 400 22px/38px 'Bebas Neue', Impact, sans-serif; text-align: center; }
.av-ic.previa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0c' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.av-t { flex: 1; min-width: 0; }
.av-t b { display: block; font-size: 14px; line-height: 1.3; }
.av-t small { display: block; margin-top: 2px; font-size: 12px; color: rgba(0,0,0,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-der { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.av-esc { display: flex; }
.av-esc img { width: 26px; height: 26px; object-fit: contain; }
.av-esc img + img { margin-left: -6px; }
.av-h { font-size: 11px; font-weight: 700; color: rgba(0,0,0,.45); }
.av-vacio { padding: 28px 16px 20px; text-align: center; }
.av-vacio b { display: block; font: 400 26px/1.1 'Bebas Neue', Impact, sans-serif; letter-spacing: .5px; }
.av-vacio p { margin: 6px auto 0; max-width: 34ch; font-size: 14px; line-height: 1.45; color: rgba(0,0,0,.6); }
.av-campana { display: block; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #FFC72C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10.3 21a1.9 1.9 0 0 0 3.4 0'/%3E%3C/svg%3E") center / 28px no-repeat; }
.av-btns { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.av-btn { padding: 12px 18px; border-radius: 14px; background: #0a0a0c; color: #fff !important; font-size: 14px; font-weight: 800; text-decoration: none !important; }
.av-btn.borde { background: #fff; color: #0a0a0c !important; border: 1px solid rgba(0,0,0,.15); }
.av-pie { display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid rgba(0,0,0,.07); }
.av-pie a { font-size: 13px; font-weight: 800; color: #0a0a0c !important; text-decoration: none; }
.av-pie a:last-child { color: #E4162B !important; }
.av-cargando { display: flex; justify-content: center; gap: 6px; padding: 40px 0; }
.av-cargando span { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.35); animation: av-pt 1s ease-in-out infinite; }
.av-cargando span:nth-child(2) { animation-delay: .15s; }
.av-cargando span:nth-child(3) { animation-delay: .3s; }
@keyframes av-pt { 50% { transform: translateY(-6px); opacity: .4; } }
@media (min-width: 900px) {
  .av-fondo { background: rgba(10,10,12,.25); }
  .av-panel { left: auto; bottom: auto; top: var(--av-top, 80px); right: var(--av-right, 24px); width: 420px; max-height: min(640px, calc(100vh - var(--av-top, 80px) - 24px));
    border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); transform: translateY(-8px) scale(.98); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
  .av-modal.visible .av-panel { transform: none; opacity: 1; }
  .av-cab::before { display: none; }
  .av-cab h2 { margin-top: 0; }
}
.av-x:focus:not(:focus-visible) { outline: none; }

/* Borrar avisos (14-oct-2026): × en cada uno y «Borrar todos» en el pie */
.av-lista li { display: flex; align-items: stretch; }
.av-lista li > .av-item { flex: 1 1 auto; min-width: 0; padding-right: 6px; }
.av-borrar { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: rgba(0,0,0,.35); cursor: pointer; }
.av-borrar:hover, .av-borrar:focus-visible { color: #E4162B; background: #f8f6f1; }
.av-lista li:has(.av-item.nuevo) .av-borrar { background: #fff8dc; }
.av-borrar-todos { padding: 0; border: 0; background: none; font: 800 13px Inter, system-ui, sans-serif; color: rgba(0,0,0,.5); cursor: pointer; }
.av-borrar-todos:hover { color: #E4162B; }
