/* Desarrollado por BorseWB · 2026 */

/* Decoración de temporada de la cabecera, en la web y en la vista previa del panel.
   El marcado lo genera public/js/seasonal-header.js. */

.sh-host > .nav,
.sh-host > .sh-mock-nav { position: relative; z-index: 1; }

.sh-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  animation: sh-in .7s ease both;
}
.sh-decor svg { display: block; overflow: visible; }
@keyframes sh-in { from { opacity: 0; } to { opacity: 1; } }

/* Zonas laterales (fuera del contenido del menú): solo cuando hay sitio. */
.sh-zone { display: none; position: absolute; --sh-m: calc((100% - var(--sh-cw, min(1220px, 92%))) / 2); }
@media (min-width: 1380px) { .sh-zone { display: block; } }

/* ---------------------------------------------------------------- Halloween */
.sh-decor--halloween { color: rgba(238, 228, 255, .5); }
.sh-web { position: absolute; top: 0; line-height: 0; }
.sh-web svg { width: 100%; height: auto; }
.sh-web--left { left: 0; width: 132px; opacity: .8; }
.sh-web--right { right: 0; width: 150px; transform: scaleX(-1); }
.sh-silk {
  position: absolute; left: 0; right: 0; top: 100%; height: 22px; margin-top: -1px;
  background-repeat: repeat-x; background-size: 260px 22px;
}
.sh-glowline {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, #ff8a1f 18%, #9b4dff 50%, #ff8a1f 82%, transparent);
  opacity: .75;
}
.sh-spider {
  position: absolute; top: 0; left: 37%; width: 30px;
  height: calc(100% + 46px); overflow: hidden;
  filter: drop-shadow(0 0 6px rgba(255, 138, 31, .35));
}
.sh-spider svg {
  position: absolute; left: 0; bottom: 0;
  animation: sh-bob 4.4s ease-in-out infinite alternate;
  will-change: transform;
}
.sh-spider--small { left: auto; right: 21%; width: 22px; height: calc(100% + 28px); }
.sh-spider--small svg { width: 22px; height: 133px; animation-duration: 5.6s; animation-delay: -2s; }
@keyframes sh-bob { from { transform: translateY(-16px); } to { transform: translateY(0); } }

/* ----------------------------------------------------------------- Navidad */
.sh-snow { position: absolute; inset: 0; overflow: hidden; contain: strict; }
.sh-snow i {
  position: absolute; left: calc(-1 * var(--t)); top: calc(-3 * var(--t));
  width: calc(100% + var(--t)); height: calc(100% + 3 * var(--t));
  background-size: var(--t) var(--t);
  will-change: transform;
  animation: var(--anim) var(--dur) linear infinite;
}
.sh-snow-far  { --t: 90px;  --dur: 13s; --anim: sh-fall-90;  opacity: .8; }
.sh-snow-mid  { --t: 130px; --dur: 15s; --anim: sh-fall-130; }
.sh-snow-near { --t: 170px; --dur: 16s; --anim: sh-fall-170; }
@keyframes sh-fall-90  { to { transform: translate3d(90px, 270px, 0); } }
@keyframes sh-fall-130 { to { transform: translate3d(130px, 390px, 0); } }
@keyframes sh-fall-170 { to { transform: translate3d(170px, 510px, 0); } }
.sh-ledge {
  position: absolute; left: 0; right: 0; bottom: -22px; height: 30px;
  background-repeat: repeat-x; background-size: 220px 30px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .28));
}

/* Escudo con complemento (gorro, sombrero de bruja, gafas de sol, capirote):
   el lienzo es 4/3 del original y el escudo queda en el mismo sitio.
   La imagen de cada tema la pone seasonal-header.js en --sh-crest-img. */
.brand-logo.crest-hat { width: 64px; height: 64px; margin: -8px -5px -8px -8px; border-radius: 0; }
html.sh-crest-hat .crest-face {
  inset: -16.6667%;
  background-image: var(--sh-crest-img, url("/Escudo-navidad.webp"));
  border-radius: 0;
}

/* ------------------------------------------------------------------- Feria */
.sh-valance {
  position: absolute; left: 0; right: 0; top: 100%; height: 26px; margin-top: -3px;
  background-repeat: repeat-x; background-size: 40px 26px;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35));
  z-index: 2;
}
.sh-strings { position: absolute; left: 0; right: 0; top: calc(100% + 15px); z-index: 1; }
.sh-lanterns { position: absolute; inset: 0; }
.sh-lantern {
  position: absolute; width: 28px; height: 39.7px; margin-left: -14px;
  transform-origin: 14px 0;
  animation: sh-sway var(--d, 3s) ease-in-out var(--delay, 0s) infinite alternate;
  will-change: transform;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3));
}
.sh-lantern svg { width: 100%; height: 100%; }
.sh-lanterns.is-small .sh-lantern { width: 20px; height: 28.3px; margin-left: -10px; transform-origin: 10px 0; }
@keyframes sh-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* ------------------------------------------------------------------ Verano */
.sh-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; overflow: hidden; contain: strict; }
.sh-wave {
  position: absolute; bottom: 0;
  background-repeat: repeat-x;
  will-change: transform;
}
.sh-wave--back  { left: 0; width: calc(100% + 160px); height: 16px; background-size: 160px 16px; opacity: .9; animation: sh-wave-l 10s linear infinite; }
.sh-wave--front { left: -220px; width: calc(100% + 220px); height: 11px; background-size: 220px 11px; animation: sh-wave-r 8s linear infinite; }
@keyframes sh-wave-l { to { transform: translate3d(-160px, 0, 0); } }
@keyframes sh-wave-r { to { transform: translate3d(220px, 0, 0); } }
.sh-sand {
  position: absolute; left: 0; right: 0; top: calc(100% - 4px); height: 26px;
  background-repeat: repeat-x; background-size: 520px 26px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}
.sh-sun { right: calc(var(--sh-m) / 2); top: 10px; width: 60px; height: 60px; margin-right: -30px; }
.sh-sun > span { position: absolute; inset: 0; }
.sh-sun-rays { animation: sh-spin 60s linear infinite; will-change: transform; }
.sh-sun-core { filter: drop-shadow(0 0 10px rgba(255, 211, 79, .55)); }
@keyframes sh-spin { to { transform: rotate(360deg); } }
.sh-beachset { left: calc(var(--sh-m) / 2); bottom: -9px; width: 60px; height: 64px; margin-left: -36px; z-index: 1; }
.sh-umbrella { position: absolute; left: 0; bottom: 0; }
.sh-ball { position: absolute; left: 46px; bottom: 1px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.25)); }

/* ------------------------------------------- Semana Santa de Córdoba */
.sh-damask {
  position: absolute; inset: 0; overflow: hidden;
  background-repeat: repeat; background-size: 64px 46px;
  opacity: .11;
}
.sh-candleglow {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, #e2b04a 15%, #ffe7a0 50%, #e2b04a 85%, transparent);
  opacity: .8;
}
.sh-faldon {
  position: absolute; left: 0; right: 0; top: 100%; height: 32px; margin-top: -3px;
  background-repeat: repeat-x; background-size: 48px 32px;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4));
  z-index: 2;
}
.sh-candles {
  bottom: 4px; height: 60px; width: 112px;
  display: flex; align-items: flex-end; justify-content: center; gap: 6px;
}
.sh-candles.sh-zone--left  { left: calc(var(--sh-m) / 2); margin-left: -56px; }
.sh-candles.sh-zone--right { right: calc(var(--sh-m) / 2); margin-right: -56px; }
@media (min-width: 1380px) { .sh-candles { display: flex; } }
.sh-candle { position: relative; display: block; width: 16px; line-height: 0; }
.sh-flame {
  position: absolute; left: 2px; bottom: 100%; margin-bottom: -6px; width: 12px; height: 20px;
  transform-origin: 50% 85%;
  animation: sh-flicker var(--d, 1.3s) ease-in-out var(--delay, 0s) infinite alternate;
  filter: drop-shadow(0 0 5px rgba(255, 196, 92, .85));
  will-change: transform, opacity;
}
@keyframes sh-flicker {
  0%   { transform: scale(1, 1) rotate(-1.5deg); opacity: 1; }
  40%  { transform: scale(.92, 1.08) rotate(1.5deg); opacity: .9; }
  100% { transform: scale(1.04, .9) rotate(-.5deg); opacity: .97; }
}
.sh-incense { position: absolute; left: 50%; bottom: 44px; width: 0; height: 0; }
.sh-incense i {
  position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 226, 245, .32), rgba(236, 226, 245, 0) 70%);
  animation: sh-incense 7s ease-out infinite;
  will-change: transform, opacity;
  opacity: 0;
}
.sh-incense i:nth-child(2) { animation-delay: -2.4s; }
.sh-incense i:nth-child(3) { animation-delay: -4.8s; }
@keyframes sh-incense {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  20%  { opacity: .9; }
  100% { transform: translate3d(14px, -26px, 0) scale(1.6); opacity: 0; }
}

/* ------------------------------------------ Capas que caen / suben (pétalos, corazones) */
.sh-fall { position: absolute; inset: 0; overflow: hidden; contain: strict; }
.sh-fall i {
  position: absolute; left: calc(-1 * var(--t)); top: calc(-2 * var(--t));
  width: calc(100% + 2 * var(--t)); height: calc(100% + 4 * var(--t));
  background-size: var(--t) var(--t);
  will-change: transform;
  animation: sh-fall-down var(--dur) linear infinite;
}
.sh-fall--up i { animation-name: sh-fall-up; }
@keyframes sh-fall-down { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--t), calc(var(--t) * 2), 0); } }
@keyframes sh-fall-up   { from { transform: translate3d(var(--t), calc(var(--t) * 2), 0); } to { transform: translate3d(0, 0, 0); } }

.sh-garland {
  position: absolute; left: 0; right: 0; top: 100%; height: 30px; margin-top: -2px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
  z-index: 2;
}
.sh-garland--hearts { background-size: 120px 30px; }
.sh-garland--claveles { background-size: 84px 30px; }
.sh-glow { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; opacity: .85; }
.sh-glow--pink { background: linear-gradient(90deg, transparent, #ff3d6e 18%, #ffd1dc 50%, #ff3d6e 82%, transparent); }

/* ------------------------------------------------------------- San Valentín */
.sh-balloons { top: 6px; width: 96px; height: 74px; display: none; justify-content: center; gap: 4px; }
@media (min-width: 1380px) { .sh-balloons { display: flex; } }
.sh-balloons.sh-zone--left  { left: calc(var(--sh-m) / 2); margin-left: -48px; }
.sh-balloons.sh-zone--right { right: calc(var(--sh-m) / 2); margin-right: -48px; }
.sh-balloons span { display: block; animation: sh-bob-b 3.6s ease-in-out infinite alternate; will-change: transform; filter: drop-shadow(0 4px 4px rgba(0,0,0,.3)); }
.sh-balloons span + span { animation-duration: 4.4s; animation-delay: -1.5s; margin-top: 8px; }
@keyframes sh-bob-b { from { transform: translateY(-4px) rotate(-4deg); } to { transform: translateY(4px) rotate(4deg); } }

/* --------------------------------------------------------- Día de Andalucía */
.sh-andband {
  position: absolute; left: 0; right: 0; top: 100%; height: 12px; margin-top: -1px;
  background: linear-gradient(#0a8a3e 0 33.4%, #fff 33.4% 66.6%, #0a8a3e 66.6% 100%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
}
.sh-andshine {
  position: absolute; left: 0; top: 100%; width: 30%; height: 12px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: sh-shine 6s linear infinite; will-change: transform;
}
@keyframes sh-shine { from { transform: translateX(-100%); } to { transform: translateX(440%); } }
.sh-flags { bottom: 2px; width: 120px; height: 64px; display: none; justify-content: center; gap: 2px; }
@media (min-width: 1380px) { .sh-flags { display: flex; } }
.sh-flags.sh-zone--left  { left: calc(var(--sh-m) / 2); margin-left: -60px; }
.sh-flags.sh-zone--right { right: calc(var(--sh-m) / 2); margin-right: -60px; }
.sh-flag { display: block; line-height: 0; }
.sh-flag .sh-flag-cloth { transform-origin: 7.6px 23px; animation: sh-wave-flag 2.4s ease-in-out infinite alternate; }
.sh-flag--b .sh-flag-cloth { animation-duration: 2.9s; animation-delay: -1.1s; }
@keyframes sh-wave-flag { from { transform: skewY(-4deg) scaleX(.94); } to { transform: skewY(4deg) scaleX(1); } }

/* ----------------------------------------------------------- Cruces de mayo */
.sh-cross { bottom: -14px; width: 60px; height: 82px; margin: 0 -30px; z-index: 3; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); }
.sh-cross.sh-zone--left  { left: calc(var(--sh-m) / 2); }
.sh-cross.sh-zone--right { right: calc(var(--sh-m) / 2); }

/* ------------------------------------------------------- Patios de Córdoba */
.sh-cal {
  position: absolute; left: 0; right: 0; top: 100%; height: 7px; margin-top: -1px;
  background: linear-gradient(#ffffff, #e9edf2);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .25);
}
.sh-pots {
  position: absolute; left: 0; right: 0; top: calc(100% + 3px); height: 40px;
  background-repeat: repeat-x; background-size: 96px 40px;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3));
  z-index: 2;
}
.sh-bougain { position: absolute; top: 0; line-height: 0; opacity: .95; }
.sh-bougain--left { left: 0; }
.sh-bougain--right { right: 0; }

/* ----------------------------------------------------- Pantallas estrechas */
@media (max-width: 760px) {
  .sh-web--left { width: 92px; opacity: .45; }
  .sh-web--right { width: 104px; opacity: .75; }
  .sh-spider { left: 58%; height: calc(100% + 34px); }
  .sh-spider--small { display: none; }
  .sh-sand { background-size: 437px 21.8px; height: 21.8px; }
  .sh-faldon { background-size: 40px 26.7px; height: 26.7px; }
  .sh-pots { background-size: 76.8px 32px; height: 32px; }
  .sh-bougain svg { width: 96px; height: auto; }
  .sh-garland--hearts { background-size: 96px 24px; height: 24px; }
  .sh-garland--claveles { background-size: 67.2px 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-decor, .sh-decor * { animation: none !important; }
}
