/* ===== Tema de Navidad de ANWI: solo un destello de bienvenida =====
   Se activa con <html data-tema="navidad"> en index.html. Para apagarlo, borra ese atributo. */

.xmas {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; text-align: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 78% 18%, #1d2c57 0%, #0b1024 45%, #03040b 100%);
  color: #fff; clip-path: circle(150% at 82% 16%);
  animation: xmasIn .35s ease both;
}
@keyframes xmasIn { from { opacity: 0; } }
/* Salida: el iris se cierra hacia la estrella */
.xmas.bye { clip-path: circle(0% at 82% 16%); transition: clip-path .95s cubic-bezier(.7, 0, .25, 1); }
.xmas.bye .xmas__inner { opacity: 0; transform: scale(.94); transition: opacity .35s, transform .5s; }

/* Estrella de Belén con su brillo */
.xmas__star {
  position: absolute; top: 16%; left: 82%; width: 110px; height: 110px; margin: -55px 0 0 -55px;
  filter: drop-shadow(0 0 26px rgba(255, 221, 128, .75)) drop-shadow(0 0 70px rgba(250, 122, 30, .35));
  animation: starIn .9s cubic-bezier(.2, .8, .2, 1) both, starTwinkle 2.4s 1s ease-in-out infinite;
}
.xmas__star svg { width: 100%; height: 100%; }
@keyframes starIn { from { opacity: 0; transform: scale(.4) rotate(-40deg); } }
@keyframes starTwinkle { 50% { transform: scale(1.08) rotate(6deg); } }

/* Nieve que cae */
.xmas__snow { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(2.5px 2.5px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 28% 62%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 46% 34%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 64% 78%, #fff 50%, transparent 52%),
    radial-gradient(2.4px 2.4px at 78% 46%, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 92% 12%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 36% 88%, #fff 50%, transparent 52%), radial-gradient(2.8px 2.8px at 6% 70%, #fff 50%, transparent 52%);
  background-size: 300px 300px; animation: nevar 6s linear infinite; }
.xmas__snow.b { background-size: 190px 190px; opacity: .45; animation-duration: 9s; }
@keyframes nevar { to { background-position: 40px 300px; } }

.xmas__inner { position: relative; z-index: 2; display: grid; gap: .6rem; justify-items: center; }
.xmas__brand { display: flex; align-items: center; gap: .6rem; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 2.2rem; letter-spacing: 4px; animation: xRise .6s .05s cubic-bezier(.2, .8, .2, 1) both; }
.xmas__brand .logo__mark { width: 46px; height: 54px; }
.xmas .logo__letter { stroke: url(#gradLogoDark); }
.xmas .logo__string { stroke: #fff; }
.xmas .logo__pivot { fill: #fff; }
.xmas__title {
  font-family: "Mountains of Christmas", "Outfit", cursive; font-weight: 700; font-size: clamp(2.4rem, 10vw, 4rem); line-height: 1;
  background: linear-gradient(135deg, #b29dff, #ee8cc8 50%, #fa7a1e); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(238, 140, 200, .45)); animation: xRise .6s .2s cubic-bezier(.2, .8, .2, 1) both;
}
.xmas__sub { margin: 0; color: #cfd8ff; font: 500 .95rem "Inter", sans-serif; animation: xRise .6s .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes xRise { from { opacity: 0; transform: translateY(16px); } }

/* La página espera detrás y entra con un leve acercamiento cuando se abre el iris */
html.xmas-on { overflow: hidden; }
html.xmas-on body > *:not(.xmas) { transform: scale(1.03); filter: blur(4px); }
html.xmas-reveal body > *:not(.xmas):not(.nav):not(.wa-float):not(.chat-fab):not(.to-top):not(.read-bar) { animation: pageIn 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pageIn { from { transform: scale(1.03); filter: blur(4px); } to { transform: none; filter: none; } }
