/* ==========================================================================
   TEMPORADAS (Navidad, Halloween...) — Mota Dance Academy
   Se activa solo según la fecha (ver src/seasonal.js). Siempre con la paleta
   de marca: cobre + dorado sobre oscuro cálido. Nada de rojo ni verde.
   ========================================================================== */

:root { --season-bar: 0px; }
html[data-season] { --season-bar: 36px; }
html[data-season] { scroll-padding-top: calc(var(--nav-height) + var(--season-bar)); }
html[data-season] .hero { padding-top: calc(var(--nav-height) + var(--season-bar) + 56px); }
@media (max-width: 1024px) {
  html[data-season] .hero { padding-top: calc(var(--nav-height) + var(--season-bar) + 28px); }
}

/* --- Cinta superior con el aviso de fechas --- */
.season-ribbon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: var(--season-bar);
  padding: 6px 16px;
  margin: -18px 0 12px;              /* pegada arriba del todo, encima del menú */
  background:
    linear-gradient(90deg, rgba(140, 75, 46, 0) 0%, rgba(140, 75, 46, 0.38) 50%, rgba(140, 75, 46, 0) 100%),
    #120c08;
  border-bottom: 1px solid var(--border-copper-bright);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--text-main);
  text-align: center;
  overflow: hidden;
}
.navbar.scrolled .season-ribbon { margin-top: -10px; margin-bottom: 8px; }
.season-ribbon::after {               /* hilo de luz cobre que recorre la cinta */
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f8d4b6, transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: season-thread 6s linear infinite;
}
@keyframes season-thread { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.season-ribbon .season-greet {
  font-family: var(--font-script);
  font-size: 1.35rem;
  line-height: 1;
  background: var(--copper-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--copper-light);
  padding-right: 4px;
}
.season-ribbon .season-short { display: none; }
.season-ribbon .season-star { color: var(--gold-accent); font-size: 0.8rem; opacity: 0.9; }
.season-ribbon .season-msg strong { color: var(--copper-light); font-weight: 600; }
.season-ribbon a {
  color: #f8d4b6;
  text-decoration: underline;
  text-decoration-color: rgba(230, 165, 131, 0.6);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.season-ribbon a:hover { color: #ffffff; }

/* --- Sello "Felices fiestas" sobre la foto principal --- */
.season-seal {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(36, 26, 18, 0.96) 0%, rgba(15, 10, 7, 0.96) 70%);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2px rgba(15, 10, 7, 0.9),
    0 0 0 4px #c67d5a,
    0 0 25px rgba(198, 125, 90, 0.45),
    0 10px 24px rgba(0, 0, 0, 0.6);
  transform: rotate(-10deg);
  pointer-events: none;
}
.season-seal::before {                /* anillo de puntitos dorados */
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px dashed rgba(245, 185, 66, 0.55);
}
.season-seal span { display: block; line-height: 1; }
.season-seal .seal-top,
.season-seal .seal-bottom {
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #e6a583;
}
.season-seal .seal-main {
  font-family: var(--font-script);
  font-size: 1.55rem;
  margin: 5px 0 4px;
  background: var(--copper-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #f8d4b6;
}
.season-seal .seal-star { color: var(--gold-accent); font-size: 0.7rem; margin-bottom: 3px; }

/* --- Destellos que caen en la portada --- */
.season-sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
html[data-season] .hero { position: relative; }
html[data-season] .hero > .container { position: relative; z-index: 1; }

/* --- Guirnalda del marco y campanas --- */
.season-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.season-frame svg { display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55)); }
.season-bells { animation: season-swing 3.2s ease-in-out infinite alternate; }
@keyframes season-swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
/* un poco más de aire arriba para que la guirnalda no toque la etiqueta */
html[data-season] .hero { padding-top: calc(var(--nav-height) + var(--season-bar) + 104px); }
@media (max-width: 1024px) {
  html[data-season] .hero { padding-top: calc(var(--nav-height) + var(--season-bar) + 66px); }
}

/* --- Móvil --- */
@media (max-width: 1320px) {
  .season-ribbon { margin-top: -18px; }
}
@media (max-width: 720px) {
  html[data-season] { --season-bar: 34px; }
  .season-ribbon { font-size: 0.8rem; gap: 10px; line-height: 1.3; padding: 6px 12px; }
  .season-ribbon .season-long { display: none; }
  .season-ribbon .season-short { display: inline; }
  .season-ribbon .season-greet, .season-ribbon .season-star { display: none; }
  .season-seal { width: 84px; height: 84px; top: 10px; left: 10px; }
  .season-seal .seal-main { font-size: 1.15rem; margin: 3px 0 2px; }
  .season-seal .seal-top, .season-seal .seal-bottom { font-size: 0.45rem; letter-spacing: 1.6px; }
}

@media (prefers-reduced-motion: reduce) {
  .season-ribbon::after { animation: none; display: none; }
  .season-bells { animation: none; }
}
