/* ==========================================================================
   Avís diari del calendari d'Advent (js/avis-advent.js), a totes les pàgines públiques.
   A l'escriptori, a baix a la dreta; al mòbil, a baix, per sobre del regalet de novetats.
   ========================================================================== */
.avis-advent { position: fixed; right: 16px; bottom: 16px; z-index: 75; display: flex; align-items: stretch; max-width: 360px;
  border-radius: 18px; background: #1E3545; color: #FFFDF8; box-shadow: 0 0 0 2px rgba(233, 185, 73, .55), 0 18px 40px -14px rgba(10, 21, 29, .7);
  font-family: var(--font-text); opacity: 0; translate: 0 24px; pointer-events: none; transition: opacity .4s ease, translate .55s cubic-bezier(.34, 1.56, .64, 1); }
.avis-advent.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.avis-advent-link { display: flex; align-items: center; gap: 14px; padding: 12px 8px 12px 16px; color: inherit; text-decoration: none; border-radius: 18px; }
.avis-advent-link:hover { color: inherit; }
.avis-advent-link:hover .avis-advent-accio { text-decoration: underline; }
.avis-advent-sobre { flex: none; width: 50px; height: auto; rotate: -8deg; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.avis-advent-estel { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(233, 185, 73, .15); color: var(--gold); }
.avis-advent-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.avis-advent-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.avis-advent-text strong { font-family: var(--font-display); font-size: 17px; line-height: 1.15; }
.avis-advent-accio { font-weight: 700; color: #FFE08A; }
.avis-advent-tanca { flex: none; align-self: flex-start; width: 40px; height: 40px; margin: 4px 4px 0 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 253, 248, .8); font-size: 22px; line-height: 1; cursor: pointer; }
.avis-advent-tanca:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .avis-advent.is-visible .avis-advent-sobre { animation: avis-sobre 3s ease-in-out 1s infinite; }
}
@keyframes avis-sobre { 0%, 70%, 100% { rotate: -8deg; translate: 0 0; } 76% { rotate: -14deg; translate: 0 -6px; } 82% { rotate: -2deg; } 88% { rotate: -10deg; translate: 0 -2px; } 94% { rotate: -8deg; translate: 0 0; } }
/* Al mòbil: a tota l'amplada, per sobre del regalet de novetats */
@media (max-width: 640px) {
  .avis-advent { left: 12px; right: 12px; bottom: 80px; max-width: none; }
  .avis-advent-text strong { font-size: 16px; }
}
@media print { .avis-advent { display: none; } }
