/* ═══════════════════════════════════════════
   NAVIDAD TEMPORAL — Redwood College
   Para quitar el tema: borrar este archivo,
   navidad.js, y las líneas marcadas
   NAVIDAD TEMPORAL en cada HTML.
   styles.css y main.js no se modificaron.
   ═══════════════════════════════════════════ */

:root {
  --white: #fffaf4;
  --off: #f3f6f1;
  --light: #e6eee6;
  --mid: #6d7e73;
  --dark: #1c3b2e;
  --black: #10241b;
  --rule: rgba(16, 36, 27, 0.12);
  --nv-pine: #10281d;
  --nv-pine-soft: #1e4d38;
  --nv-red: #9d1c2b;
  --nv-gold: #a67c2d;
  --nv-cream: #fffaf4;
}

body {
  background:
    radial-gradient(ellipse at 0% -8%, rgba(157, 28, 43, 0.07), transparent 34%),
    radial-gradient(ellipse at 100% 0%, rgba(30, 77, 56, 0.09), transparent 36%),
    #f6f1e6;
  color: var(--black);
}

::selection {
  background: var(--nv-red);
  color: var(--nv-cream);
}

h1.htitle em,
.page-hero-title em,
h2.sh em {
  color: var(--nv-red);
}

.eyebrow,
.docs-lead,
.page-hero-eyebrow {
  color: var(--nv-gold);
}
.eyebrow::before,
.eyeline { background: var(--nv-red); }

/* ─── Nav ─── */
nav.scrolled {
  background: rgba(255, 250, 244, 0.96);
  border-bottom-color: rgba(157, 28, 43, 0.28);
}
nav.scrolled .nav-item:hover > .nav-link { border-bottom-color: var(--nv-red); }
.nav-link--active {
  color: var(--nv-red) !important;
  border-bottom-color: var(--nv-red) !important;
}
.drop-head { color: var(--nv-red); }

/* ─── Botones rojo cardenal ─── */
.bprimary,
.bprimary:hover,
.nav-cta,
.nav-cta:hover,
nav.scrolled .nav-cta,
.fsub,
.fsub:hover,
.drawer-cta,
.lib-box a,
.lib-box a:hover,
.nivel-lector-download,
.nivel-lector-download:hover,
.nivel-horario-download,
.nivel-horario-download:hover,
.utiles-card-btn,
.utiles-card-btn:hover,
.utiles-card-btn--inv,
.utiles-card-btn--inv:hover,
.modal-btn,
.modal-btn:hover {
  background: var(--nv-red);
  color: var(--nv-cream);
  border-color: var(--nv-red);
}

/* ─── Bloques verde pino ─── */
footer,
.marquee,
.page-quicknav,
.eco-box,
.mv-card--dark,
.about-chip,
.director-chip,
.team-download,
.cra-reglas-sancion,
.sned-award-card,
.sned-beneficio--dark,
.sned-beneficio--dark:hover,
.nivel-libro--eleccion,
.utiles-card--dark,
.unif-tabla th {
  background: var(--nv-pine);
  color: var(--nv-cream);
}
footer { box-shadow: inset 0 3px 0 var(--nv-red); }
.marquee { box-shadow: inset 0 -2px 0 rgba(166, 124, 45, 0.85); }
.mitem { color: rgba(255, 236, 205, 0.86); }
.mdot { background: var(--nv-gold); }
.page-quicknav { border-bottom-color: rgba(166, 124, 45, 0.35); }
.page-quicknav-inner a:hover,
.page-quicknav-inner a.qn-active {
  color: var(--nv-gold);
  border-bottom-color: var(--nv-red);
}
.eco-box { border: 1px solid rgba(166, 124, 45, 0.4); }
.about-chip,
.director-chip { background: var(--nv-red); color: var(--nv-cream); }
.chip-l,
.director-chip-role { color: rgba(255, 250, 244, 0.76); }
.foot-links a:hover { color: #f0d48a; }

/* ─── Tarjetas ─── */
.niv-card,
.news-card,
.pilar,
.doc-card,
.cra-servicio,
.cra-digital-feat,
.cra-books-carousel,
.stat,
.cont-form,
.lib-box {
  border-color: var(--rule);
}
.news-ig {
  border: 1px solid rgba(157, 28, 43, 0.18);
  background: rgba(255, 250, 244, 0.72);
  padding: clamp(0.4rem, 1.5vw, 0.85rem);
}
.docs-card:hover,
.pill:hover,
.niv-card:hover,
.soc-btn:hover,
.pilar:hover,
.gf-btn:hover,
.gf-btn.active,
.cra-servicio:hover,
.sned-factor:hover,
.stat:hover,
.news-card:hover,
.doc-card:hover {
  background: #f7efe4;
  border-color: var(--nv-red);
}
.niv-courses a:hover,
.news-header a:hover,
.nlink:hover,
.drop a:hover,
.drawer-sub a:hover {
  color: var(--nv-red);
}
.doc-card::before,
.sig-line { background: var(--nv-red); }

.fg input:focus,
.fg textarea:focus { border-color: var(--nv-gold); }

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(16, 36, 27, 0.28) 0%,
    rgba(16, 36, 27, 0.1) 42%,
    rgba(16, 24, 20, 0.62) 100%
  ) !important;
}
.page-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(16, 40, 30, 0.28) 0%,
    rgba(12, 28, 22, 0.68) 100%
  ) !important;
}
.hero-badge {
  border-color: rgba(240, 212, 138, 0.45);
}

.modal-box {
  border: 1px solid rgba(157, 28, 43, 0.28);
}

/* ─── Luces, nieve y esquinas ─── */
#nv-root,
#nv-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
#nv-root { z-index: 180; }
#nv-lights {
  top: var(--nav-h);
  z-index: 150;
}

.nv-wire {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 42px;
}
.nv-wire svg { width: 100%; height: 100%; display: block; }

.nv-bulb {
  position: absolute;
  width: 11px;
  height: 15px;
  margin-left: -5px;
  border-radius: 45% 45% 50% 50%;
  transform-origin: center top;
  animation: nv-twinkle 1.7s ease-in-out infinite;
}
.nv-bulb::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 1px;
  height: 8px;
  background: rgba(16, 40, 30, 0.55);
  transform: translateX(-50%);
}
.nv-bulb--0 { background: #c42838; color: #c42838; box-shadow: 0 0 10px #c42838; }
.nv-bulb--1 { background: #e0b34a; color: #e0b34a; box-shadow: 0 0 10px #e0b34a; }
.nv-bulb--2 { background: #1f8a52; color: #1f8a52; box-shadow: 0 0 10px #1f8a52; }
.nv-bulb--3 { background: #f4efe4; color: #f4efe4; box-shadow: 0 0 10px rgba(244, 239, 228, 0.9); }

@keyframes nv-twinkle {
  0%, 100% { opacity: 1; filter: brightness(1.15); }
  50% { opacity: 0.45; filter: brightness(0.75); }
}

.nv-star {
  position: absolute;
  top: 76px;
  width: 22px;
  height: 22px;
  color: var(--nv-gold);
  filter: drop-shadow(0 2px 3px rgba(16, 36, 27, 0.28));
  animation: nv-bob 3.4s ease-in-out infinite;
}
.nv-star svg { width: 100%; height: 100%; display: block; }
.nv-star--l { left: 16px; }
.nv-star--r { right: 16px; animation-delay: -1.4s; }

@keyframes nv-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.nv-flake {
  position: absolute;
  top: -12vh;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
  user-select: none;
  will-change: transform;
  filter:
    drop-shadow(0 0 2px rgba(90, 120, 150, 0.55))
    drop-shadow(0 1px 1px rgba(16, 36, 50, 0.28));
  animation: nv-fall linear infinite;
}

@keyframes nv-fall {
  0% { transform: translate3d(0, -12vh, 0); }
  50% { transform: translate3d(var(--nv-drift, 20px), 52vh, 0); }
  100% { transform: translate3d(calc(var(--nv-drift, 20px) * -0.4), 112vh, 0); }
}

/* ─── Viejito Pascuero ─── */
#nv-fly,
.nv-peek,
.nv-present {
  pointer-events: none;
}
#nv-fly {
  position: fixed;
  inset: 0;
  z-index: 210;
  overflow: hidden;
}
.nv-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 660px;
  height: 250px;
  animation: nv-sleigh-run 9.4s cubic-bezier(0.33, 0.05, 0.25, 1) forwards;
  filter: drop-shadow(0 14px 12px rgba(16, 24, 20, 0.32));
}
@keyframes nv-sleigh-run {
  0% { transform: translate3d(-120%, 16vh, 0) rotate(-7deg); }
  18% { transform: translate3d(6vw, 11vh, 0) rotate(3deg); }
  46% { transform: translate3d(34vw, 19vh, 0) rotate(-2deg); }
  74% { transform: translate3d(64vw, 10vh, 0) rotate(4deg); }
  100% { transform: translate3d(118vw, 17vh, 0) rotate(-5deg); }
}

.nv-sleigh {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: flex-end;
  width: max-content;
  height: 210px;
}
.nv-emoji-deer {
  font-size: 4.6rem;
  line-height: 1;
  display: block;
  margin-right: -0.35rem;
  transform-origin: center bottom;
  animation: nv-deer-hop 0.36s ease-in-out infinite;
  filter: drop-shadow(0 8px 4px rgba(16, 24, 20, 0.28));
}
.nv-emoji-deer--lead {
  font-size: 5.1rem;
  position: relative;
  animation-delay: -0.18s;
}
.nv-emoji-deer--lead::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 46%;
  width: 11px;
  height: 11px;
  background: #ff2a2a;
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(255, 42, 42, 0.85);
}
@keyframes nv-deer-hop {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50% { transform: scaleX(-1) translateY(-8px); }
}
.nv-sled {
  position: relative;
  width: 230px;
  height: 168px;
  margin-left: 0.2rem;
}
.nv-sled::before {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 22px;
  width: 210px;
  height: 72px;
  background: linear-gradient(#e04555, #9d1c2b);
  border-radius: 18px 32px 14px 20px;
  box-shadow: inset 0 8px 0 rgba(255, 250, 244, 0.85);
}
.nv-sled::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 8px;
  width: 230px;
  height: 18px;
  border-bottom: 5px solid #e0b34a;
  border-right: 5px solid #e0b34a;
  border-radius: 0 0 22px 0;
}
.nv-claus--ride {
  right: auto;
  left: 78px;
  bottom: 36px;
  transform: scale(0.62);
  transform-origin: bottom center;
}
.nv-fly-line {
  position: absolute;
  right: 8px;
  top: 0;
  left: auto;
  margin: 0;
  padding: 0.2rem 0.55rem;
  background: #fffaf4;
  color: #9d1c2b;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 8px 16px rgba(16, 36, 27, 0.16);
  white-space: nowrap;
  animation: nv-pop 0.35s 0.4s both;
}

.nv-present {
  position: fixed;
  z-index: 214;
  font-size: 1.7rem;
  line-height: 1;
  animation: nv-present-fall 1.7s cubic-bezier(0.2, 0.65, 0.3, 1) forwards;
}
.nv-present i {
  position: absolute;
  left: 10px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0b34a;
  opacity: 0;
  animation: nv-burst 0.65s ease-out 1.05s forwards;
}
.nv-present i:nth-child(2) { --bx: -22px; --by: -18px; background: #c42838; }
.nv-present i:nth-child(3) { --bx: 20px; --by: -14px; background: #1f8a52; }
.nv-present i:nth-child(4) { --bx: -16px; --by: 10px; }
.nv-present i:nth-child(5) { --bx: 18px; --by: 8px; background: #fff; }
.nv-present i:nth-child(6) { --bx: 0; --by: -26px; }
@keyframes nv-present-fall {
  0% { transform: translateY(0) rotate(-8deg); opacity: 1; }
  68% { transform: translateY(34vh) rotate(16deg); }
  80% { transform: translateY(28vh) rotate(-6deg); }
  100% { transform: translateY(32vh) rotate(4deg); opacity: 0; }
}
@keyframes nv-burst {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(0.4); }
}

.nv-peek {
  position: fixed;
  z-index: 230;
  right: 0;
  bottom: 11vh;
  width: 268px;
  height: 230px;
  animation: nv-peek 6.4s cubic-bezier(0.18, 0.8, 0.2, 1) forwards;
}
@keyframes nv-peek {
  0% { transform: translateX(108%) rotate(6deg); }
  16% { transform: translateX(-2%) rotate(-2deg); }
  24% { transform: translateX(3%) rotate(0deg); }
  72% { transform: translateX(0) rotate(-1deg); }
  100% { transform: translateX(112%) rotate(7deg); }
}
.nv-poof {
  position: absolute;
  right: 28px;
  bottom: 70px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 212, 138, 0.85), transparent 68%);
  animation: nv-poof 0.7s ease forwards;
}
@keyframes nv-poof {
  0% { opacity: 0.95; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(1.8); }
}
.nv-ho {
  position: absolute;
  left: 0;
  top: 42px;
  margin: 0;
  padding: 0.35rem 0.7rem;
  background: #fffaf4;
  color: #9d1c2b;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 10px 22px rgba(16, 36, 27, 0.18);
  white-space: nowrap;
  animation: nv-pop 0.4s 0.35s both;
}
@keyframes nv-pop {
  0% { opacity: 0; transform: translateY(8px) scale(0.86); }
  100% { opacity: 1; transform: none; }
}
.nv-claus {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 132px;
  height: 210px;
}
.nv-hat {
  position: absolute;
  left: 22px;
  top: 8px;
  width: 78px;
  height: 36px;
  background: #c42838;
  border-radius: 34px 34px 6px 6px;
  transform: rotate(-18deg);
  transform-origin: 80% 100%;
}
.nv-hat::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 16px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 0 rgba(16, 36, 27, 0.06);
}
.nv-hat::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -6px;
  width: 86px;
  height: 14px;
  background: #fff;
  border-radius: 8px;
}
.nv-face {
  position: absolute;
  left: 30px;
  top: 46px;
  width: 72px;
  height: 62px;
  background: #f3c7a3;
  border-radius: 46% 46% 42% 42%;
}
.nv-eye {
  position: absolute;
  top: 22px;
  width: 7px;
  height: 7px;
  background: #1a120c;
  border-radius: 50%;
}
.nv-eye::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
}
.nv-eye--l { left: 16px; }
.nv-eye--r { right: 16px; }
.nv-cheek {
  position: absolute;
  top: 32px;
  width: 10px;
  height: 7px;
  background: rgba(214, 92, 102, 0.55);
  border-radius: 50%;
}
.nv-cheek--l { left: 8px; }
.nv-cheek--r { right: 8px; }
.nv-nose-face {
  position: absolute;
  left: 32px;
  top: 30px;
  width: 8px;
  height: 7px;
  background: #e2a888;
  border-radius: 50%;
}
.nv-beard {
  position: absolute;
  left: 22px;
  top: 86px;
  width: 88px;
  height: 52px;
  background: #fff;
  border-radius: 0 0 40px 40px;
  box-shadow: inset 0 8px 0 #f7f4ee;
}
.nv-stache {
  position: absolute;
  left: 14px;
  top: 38px;
  width: 44px;
  height: 12px;
  background: #fff;
  border-radius: 0 0 20px 20px;
}
.nv-stache::before,
.nv-stache::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 22px;
  height: 12px;
  background: #fff;
  border-radius: 12px 12px 0 0;
}
.nv-stache::before { left: 0; transform: rotate(-8deg); }
.nv-stache::after { right: 0; transform: rotate(8deg); }
.nv-suit {
  position: absolute;
  left: 28px;
  top: 132px;
  width: 76px;
  height: 78px;
  background: #c42838;
  border-radius: 14px 14px 0 0;
}
.nv-belt {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 9px;
  background: #1b1b1b;
}
.nv-buckle {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  background: #e0b34a;
  border: 2px solid #f4efe4;
  border-radius: 2px;
}
.nv-arm {
  position: absolute;
  left: 6px;
  top: 128px;
  width: 16px;
  height: 48px;
  background: #b4232c;
  border-radius: 8px;
  transform-origin: 50% 6px;
  animation: nv-wave 0.42s ease-in-out infinite;
}
.nv-arm::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -5px;
  width: 22px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
}
@keyframes nv-wave {
  0%, 100% { transform: rotate(22deg); }
  50% { transform: rotate(-34deg); }
}
.nv-sled .nv-claus {
  right: auto;
  left: 72px;
  bottom: 34px;
  transform: scale(0.64);
  transform-origin: bottom center;
}

/* ─── Pantalla de entrada ─── */
#nv-splash {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 179, 74, 0.24), transparent 34%),
    radial-gradient(ellipse at 80% 100%, rgba(157, 28, 43, 0.22), transparent 42%),
    #0e2419;
  color: var(--nv-cream);
  opacity: 1;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#nv-splash.nv-out {
  opacity: 0;
  visibility: hidden;
}
#nv-splash[hidden] { display: none; }

body:has(#nv-splash:not([hidden])) #modal-matricula {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.nv-splash-snow {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 30%, #fff8e0 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 62%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 16%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 78%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 80%, #ffe8c2 50%, transparent 51%);
  opacity: 0.8;
}

.nv-splash-card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.4rem 1.6rem;
  max-width: 720px;
}
.nv-kicker {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #f0d48a;
  margin-bottom: 0.8rem;
}
.nv-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 7.4vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #fffaf4;
}
.nv-title em {
  font-style: italic;
  color: #f0d48a;
}
.nv-lead {
  margin: 1.1rem auto 0;
  max-width: 38ch;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 250, 244, 0.82);
}
.nv-enter {
  margin-top: 1.6rem;
  background: var(--nv-red);
  color: var(--nv-cream);
  border: none;
  padding: 0.85rem 1.8rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}
.nv-enter:hover { background: #b82536; }
.nv-enter:focus-visible {
  outline: 2px solid #f0d48a;
  outline-offset: 3px;
}
.nv-icons {
  margin-top: 1.35rem;
  font-size: 1.7rem;
  letter-spacing: 0.45rem;
}
.nv-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  background: #e0b34a;
  animation: nv-bar 5.2s linear forwards;
}
@keyframes nv-bar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

#nv-music {
  position: fixed;
  left: max(0.85rem, env(safe-area-inset-left));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 260;
  background: var(--nv-red);
  color: var(--nv-cream);
  border: 1px solid var(--nv-red);
  padding: 0.7rem 0.95rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 36, 27, 0.28);
}
#nv-music[aria-pressed="true"] {
  background: var(--nv-pine);
  color: #f0d48a;
  border-color: var(--nv-pine);
}
#nv-music:hover { background: #b82536; }
#nv-music[aria-pressed="true"]:hover { background: #163528; }
#nv-music:focus-visible {
  outline: 2px solid #f0d48a;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .nv-star { display: none; }
  .nv-bulb { width: 8px; height: 12px; }
  .nv-emoji-deer { font-size: 3.1rem; }
  .nv-emoji-deer--lead { font-size: 3.4rem; }
  .nv-claus--ride { transform: scale(0.48); }
  .nv-peek { bottom: 16vh; }
  .nv-ho { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nv-flake,
  .nv-star,
  .nv-bulb,
  .nv-bar { animation: none; }
  .nv-flake,
  #nv-fly,
  .nv-peek,
  .nv-present { display: none; }
}
