/* Novedades: portada de noche con cuenta atrás y línea del tiempo de velas.
   Se apoya en site-v2.css y revista-v1.css. */

/* ── Portada ───────────────────────────────────────────────────────── */
.nv-portada {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 82vh, 760px);
  display: grid; place-items: center; text-align: center;
  padding: clamp(96px, 11vw, 124px) 0 clamp(180px, 21vw, 240px);
  background: radial-gradient(120% 90% at 50% 0%, #1b3566 0%, var(--noche) 58%, #0a1a36 100%);
  color: #fff;
}
.nv-cielo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.nv-portada .rv-shell { position: relative; }
.nv-etiqueta {
  display: inline-block; margin: 0; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(240, 215, 122, .45); background: rgba(14, 35, 71, .55);
  color: #f0d77a; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.nv-titulo {
  margin: 22px auto 0; max-width: 14ch; font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: .98; letter-spacing: -.025em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .35);
}
.nv-frase {
  margin: 18px auto 0; max-width: 34ch; color: rgba(255, 255, 255, .82);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35;
}

/* Cuenta atrás */
.nv-cuenta { display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 22px); margin: 38px 0 0; padding: 0; }
.nv-unidad {
  width: clamp(72px, 15vw, 118px); padding: 14px 0 12px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(240, 215, 122, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 50px rgba(0, 0, 0, .25);
}
.nv-num {
  display: block; font-family: var(--serif); font-weight: 700; font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1; color: #fff3c4;
  text-shadow: 0 0 24px rgba(255, 207, 107, .55);
}
.nv-num.nv-cae { animation: nv-cae .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes nv-cae {
  from { transform: translateY(-38%); opacity: 0; filter: blur(3px); }
  to { transform: none; opacity: 1; filter: none; }
}
.nv-nombre-unidad {
  display: block; margin-top: 8px; color: rgba(255, 255, 255, .62);
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.nv-aviso { margin: 26px 0 0; color: rgba(255, 255, 255, .74); font-size: .98rem; }
.nv-aviso a { color: #f0d77a; font-weight: 800; }

/* Ya está aquí */
.nv-llegado { display: none; margin-top: 34px; }
.nv-llegado .rv-acciones { justify-content: center; margin-top: 0; }
.nv-portada[data-estado="llegado"] .nv-cuenta,
.nv-portada[data-estado="llegado"] .nv-aviso,
.nv-portada[data-estado="ultimo"] .nv-cuenta,
.nv-portada[data-estado="ultimo"] .nv-aviso { display: none; }
.nv-portada[data-estado="llegado"] .nv-llegado,
.nv-portada[data-estado="ultimo"] .nv-llegado { display: block; }
.nv-portada[data-estado="llegado"] .nv-etiqueta {
  background: #f0d77a; color: var(--noche); border-color: #f0d77a;
  animation: nv-latido 2.4s ease-in-out infinite;
}
@keyframes nv-latido {
  50% { box-shadow: 0 0 0 10px rgba(240, 215, 122, .18), 0 0 40px rgba(255, 207, 107, .5); }
}

/* ── Línea del tiempo ──────────────────────────────────────────────── */
.nv-historia { padding: clamp(64px, 9vw, 110px) 0; background: var(--papel); }
.nv-lista {
  position: relative; list-style: none; margin: 46px 0 0; padding: 0 0 0 46px;
  display: grid; gap: 26px; max-width: 760px;
}
.nv-lista::before {
  content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(224, 170, 43, .15));
}
.nv-hito { position: relative; }
.nv-llama {
  position: absolute; left: -46px; top: 22px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--papel); border: 2px solid rgba(224, 170, 43, .45);
  display: grid; place-items: center; transition: background .6s, box-shadow .6s, border-color .6s;
}
.nv-llama::after {
  content: ""; width: 10px; height: 15px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 70%, #fff3c4 0 30%, #ffcf6b 60%);
  transform: scale(0); transition: transform .5s .15s cubic-bezier(.3, 1.6, .5, 1);
}
.nv-encendida .nv-llama { background: var(--noche); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(224, 170, 43, .14), 0 0 26px rgba(255, 207, 107, .55); }
.nv-encendida .nv-llama::after { transform: scale(1); animation: nv-titila 2.2s ease-in-out infinite; }
@keyframes nv-titila { 50% { transform: scale(.88, 1.08); } }

.nv-tarjeta {
  padding: 24px 26px 26px; border-radius: 24px; background: #fff;
  border: 1px solid var(--regla); box-shadow: 0 18px 44px rgba(14, 35, 71, .07);
}
.nv-primero .nv-tarjeta { border-color: rgba(224, 170, 43, .6); box-shadow: 0 24px 60px rgba(14, 35, 71, .12); }
.nv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.nv-version {
  padding: 4px 10px; border-radius: 999px; background: var(--noche); color: #f0d77a;
  font-size: .74rem; font-weight: 800; letter-spacing: .06em;
}
.nv-cuando { color: var(--ink-soft); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nv-pendiente .nv-cuando { color: #b07a10; }
.nv-hito-titulo {
  margin: 12px 0 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem); line-height: 1.05; color: var(--ink);
}
.nv-puntos { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.nv-puntos li { position: relative; padding-left: 20px; color: var(--ink-soft); line-height: 1.55; }
.nv-puntos li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.nv-tarjeta .rv-enlace { display: inline-block; margin-top: 16px; }

@media (max-width: 560px) {
  .nv-lista { padding-left: 38px; }
  .nv-lista::before { left: 11px; }
  .nv-llama { left: -38px; width: 26px; height: 26px; }
  .nv-tarjeta { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .nv-num.nv-cae, .nv-encendida .nv-llama::after, .nv-portada[data-estado="llegado"] .nv-etiqueta { animation: none; }
}
