/* 2026-12-03 MAKER avisos: campanita de la cabecera y ventanas de avisos del proveedor */
#gs-avisos-btn a { position: relative; }
#gs-avisos-btn .gs-avi-badge {
    position: absolute; top: -6px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px; background: #e53935; color: #fff; font-size: 10px; line-height: 17px; text-align: center; font-weight: 700;
    box-shadow: 0 0 0 2px #fff;
}
#gs-avisos-btn a:has(.gs-avi-badge:not(:empty)) i { animation: gs-avi-ring 2.4s ease-in-out 3; }
@keyframes gs-avi-ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }

.gs-avi-modal .modal-content { border-radius: 10px; overflow: hidden; border: 0; box-shadow: 0 16px 48px rgba(0, 0, 0, .25); }
.gs-avi-cab { padding: 12px 18px; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.gs-avi-cab.gs-avi-m { background: linear-gradient(135deg, #d97706, #f59e0b); }
.gs-avi-cab.gs-avi-i { background: linear-gradient(135deg, #dc2626, #f43f5e); }
.gs-avi-cab span { float: right; font-weight: 400; opacity: .85; font-size: 12px; }
.gs-avi-tit { margin: 0 0 12px; font-weight: 700; font-size: 20px; }
.gs-avi-html { font-size: 14px; line-height: 1.55; max-height: 60vh; overflow-y: auto; }
.gs-avi-html img { max-width: 100%; height: auto; border-radius: 6px; }
.gs-avi-html blockquote { font-size: 14px; }

.gs-avi-items { padding: 6px 0; max-height: 65vh; overflow-y: auto; }
.gs-avi-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 18px; color: inherit; border-left: 3px solid transparent; }
.gs-avi-item:hover, .gs-avi-item:focus { background: rgba(79, 126, 248, .08); text-decoration: none; color: inherit; }
.gs-avi-item > i { font-size: 18px; margin-top: 2px; width: 20px; text-align: center; }
.gs-avi-item > i.gs-avi-n { color: #2563eb; }
.gs-avi-item > i.gs-avi-m { color: #d97706; }
.gs-avi-item > i.gs-avi-i { color: #dc2626; }
.gs-avi-item b { display: block; font-weight: 600; }
.gs-avi-item small { color: #8a8f9c; }
.gs-avi-item.nuevo { border-left-color: #4f7ef8; background: rgba(79, 126, 248, .05); }
.gs-avi-item.nuevo b::after { content: 'nuevo'; margin-left: 6px; padding: 1px 6px; border-radius: 8px; background: #4f7ef8; color: #fff; font-size: 10px; font-weight: 600; vertical-align: middle; }

body.theme-dark .gs-avi-modal .modal-content { background: var(--g-bg2, #161b27); color: var(--g-text, #e5e7eb); }
body.theme-dark .gs-avi-modal .modal-header, body.theme-dark .gs-avi-modal .modal-footer { border-color: var(--g-border2, rgba(255, 255, 255, .1)); }
body.theme-dark #gs-avisos-btn .gs-avi-badge { box-shadow: 0 0 0 2px var(--g-bg2, #161b27); }
