/* Navidad KALMS 2026. Solo actúa cuando navidad.js activa la portada (hasta el 31 de diciembre). */
.nv-logo { width: 56px; height: 56px; }

/* ---------- Oso que salta sobre las letras K-A-L-M-S (el salto dura 900 ms; se desplaza mientras está en el aire) ---------- */
.acronym__oso--salta { width: 112px; transition: transform .46s cubic-bezier(.4, 0, .5, 1) .2s; }
.acronym__oso--salta.is-walking, .acronym__oso--salta.is-happy { animation: none; }
@media (max-width: 640px) { .acronym__oso--salta { width: 86px; } }

/* ---------- Toda la página en tono de noche mientras dura la Navidad ---------- */
html.nv {
  --bg: #0b1626; --bg-alt: #0f1d31;
  --surface: rgba(28, 46, 70, .72); --surface-solid: #172a43; --border: rgba(214, 228, 245, .14);
  --text: #e8eef6; --text-muted: #b2c0d2; --link: #a5c8ee;
  --header-bg: rgba(10, 20, 35, .84); --menu-bg: rgba(10, 20, 35, .97);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .4);
  --green: #8fb574; --green-strong: #a3c78a; --blue: #7ea7d1; --blue-strong: #8db4dc; --gold: #d6bb7e; --s-from: #5f9a78; --s-to: #a3c78a;
  --ink-k: #a3c78a; --ink-a: #d8bf8c; --ink-l: #9cc0e4; --ink-m: #e39a92; --ink-s: #8fc4a4;
  color-scheme: dark;
}

/* ---------- Portada ---------- */
.nv-escena { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nv-escena video, .nv-escena img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 100%;
}
.nv-escena video { opacity: 0; transition: opacity 2.6s ease; }
.nv-escena video.nv-visible { opacity: 1; }
.hero__agua, .hero__overlay, .hero__content { transition: opacity 2s ease, visibility 2s; }
.nv-noche .hero { background: #071428; }
.nv-noche .hero__agua, .nv-noche .hero__overlay { opacity: 0; visibility: hidden; }
.nv-noche .hero__content { opacity: 0; visibility: hidden; pointer-events: none; }
/* el texto de siempre y el navideño comparten el mismo lugar: uno se desvanece y el otro aparece sin saltos */
.nv .hero > .container { display: grid; }
.nv .hero__content, .nv .nv-portada { grid-area: 1 / 1; align-self: center; }

.nv-portada { max-width: 520px; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity 1.2s ease, transform 1.2s ease, visibility 1.2s; }
.nv-noche .nv-fin .nv-portada, .nv-noche .hero.nv-fin .nv-portada { opacity: 1; visibility: visible; transform: none; }
.nv-portada[hidden] { display: none; }
.nv-portada h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.nv-portada p { font-size: 1.15rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.nv-sobre { display: block; font: 600 .8rem/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #f5cf6b; margin-bottom: .8rem; }
.nv-oro { background: linear-gradient(120deg, #ffe27a, #f2b233); color: #2a1a05; }
.nv-oro:hover { background: linear-gradient(120deg, #fff0a8, #ffc447); color: #2a1a05; }

.nv-controles { position: absolute; z-index: 5; right: 16px; top: calc(var(--header-h) + 14px); display: flex; gap: .5rem; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.nv-controles.nv-visibles, .nv-controles:focus-within { opacity: 1; pointer-events: auto; }
.nv-control {
  min-height: 40px; padding: .4rem 1rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .45); color: #fff; font: 600 .9rem var(--font-sans); cursor: pointer;
}

/* Gorrito sobre el botón del chat */
.nv .woot-widget-bubble:not(.woot--close)::after {
  content: ""; position: absolute; width: 44px; height: 37px; left: -9px; top: -17px; pointer-events: none;
  background: url("../img/gorro-navidad.svg") center / contain no-repeat; transform: rotate(-24deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

/* ---------- Promociones ---------- */
.nv-seccion { background: radial-gradient(120% 90% at 50% 0%, #17325a 0%, #0b1a33 45%, #071428 100%); color: #fff; padding: 64px 0 80px; overflow: hidden; }
.nv-seccion h2 { color: #fff; text-align: center; }
.nv-intro { text-align: center; max-width: 620px; margin: 0 auto 40px; opacity: .9; }
.nv-mesa { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 1024px) { .nv-mesa { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; } }

.nv-baraja { --ancho: min(31vw, 245px); display: flex; justify-content: center; align-items: flex-start; padding: 36px 0 30px; }
.nv-carta {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .7rem; text-align: center; cursor: pointer;
  flex: none; width: var(--ancho); aspect-ratio: 5 / 8; padding: 24px 16px 14px; border-radius: 16px; font-family: var(--font-sans); color: #2a2230;
  border: 9px solid transparent;
  background: linear-gradient(#fffaf0, #fffaf0) padding-box,
    repeating-linear-gradient(45deg, #b3122b 0 14px, #fffaf0 14px 22px, #4f8a5b 22px 36px, #fffaf0 36px 44px) border-box;
  box-shadow: -6px 12px 30px rgba(0, 0, 0, .45);
  transform-origin: 50% 130%; transform: translateY(var(--baja, 0)) rotate(var(--giro, 0deg)); transition: transform .35s var(--ease), box-shadow .35s;
}
.nv-carta + .nv-carta { margin-left: calc(var(--ancho) * -.17); }
.nv-carta:nth-child(1) { --giro: -9deg; --baja: 8px; z-index: 1; }
.nv-carta:nth-child(2) { --baja: -12px; z-index: 2; }
.nv-carta:nth-child(3) { --giro: 9deg; --baja: 8px; z-index: 3; }
.nv-carta:hover, .nv-carta:focus-visible { z-index: 6; transform: translateY(-34px) rotate(0deg) scale(1.05); box-shadow: 0 28px 52px rgba(0, 0, 0, .55); }
@media (min-width: 1024px) { .nv-baraja { --ancho: min(19vw, 245px); } }
@media (max-width: 719.98px) {
  .nv-baraja { --ancho: min(30vw, 190px); }
  .nv-carta:nth-child(1) { --giro: -7deg; }
  .nv-carta:nth-child(3) { --giro: 7deg; }
  .nv-carta:hover, .nv-carta:focus-visible { transform: translateY(-20px) rotate(0deg) scale(1.08); }
  .nv-carta { padding: 12px 5px 8px; gap: .45rem; border-width: 6px; border-radius: 12px; }
  .nv-carta .nv-carta__etiqueta { font-size: .55rem; letter-spacing: .06em; }
  .nv-carta .nv-carta__titulo { font-size: 1rem; }
  .nv-carta .nv-carta__texto { font-size: .68rem; line-height: 1.35; }
  .nv-carta .nv-precio { min-width: 42px; height: 42px; padding: 0 3px; font-size: .9rem; }
  .nv-carta .nv-precios { gap: .2rem; margin-top: auto; }
  .nv-carta .nv-carta__abrir { font-size: .65rem; }
}
.nv-carta.nv-volando { visibility: hidden; }
.nv-carta__etiqueta { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #8a1022; font-weight: 700; }
.nv-carta__titulo { font-family: var(--font-serif); font-size: 1.65rem; line-height: 1.15; }
.nv-carta__texto { font-size: .98rem; line-height: 1.45; }
.nv-precio { display: inline-grid; place-items: center; min-width: 78px; height: 78px; padding: 0 8px; border-radius: 50%; background: #ffc20e; color: #8a1022; font: 800 1.55rem var(--font-sans); }
.nv-precios { display: flex; gap: .6rem; }
.nv-carta__abrir { font-weight: 700; font-size: .9rem; color: #2d5680; }

/* Gift Card con brillo que recorre el borde */
.nv-regalo { justify-self: center; width: min(100%, 360px); padding: 3px; border: 0; border-radius: 22px; position: relative; overflow: hidden; cursor: pointer; background: rgba(255, 214, 102, .35); transition: transform .35s var(--ease); }
.nv-regalo::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(transparent 0 62%, #ffd866 74%, #fff 79%, #ffd866 84%, transparent 94%);
  animation: nv-brillo 3.6s linear infinite;
}
.nv-regalo:hover, .nv-regalo:focus-visible { transform: translateY(-6px); }
.nv-regalo.nv-volando { visibility: hidden; }
@keyframes nv-brillo { to { rotate: 1turn; } }
.nv-regalo__cara { position: relative; display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; padding: 30px 24px; border-radius: 19px; background: linear-gradient(150deg, #5a0f1c, #231019 60%, #3b1220); color: #fff; font-family: var(--font-sans); }
.nv-regalo__cara img { width: 120px; height: 120px; }
.nv-regalo__titulo { font-family: var(--font-serif); font-size: 2.2rem; color: #ffd866; line-height: 1.1; }
@media (prefers-reduced-motion: reduce) { .nv-regalo::before { animation: none; } }

.nv-condiciones { margin: 44px auto 0; max-width: 760px; text-align: center; font-size: .86rem; opacity: .75; }

/* ---------- Postal ---------- */
.nv-postal { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: transparent; overflow: hidden; }
.nv-postal[open] { display: grid; place-items: center; }
.nv-postal::backdrop { background: rgba(3, 9, 20, .82); backdrop-filter: blur(3px); }
.nv-cerrar { position: absolute; z-index: 10; right: 16px; top: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.4rem; cursor: pointer; }
.nv-libro { position: relative; width: min(92vw, 430px); max-height: calc(100dvh - 90px); display: flex; flex-direction: column; margin-top: 40px; }
.nv-libro__portada { position: relative; flex: none; }
.nv-cara { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 18px; }
.nv-cara--dentro { background: linear-gradient(160deg, #7d1224, #3a0b16); color: #fff; border-radius: 16px 16px 0 0; }
.nv-cara--dentro strong { font: 400 1.8rem/1.15 var(--font-serif); color: #ffd866; }
.nv-cara--dentro img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; object-position: 50% 68%; border: 3px solid #ffd866; }
.nv-cara--fuera { display: none; }
.nv-libro__detalle { overflow: auto; background: #fffaf0; color: #2a2230; border-radius: 0 0 16px 16px; padding: 22px 24px 26px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); font-family: var(--font-sans); }
.nv-libro__detalle h3 { font-size: 1.5rem; color: #8a1022; margin-bottom: .5em; }
.nv-libro__detalle h4 { margin: 1em 0 .2em; font-size: 1.05rem; }
.nv-libro__detalle p, .nv-libro__detalle ul { margin: 0 0 .7em; }
.nv-libro__detalle .btn { width: 100%; margin-top: .4rem; }
.nv-letra-chica { font-size: .8rem; opacity: .75; margin-top: .9em !important; }
@media (min-width: 720px) {
  .nv-libro { width: min(92vw, 820px); height: min(76vh, 520px); max-height: none; display: block; perspective: 1800px; margin-top: 0; transition: translate .9s var(--ease); translate: -25% 0; }
  .nv-libro.abierta { translate: 0 0; }
  .nv-libro__detalle { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; border-radius: 0 16px 16px 0; }
  .nv-libro__portada { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; z-index: 2; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
  .nv-libro.abierta .nv-libro__portada { transform: rotateY(-180deg); }
  .nv-cara { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .nv-cara--fuera { display: flex; border-radius: 0 16px 16px 0; color: #fff; border: 3px solid #ffd866; background: radial-gradient(circle at 50% 35%, #a31a31, #4a0d1a); }
  .nv-cara--fuera img { width: 170px; height: 170px; }
  .nv-cara--fuera span { font: 400 1.7rem var(--font-serif); color: #ffd866; }
  .nv-cara--dentro { transform: rotateY(180deg); border-radius: 16px 0 0 16px; box-shadow: inset -18px 0 30px rgba(0, 0, 0, .3); gap: 1rem; }
  .nv-cara--dentro strong { font-size: 2.4rem; }
  .nv-cara--dentro img { width: 220px; height: 220px; }
}
@media (prefers-reduced-motion: reduce) { .nv-libro, .nv-libro__portada { transition: none !important; } }

/* ---------- Celular: video arriba, texto abajo ---------- */
@media (max-width: 719.98px) {
  .nv .hero { align-items: end; padding-bottom: 96px; }
  .nv-escena { bottom: auto; height: auto; aspect-ratio: 4 / 5; top: var(--header-h); }
  .nv-escena video, .nv-escena img { -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 76%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 76%, transparent); }
  .nv-noche .hero.nv-fin { align-items: start; padding-top: calc(var(--header-h) + 125vw - 34px); padding-bottom: 48px; }
  .nv-noche .hero.nv-fin .hero__content { display: none; }
  .nv-portada { text-align: center; }
  .nv-portada .hero__actions { justify-content: center; }
}
