/* Personaje y logo de la fecha especial */
.fiesta-bicho { position: fixed; bottom: 10px; right: 22px; z-index: 60; width: 210px; pointer-events: none; }
.fiesta-bicho.izquierda { right: auto; left: 22px; }
.fiesta-bicho .fiesta-svg { position: relative; z-index: 2; display: block; width: 100%; height: auto; cursor: pointer;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35));
  transform: translateY(105%) scale(.6); opacity: 0; transform-origin: 50% 100%;
  transition: transform .85s cubic-bezier(.2, 1.1, .3, 1.15), opacity .35s; }
.fiesta-bicho.fuera { pointer-events: auto; }
.fiesta-bicho.fuera .fiesta-svg { transform: none; opacity: 1; animation: fiesta-respira 3.2s 1s ease-in-out infinite; }

/* Sale de la página: un brillo dorado se abre en el piso y de ahí aparece */
.fiesta-portal { position: absolute; z-index: 1; left: 50%; bottom: -2px; width: 150px; height: 26px; margin-left: -75px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 120, .95), rgba(217, 130, 43, .55) 55%, transparent);
  transform: scaleX(0); opacity: 0; filter: blur(.4px); }
.fiesta-bicho.fuera .fiesta-portal { animation: fiesta-portal 1.6s ease-out both; }
@keyframes fiesta-portal { 0% { transform: scaleX(0); opacity: 0; } 25% { transform: scaleX(1.15); opacity: 1; } 100% { transform: scaleX(.75); opacity: 0; } }

.fiesta-globo { position: absolute; z-index: 3; bottom: 92%; right: 4%; width: max-content; max-width: min(260px, 60vw); margin: 0;
  background: #FFFDF8; color: #1C1712; font: 600 .95rem/1.38 Inter, Helvetica, Arial, sans-serif; padding: 12px 15px; border-radius: 18px 18px 4px 18px; max-width: min(240px, 70vw);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3); border: 1.5px solid var(--f1, #D9822B);
  opacity: 0; transform: translateY(10px) scale(.94); transform-origin: 100% 100%; transition: opacity .35s, transform .35s; }
.fiesta-bicho.izquierda .fiesta-globo { right: auto; left: 4%; border-radius: 18px 18px 18px 4px; transform-origin: 0 100%; }
.fiesta-bicho.fuera .fiesta-globo { opacity: 1; transform: none; transition-delay: .7s; }
.fiesta-globo b { color: var(--f0, #7A2E12); }

.fiesta-ala { transform-box: fill-box; transform-origin: 3% 97%; }
.fiesta-bicho.fuera .fiesta-ala { animation: fiesta-saluda 1.2s .9s ease-in-out 2; }
.fiesta-cola { transform-box: fill-box; transform-origin: 50% 96%; animation: fiesta-cola 4s ease-in-out infinite; }
.fiesta-ojo { animation: fiesta-parpadea 4.5s infinite; transform-origin: center; transform-box: fill-box; }
.fiesta-vapor path { animation: fiesta-vapor 2.4s ease-in-out infinite; }
.fiesta-vapor path:nth-child(2) { animation-delay: .8s; }
.fiesta-vapor path:nth-child(3) { animation-delay: 1.6s; }
@keyframes fiesta-respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02, .985); } }
@keyframes fiesta-saluda { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-14deg); } 70% { transform: rotate(5deg); } }
@keyframes fiesta-cola { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes fiesta-parpadea { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes fiesta-vapor { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-8px); } }

/* Logo vestido para la fecha: un accesorio encima, el logo oficial no se toca */
.fiesta-logo { position: relative; display: inline-block; }
.fiesta-sombrero { position: absolute; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); animation: fiesta-pone .9s .4s cubic-bezier(.2, .9, .3, 1.3) both; }
.fiesta-logo .fiesta-sombrero, .contenido .fiesta-sombrero { width: 24%; top: 1%; left: 58%; rotate: 14deg; }
.marca .fiesta-sombrero { width: 24px; top: -9px; left: 22px; rotate: 14deg; }
@keyframes fiesta-pone { from { opacity: 0; transform: translateY(-40px) rotate(-25deg); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) { .fiesta-bicho { width: 160px; right: 6px; } .fiesta-bicho.izquierda { left: 8px; } .fiesta-globo { font-size: .88rem; } }
@media (prefers-reduced-motion: reduce) { .fiesta-bicho .fiesta-svg, .fiesta-globo { transition: none; } .fiesta-bicho.fuera .fiesta-svg, .fiesta-ala, .fiesta-cola, .fiesta-ojo, .fiesta-sombrero, .fiesta-vapor path, .fiesta-bicho.fuera .fiesta-portal { animation: none; } }

/* Hojitas de otoño por toda la web (solo se ven en los espacios libres) */
.fiesta-hojas { position: fixed; inset: 0; z-index: 55; pointer-events: none; overflow: hidden; }
.fiesta-hoja { position: absolute; left: 0; top: 0; width: 30px; height: 30px; opacity: 0; will-change: transform, opacity; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.fiesta-hoja svg { width: 100%; height: 100%; display: block; }

/* 31 de diciembre: cuenta regresiva dentro de la franja de la fecha (tiene su propio lugar) */
.fiesta-cuenta { display: inline-flex; gap: 6px; align-items: center; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .25); white-space: nowrap; }

/* El pavo cocina: la arepa salta del budare, se voltea y cae; la candela se mueve */
.fiesta-volteo { transform-box: fill-box; transform-origin: 50% 50%; animation: fiesta-volteo 3.2s cubic-bezier(.3, .7, .4, 1) infinite; }
@keyframes fiesta-volteo { 0%, 55% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-26px) rotate(180deg); } 85% { transform: translateY(0) rotate(360deg); } 90% { transform: translateY(1px) scaleY(.85); } 100% { transform: translateY(0) rotate(360deg); } }
.fiesta-candela { transform-box: fill-box; transform-origin: 50% 100%; animation: fiesta-candela .5s ease-in-out infinite alternate; }
@keyframes fiesta-candela { from { transform: scaleY(.85) scaleX(1.05); } to { transform: scaleY(1.12) scaleX(.95); } }
.fiesta-bicho.fuera .fiesta-ala { animation: fiesta-voltea 3.2s ease-in-out infinite; }
@keyframes fiesta-voltea { 0%, 50%, 100% { transform: rotate(0); } 62% { transform: rotate(-9deg); } 72% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .fiesta-volteo, .fiesta-candela { animation: none; } }

/* Celular: escenario propio del personaje debajo de la portada (no tapa nada) */
.fiesta-escenario { position: relative; height: 200px; overflow: hidden; display: flex; align-items: center; padding: 0 16px;
  background: radial-gradient(120% 140% at 85% 100%, var(--f1, #D9822B), var(--f0, #7A2E12)); }
.fe-saludo { margin: 0; max-width: 52%; color: #fff; font: 700 1.35rem/1.25 Georgia, 'Times New Roman', serif; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); transition: opacity .35s; }
.fiesta-escenario.con-bicho .fe-saludo { opacity: 0; }
.fiesta-escenario .fiesta-bicho { position: absolute; inset: auto 6px 4px auto !important; width: 165px; }
.fiesta-escenario .fiesta-globo { bottom: auto; top: -128px; right: auto; left: calc(-100vw + 186px); max-width: calc(100vw - 200px); border-radius: 18px 18px 4px 18px; }
.fiesta-escenario .fiesta-bicho .fiesta-globo { top: auto; bottom: 22%; }

/* Dueño 21 nov: globito más grande y claro; el pavo se mueve suave cuando cambia de lugar */
.fiesta-bicho { transition: top .7s cubic-bezier(.2,.7,.2,1), left .7s cubic-bezier(.2,.7,.2,1); }
.fiesta-globo { font: 600 1.05rem/1.45 Inter, Helvetica, Arial, sans-serif; padding: 14px 18px; max-width: min(320px, 80vw); border-radius: 20px 20px 6px 20px;
  background: linear-gradient(#FFFDF8, #FFF6E2); border: 2px solid #D4A82A; box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 4px rgba(212,168,42,.15); }
.fiesta-globo::after { content: ''; position: absolute; bottom: -10px; right: 22px; width: 18px; height: 18px; background: #FFF6E2; border-right: 2px solid #D4A82A; border-bottom: 2px solid #D4A82A; transform: rotate(45deg); }
.fiesta-bicho.izquierda .fiesta-globo { border-radius: 20px 20px 20px 6px; }
.fiesta-bicho.izquierda .fiesta-globo::after { right: auto; left: 22px; }
@media (max-width: 640px) { .fiesta-globo { font-size: .98rem; max-width: min(280px, 78vw); } }

/* Página de fiestas: escenario propio del pavo también en computadora (oscuro y dorado como la página) */
body[data-fiesta-escenario] .fiesta-escenario { height: 260px; justify-content: center; background: radial-gradient(55% 130% at 72% 100%, #3a2412, #0b0b0b 72%); border-top: 1px solid #2a231d; border-bottom: 1px solid #2a231d; }
body[data-fiesta-escenario] .fe-saludo { max-width: 640px; text-align: center; color: #F2D16B; font: 700 clamp(1.3rem, 3vw, 2rem)/1.2 Cinzel, Georgia, serif; }
@media (min-width: 700px) {
  body[data-fiesta-escenario] .fiesta-escenario .fiesta-bicho { inset: auto calc(50% - 360px) 8px auto !important; width: 220px; }
  body[data-fiesta-escenario] .fiesta-escenario .fiesta-bicho .fiesta-globo { left: auto; right: 102%; top: auto; bottom: 34%; width: max-content; max-width: 440px; font-size: 1.15rem; border-radius: 20px 20px 6px 20px; }
  body[data-fiesta-escenario] .fiesta-escenario .fiesta-globo::after { right: -10px; bottom: 18px; border-right: 2px solid #D4A82A; border-bottom: 2px solid #D4A82A; border-left: 0; transform: rotate(-45deg); }
}
/* Dueño 21 nov (2): textos del pavo más pequeños y con clase: globito oscuro con borde dorado y letra fina */
.fiesta-globo { font: 500 .9rem/1.45 Inter, Helvetica, Arial, sans-serif; letter-spacing: .01em; padding: 11px 15px; max-width: min(280px, 76vw);
  background: rgba(17, 13, 10, .94); color: #F4ECDD; border: 1px solid rgba(212, 168, 42, .75); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.fiesta-globo b { color: #F2D16B; }
.fiesta-globo::after { background: rgb(17, 13, 10); width: 14px; height: 14px; bottom: -8px; border-right: 1px solid rgba(212,168,42,.75); border-bottom: 1px solid rgba(212,168,42,.75); }
@media (min-width: 700px) { body[data-fiesta-escenario] .fiesta-escenario .fiesta-bicho .fiesta-globo { font-size: .95rem; max-width: 340px; } }
@media (max-width: 640px) { .fiesta-globo { font-size: .86rem; } }

/* Modo guía (dueño, 26 nov 2026): Santa sale rápido, salta de franja en franja y va guiando. Cada franja es su espacio: no tapa nada. */
.fiesta-parada { height: 170px; }
.fiesta-parada .fe-saludo { font: 600 1.02rem/1.4 Inter, Helvetica, Arial, sans-serif; max-width: calc(100% - 170px); }
.fiesta-parada .fe-saludo b { color: #FFE3A3; }
.fiesta-escenario.con-bicho:has(.callado) .fe-saludo { opacity: 1; }
.fiesta-bicho.callado .fiesta-globo { opacity: 0 !important; transform: scale(.85) !important; transition-delay: 0s !important; }
.fiesta-escenario .fiesta-bicho.llega { animation: santa-llega .75s cubic-bezier(.2, 1.35, .3, 1) both; }
@keyframes santa-llega { 0% { transform: translate(110%, 30px) rotate(14deg); opacity: 0; } 55% { transform: translate(-5%, -14px) rotate(-5deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fiesta-escenario .fiesta-bicho.llega { animation: none; } }

/* Santa habla palabra por palabra (dueño, 26 nov 2026) */
.fiesta-globo .pal { opacity: 0; display: inline-block; animation: pal-sale .32s ease-out forwards; }
@keyframes pal-sale { from { opacity: 0; transform: translateY(4px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .fiesta-globo .pal { opacity: 1; animation: none; } }
/* La franja del inicio es más alta: ahí Santa anuncia el regalo completo sin que se corte */
.fiesta-parada[data-para="inicio"] { height: 360px; }
.fiesta-parada[data-para="inicio"] .fiesta-bicho { width: 118px; }
.fiesta-parada[data-para="inicio"] .fiesta-globo { left: calc(-100vw + 146px); max-width: calc(100vw - 160px); font-size: .95rem; line-height: 1.42; }
@media (min-width: 700px) { .fiesta-parada[data-para="inicio"] .fiesta-globo { left: auto; right: 110%; max-width: 520px; } }
