/* Popup "Novedades" (2026-11-12) — NovedadesModal.razor. Se ve una vez por usuario.
   Animado (entrada del popup, cambio de diapositiva, ícono que salta, burbujas, pasos en cascada)
   y respetuoso de prefers-reduced-motion. Usa el color del plan (--lt-plan-*) cuando existe. */
.nv-fondo {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
    background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    animation: nv-aparece .25s ease both;
}
.nv {
    position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 22px; border-radius: 24px;
    background: var(--lt-surface); box-shadow: 0 30px 80px rgba(15, 23, 42, .35);
    animation: nv-entra .45s cubic-bezier(.22, 1.2, .36, 1) both; outline: none;
}
.nv__saltar {
    position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
    min-height: 36px; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--lt-bg);
    font: inherit; font-size: 13px; font-weight: 700; color: var(--lt-text-muted); cursor: pointer;
}
.nv__saltar:hover { color: var(--lt-text); }
.nv__progreso { display: block; width: calc(100% - 96px); height: 4px; border-radius: 999px; overflow: hidden; }
.nv__progreso-pista { fill: var(--lt-border); }
.nv__progreso-lleno { fill: var(--lt-plan, var(--lt-primary)); transition: width .4s cubic-bezier(.22, 1, .36, 1); }

.nv__slide { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.nv__slide--adelante { animation: nv-desde-derecha .4s cubic-bezier(.22, 1, .36, 1) both; }
.nv__slide--atras    { animation: nv-desde-izquierda .4s cubic-bezier(.22, 1, .36, 1) both; }

.nv__arte {
    position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: 6px 0 6px;
    border-radius: 50%; background: var(--lt-plan-light, var(--lt-primary-light));
}
.nv__icono {
    display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; font-size: 46px; color: #fff;
    background: var(--lt-plan-grad, var(--lt-gradient-primary)); box-shadow: 0 14px 30px rgba(15, 23, 42, .2);
    animation: nv-salto .7s cubic-bezier(.34, 1.56, .64, 1) .1s both, nv-flota 3.2s ease-in-out .9s infinite;
}
.nv__arte--ambar   .nv__icono { background: linear-gradient(135deg, #b45309, #f59e0b); }
.nv__arte--verde   .nv__icono { background: linear-gradient(135deg, #047857, #10b981); }
.nv__arte--azul    .nv__icono { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.nv__arte--violeta .nv__icono { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.nv__arte--cian    .nv__icono { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.nv__burbuja { position: absolute; border-radius: 50%; border: 2px solid var(--lt-plan, var(--lt-primary)); opacity: .35; animation: nv-burbuja 3.6s ease-in-out infinite; }
.nv__burbuja--1 { width: 14px; height: 14px; top: 10px; right: 14px; }
.nv__burbuja--2 { width: 9px;  height: 9px;  bottom: 18px; left: 10px; animation-delay: .8s; }
.nv__burbuja--3 { width: 6px;  height: 6px;  top: 26px; left: 22px; animation-delay: 1.6s; background: var(--lt-plan, var(--lt-primary)); }

.nv__paso { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lt-plan-dark, var(--lt-primary-dark)); }
.nv__titulo { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--lt-text); }
.nv__texto { margin: 0; max-width: 46ch; font-size: 15.5px; line-height: 1.55; color: var(--lt-text-muted); }

.nv__pasos { list-style: none; width: 100%; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.nv__pasos-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--lt-bg);
    font-size: 14.5px; color: var(--lt-text); animation: nv-sube .45s cubic-bezier(.22, 1, .36, 1) both;
}
.nv__pasos-item--1 { animation-delay: .15s; }
.nv__pasos-item--2 { animation-delay: .27s; }
.nv__pasos-item--3 { animation-delay: .39s; }
.nv__num {
    flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    font-size: 13px; font-weight: 800; color: #fff; background: var(--lt-plan, var(--lt-primary));
}
.nv__ir {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 2px; padding: 4px 8px; border: 0; background: none;
    font: inherit; font-weight: 700; color: var(--lt-plan-dark, var(--lt-primary-dark)); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.nv__pie { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 4px; }
.nv__puntos { display: flex; gap: 6px; }
.nv__punto {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--lt-border); cursor: pointer;
    transition: width .3s ease, background .3s ease;
}
.nv__punto--on { width: 24px; background: var(--lt-plan, var(--lt-primary)); }
.nv__punto:focus-visible, .nv__ir:focus-visible, .nv__saltar:focus-visible { outline: 2px solid var(--lt-primary-dark); outline-offset: 2px; }
.nv__botones { display: flex; width: 100%; gap: 10px; }
.nv__btn { flex: 1 1 0; min-height: 48px; justify-content: center; font-size: 15px; }

@keyframes nv-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes nv-entra { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes nv-desde-derecha { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes nv-desde-izquierda { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes nv-salto { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.08) rotate(3deg); opacity: 1; } 100% { transform: none; } }
@keyframes nv-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes nv-burbuja { 0%, 100% { transform: translateY(0) scale(1); opacity: .35; } 50% { transform: translateY(-8px) scale(1.15); opacity: .6; } }
@keyframes nv-sube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
    .nv { padding: 24px 18px 18px; border-radius: 20px; }
    .nv__arte { width: 108px; height: 108px; }
    .nv__icono { width: 70px; height: 70px; font-size: 38px; border-radius: 22px; }
    .nv__titulo { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .nv-fondo, .nv, .nv__slide, .nv__icono, .nv__burbuja, .nv__pasos-item { animation: none !important; }
}
