/* ============================================================
   Nueva Vida LS — Tebex theme
   style.css — sidebar fija + contenido en paneles.
   Paleta brand NV (cyan/magenta/violeta); variables --nv-* se inyectan
   desde layout.html (Config Schema).
   ============================================================ */

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

body {
    background: var(--nv-bg, #0a0a0f);
    color: var(--nv-text, #e8e8f0);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    /* halo ambiental de marca */
    background-image:
        radial-gradient(1100px 550px at 15% -10%, rgba(0, 212, 255, 0.10), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(123, 47, 255, 0.12), transparent 55%);
    background-attachment: fixed;
}

/* ---------- Shell: sidebar + contenido ---------- */
.nv-shell {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 22px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 22px 20px 40px;
    align-items: start;
}
.nv-content { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.nv-main { display: flex; flex-direction: column; gap: 22px; min-height: 40vh; }

/* Panel base: todo bloque de contenido vive en uno */
.nv-panel {
    background: var(--nv-panel, rgba(22, 22, 34, 0.88));
    border: 1px solid var(--nv-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
/* Alias antiguo (checkout / auth / cms lo usan) */
.nv-glass {
    background: var(--nv-glass, rgba(18, 18, 28, 0.92));
    border: 1px solid var(--nv-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* Contenedores heredados: dentro de .nv-content ya hay gutter, no doblar */
.nv-container { width: 100%; padding: 0; }
.nv-section { padding: 0; }
.nv-narrow { max-width: 720px; margin: 0 auto; }
/* Paginas de texto (CMS): mas ancho que un formulario, con medida de lectura en los parrafos */
.nv-readable { max-width: 940px; margin: 0 auto; }
.nv-block { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Sidebar ---------- */
.nv-side {
    position: sticky; top: 22px;
    display: flex; flex-direction: column; gap: 18px;
    padding: 18px 16px 22px;
    background: var(--nv-panel, rgba(22, 22, 34, 0.88));
    border: 1px solid var(--nv-border);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
}
/* ---------- Botones de la sidebar (IP / Discord / Web) ---------- */
.nv-side__top { display: flex; gap: 10px; }
.nv-sidebtn {
    flex: 1; min-width: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 12px; border-radius: 12px; text-align: left;
    border: 1px solid var(--nv-border); background: rgba(255, 255, 255, 0.04);
    font-size: 0.84rem; font-weight: 600; color: var(--nv-muted);
    transition: color .18s, border-color .18s, background .18s;
}
.nv-sidebtn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.nv-sidebtn:hover { color: var(--nv-cyan); border-color: var(--nv-cyan); background: rgba(0, 212, 255, 0.07); }
/* Boton de IP: ancho completo y a dos lineas */
.nv-sidebtn--wide {
    width: 100%; justify-content: flex-start;
    border-color: rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 255, 0.1));
    color: var(--nv-text);
}
.nv-sidebtn--wide svg { fill: var(--nv-cyan); }
.nv-sidebtn__body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.nv-sidebtn__value {
    font-weight: 700; font-size: 0.88rem; color: var(--nv-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nv-sidebtn__label { font-size: 0.66rem; letter-spacing: 1.1px; text-transform: uppercase; color: var(--nv-muted); }
.nv-sidebtn.is-copied { border-color: var(--nv-cyan); }
.nv-sidebtn.is-copied .nv-sidebtn__label { color: var(--nv-cyan); }

/* Panel "estas viendo" (el nav de abajo ya lista las categorias, no hay desplegable) */
.nv-browsing {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 14px; border-radius: 13px;
    border: 1px solid var(--nv-border); background: rgba(255, 255, 255, 0.035);
}
.nv-browsing[hidden] { display: none; }
.nv-browsing svg { width: 17px; height: 17px; fill: var(--nv-muted); flex-shrink: 0; }
.nv-browsing__body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.nv-browsing__label { font-size: 0.68rem; letter-spacing: 1.1px; text-transform: uppercase; color: var(--nv-cyan); }
.nv-browsing__value { font-weight: 700; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nv-side__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 2px; }
.nv-side__brand img { height: 104px; width: auto; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0, 212, 255, 0.25)); }
.nv-side__brandname {
    font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 1.5px;
    text-transform: uppercase; text-align: center; line-height: 1.05;
    background: linear-gradient(90deg, var(--nv-cyan), var(--nv-violet));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nv-sidenav { display: flex; flex-direction: column; gap: 4px; }
.nv-sidenav__link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.92rem; font-weight: 600; color: var(--nv-muted);
    transition: color .18s, background .18s, border-color .18s;
}
.nv-sidenav__link svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; opacity: .85; }
.nv-sidenav__link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-sidenav__link:hover { color: var(--nv-text); background: rgba(255, 255, 255, 0.05); }
.nv-sidenav__link.is-active {
    color: var(--nv-cyan); background: rgba(0, 212, 255, 0.09);
    border-color: rgba(0, 212, 255, 0.55);
}
.nv-sidenote {
    padding: 14px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.035); border: 1px solid var(--nv-border);
    font-size: 0.84rem; color: var(--nv-muted);
}
/* Nota de canje: en cyan para que no se lea como texto de relleno */
.nv-sidenote--claim {
    background: rgba(0, 212, 255, 0.07); border-color: rgba(0, 212, 255, 0.35);
}
.nv-sidenote--claim strong { display: block; color: var(--nv-cyan); margin-bottom: 4px; }
.nv-sidenote--claim p { margin: 0; }

/* Boton hamburguesa (solo movil) */
.nv-burger {
    display: none; position: fixed; top: 14px; left: 14px; z-index: 120;
    flex-direction: column; gap: 5px; padding: 11px;
    border-radius: 12px; border: 1px solid var(--nv-border);
    background: rgba(12, 12, 20, 0.95);
}
.nv-burger span { display: block; width: 20px; height: 2px; background: var(--nv-text); }
.nv-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(3, 3, 8, 0.6); }
.nv-scrim[hidden] { display: none; }

/* ---------- Topbar (cuenta + carrito) ---------- */
.nv-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 18px;
}
.nv-session { display: flex; align-items: stretch; gap: 10px; min-width: 0; }
.nv-logout {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 12px;
    border: 1px solid var(--nv-border); background: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem; font-weight: 600; color: var(--nv-muted);
    transition: color .18s, border-color .18s, background .18s;
}
.nv-logout svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.nv-logout:hover { color: var(--nv-magenta); border-color: var(--nv-magenta); background: rgba(255, 45, 120, 0.08); }

.nv-account {
    display: flex; flex-direction: column; gap: 0; line-height: 1.25;
    padding: 8px 16px; border-radius: 12px;
    border: 1px solid var(--nv-border); background: rgba(255, 255, 255, 0.04);
    transition: border-color .18s;
}
.nv-account--login { flex-direction: row; align-items: center; gap: 14px; }
.nv-account--login:hover { border-color: var(--nv-cyan); }
.nv-account--login .nv-account__label,
.nv-account--login .nv-account__name { display: block; }
.nv-account__label { font-size: 0.7rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--nv-muted); }
.nv-account__name { font-weight: 700; font-size: 1rem; color: var(--nv-text); }
.nv-account--login .nv-account__name { color: var(--nv-cyan); }
.nv-account--login > div { display: flex; flex-direction: column; }
.nv-account__arrow { width: 17px; height: 17px; fill: var(--nv-cyan); flex-shrink: 0; }
.nv-user { font-weight: 600; color: var(--nv-cyan); }
.nv-cart__total { font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.nv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 600; font-size: 0.95rem; transition: transform .15s, box-shadow .2s, background .2s;
    white-space: nowrap;
}
.nv-btn:hover { transform: translateY(-1px); }
.nv-btn--sm { padding: 7px 14px; font-size: 0.85rem; }
.nv-btn--lg { padding: 14px 28px; font-size: 1.05rem; }
.nv-btn--block { display: flex; width: 100%; }
.nv-btn--primary {
    background: linear-gradient(90deg, var(--nv-cyan), var(--nv-violet));
    color: #05060a;
    box-shadow: 0 4px 18px rgba(0, 212, 255, 0.28);
}
.nv-btn--primary:hover { box-shadow: 0 6px 26px rgba(0, 212, 255, 0.45); }
.nv-btn--primary[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.nv-btn--ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--nv-border); color: var(--nv-text); }
.nv-btn--ghost:hover { border-color: var(--nv-cyan); color: var(--nv-cyan); }
.nv-btn--cart { background: rgba(255, 255, 255, 0.05); border-color: var(--nv-border); }
.nv-btn--cart:hover { border-color: var(--nv-magenta); }
/* Vale para <a> y para <button>: el boton trae fondo y borde propios del navegador */
.nv-btn--ghost-link {
    display: block; width: 100%; text-align: center; font-size: 0.82rem; font-weight: 600;
    color: var(--nv-muted); padding: 4px 0; transition: color .18s;
    background: none; border: 0;
}
.nv-btn--ghost-link:hover { color: var(--nv-cyan); }

/* ---------- Alertas ---------- */
.nv-alert {
    padding: 14px 18px; border-radius: 12px;
    background: rgba(255, 45, 120, 0.12); border: 1px solid rgba(255, 45, 120, 0.35);
    color: #ffd0e0;
}

/* ---------- Bienvenida (home) ---------- */
.nv-welcome { padding: 34px 32px 36px; }
.nv-welcome__kicker {
    display: block; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--nv-cyan); font-weight: 700; margin-bottom: 6px;
}
.nv-welcome__title {
    font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: 2px; line-height: 1;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--nv-cyan) 0%, var(--nv-violet) 55%, var(--nv-magenta) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nv-welcome__text { max-width: 640px; margin: 12px 0 22px; color: var(--nv-muted); }

/* ---------- Cabecera de bloque ---------- */
.nv-blockhead { padding: 18px 24px; }
.nv-blockhead__title,
.nv-section__title {
    font-family: 'Bebas Neue', 'Inter', sans-serif; font-weight: 400;
    letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.05;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}
.nv-section__subtitle {
    font-family: 'Bebas Neue', sans-serif; letter-spacing: 1.5px;
    font-size: 1.6rem; text-transform: uppercase; margin-bottom: 16px;
}
.nv-blockhead__desc, .nv-blockhead__desc p,
.nv-section__desc, .nv-section__desc p { color: var(--nv-muted); margin-top: 6px; }
.nv-muted { color: var(--nv-muted); }
.nv-small { font-size: 0.85rem; }
.nv-empty { color: var(--nv-muted); padding: 20px 0; }

/* ---------- Grids ---------- */
.nv-grid { display: grid; gap: 18px; }
.nv-grid--cats { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.nv-grid--pkgs { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.nv-grid--steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Pasos "Como funciona" (compra -> ID -> canje) ---------- */
.nv-step { padding: 22px 22px 24px; }
.nv-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-bottom: 12px;
    border-radius: 50%; border: 1px solid rgba(0, 212, 255, 0.55);
    background: rgba(0, 212, 255, 0.09); color: var(--nv-cyan);
    font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; line-height: 1;
}
.nv-step__title {
    font-family: 'Bebas Neue', sans-serif; text-transform: uppercase;
    letter-spacing: 1px; font-size: 1.25rem; margin-bottom: 6px;
}
.nv-step__text { color: var(--nv-muted); font-size: 0.92rem; }

.nv-cat {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 26px 18px; text-align: center;
    transition: transform .18s, border-color .2s;
}
.nv-cat:hover { transform: translateY(-3px); border-color: var(--nv-cyan); }
.nv-cat__img { height: 56px; width: auto; object-fit: contain; }
.nv-cat__name { font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; letter-spacing: 1px; text-transform: uppercase; }
.nv-cat__count { font-size: 0.8rem; color: var(--nv-muted); }

/* ---------- Card de paquete ----------
   Formato de referencia: baldosa cuadrada con la imagen en `contain`, nombre
   dentro de la baldosa, precio y boton de compra debajo. Igual que el markup
   por defecto de Tebex (.store-product) para que VIP y Chapas se vean iguales. */
.nv-card {
    display: flex; flex-direction: column; padding: 12px;
    transition: transform .18s, border-color .2s;
}
.nv-card:hover { transform: translateY(-4px); border-color: var(--nv-cyan); }
.nv-card__media {
    position: relative; display: flex; flex-direction: column;
    border-radius: 12px; background: var(--nv-tile, rgba(255, 255, 255, 0.045));
    border: 1px solid var(--nv-border); overflow: hidden;
}
.nv-card__media img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
    padding: 18px; transition: transform .3s;
}
.nv-card:hover .nv-card__media img { transform: scale(1.04); }
.nv-card__title {
    font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: .5px;
    text-transform: uppercase; text-align: center; line-height: 1.15;
    padding: 10px 12px 12px; border-top: 1px solid var(--nv-border);
    background: rgba(0, 0, 0, 0.18);
}
.nv-card__badge {
    position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 700; background: var(--nv-magenta); color: #05060a; z-index: 1;
}
.nv-card__badge--lg { font-size: 1rem; padding: 6px 14px; }
.nv-card__body { padding: 12px 4px 10px; }
.nv-card__excerpt { font-size: 0.88rem; color: var(--nv-muted); margin: 6px 0; }
.nv-card__price { font-size: 1.15rem; font-weight: 800; color: var(--nv-cyan); font-variant-numeric: tabular-nums; }
.nv-card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
/* Card con lista de ventajas (VIP): el boton va justo bajo el precio y las
   ventajas debajo, como en la comparativa tiered de antes */
.nv-card.nv-has-perks .nv-card__foot { margin-top: 0; }
.nv-card.nv-has-perks .nv-perks { padding: 0 4px; margin-top: 14px; }

/* ---------- Package detalle ---------- */
.nv-pkg { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.nv-pkg__media {
    position: relative; overflow: hidden; padding: 24px;
    display: flex; align-items: center; justify-content: center;
    background: var(--nv-tile); border: 1px solid var(--nv-border); border-radius: 16px;
}
.nv-pkg__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.nv-pkg__title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: 1.5px; text-transform: uppercase; line-height: 1; }
.nv-pkg__pricebox { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; padding: 16px 20px; }
.nv-pkg__price { font-size: 2rem; font-weight: 800; color: var(--nv-cyan); font-variant-numeric: tabular-nums; }
.nv-pkg__type { font-size: 0.85rem; color: var(--nv-magenta); text-transform: uppercase; letter-spacing: 1px; }
.nv-pkg__buy { display: flex; flex-direction: column; gap: 14px; }
.nv-pkg__unavailable { color: var(--nv-magenta); margin-top: 10px; }
/* Aviso de canje bajo el boton de compra: el pack no se abona solo */
.nv-pkg__claim {
    margin-top: 14px; padding: 12px 14px; border-radius: 12px;
    background: rgba(0, 212, 255, 0.07); border: 1px solid rgba(0, 212, 255, 0.35);
    font-size: 0.88rem; color: #cfcfe0;
}
.nv-pkg__claim strong { display: block; color: var(--nv-cyan); margin-bottom: 4px; }
.nv-pkg__desc { margin-top: 24px; padding: 28px; }

/* ---------- Prose (CMS / descripciones) ---------- */
.nv-prose { padding: 36px 40px 40px; }
.nv-prose > *:first-child { margin-top: 0; }
.nv-prose > *:last-child { margin-bottom: 0; }

/* Titulo de la pagina: separado del cuerpo por una regla, con kicker de color */
.nv-page__title {
    font-family: 'Bebas Neue', sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
    font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.05;
    padding-bottom: 16px; margin-bottom: 26px;
    border-bottom: 1px solid var(--nv-border);
}
.nv-prose h1 {
    font-family: 'Bebas Neue', sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
    margin: 0 0 6px; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.05;
    background: linear-gradient(90deg, var(--nv-cyan), var(--nv-violet) 65%, var(--nv-magenta));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Subtitulo: primer parrafo tras un h1 */
.nv-prose h1 + p { color: var(--nv-cyan); font-weight: 600; font-size: 1.05rem; margin-top: 0; }

/* Seccion: barra de acento a la izquierda */
.nv-prose h2 {
    font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; text-transform: uppercase;
    margin: 34px 0 14px; font-size: 1.45rem; color: var(--nv-cyan);
    padding-left: 14px; border-left: 3px solid var(--nv-magenta);
}
.nv-prose h3 { margin: 22px 0 10px; font-size: 1.15rem; color: var(--nv-text); }
.nv-prose p, .nv-page__body p { margin: 14px 0; color: #cfcfe0; max-width: 74ch; }
.nv-prose strong { color: var(--nv-text); }
.nv-prose a { color: var(--nv-cyan); text-decoration: underline; }
.nv-prose hr { border: 0; border-top: 1px solid var(--nv-border); margin: 28px 0; }

/* Listas: cada punto en su propia fila con marcador cyan */
.nv-prose ul, .nv-prose ol { margin: 16px 0; padding: 0; list-style: none; }
.nv-prose ol { counter-reset: nvli; }
.nv-prose li {
    position: relative; margin: 8px 0; padding: 12px 16px 12px 40px;
    border-radius: 12px; border: 1px solid var(--nv-border);
    background: rgba(255, 255, 255, 0.03); color: #cfcfe0;
}
.nv-prose ul li::before {
    content: ''; position: absolute; left: 17px; top: 21px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--nv-cyan); box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}
.nv-prose ol li { counter-increment: nvli; }
.nv-prose ol li::before {
    content: counter(nvli); position: absolute; left: 14px; top: 12px;
    font-weight: 700; font-size: 0.85rem; color: var(--nv-cyan);
}
.nv-prose li strong:first-child { color: var(--nv-text); }
/* Listas dentro del modal: sin caja, que el espacio es poco */
.nv-modal .nv-prose li { padding: 4px 0 4px 20px; border: 0; background: none; margin: 4px 0; }
.nv-modal .nv-prose ul li::before { left: 2px; top: 13px; }
.nv-modal .nv-prose ol li::before { left: 2px; top: 4px; }

/* ---------- Formularios ---------- */
.nv-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.nv-field > span { font-size: 0.9rem; color: var(--nv-muted); }
.nv-input {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--nv-border);
    color: var(--nv-text); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.nv-input:focus { outline: none; border-color: var(--nv-cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.18); }

/* ---------- Auth / narrow cards ---------- */
.nv-authcard { padding: 40px; text-align: center; }
.nv-authcard__logo { height: 56px; width: auto; margin: 0 auto 18px; }
.nv-authcard .nv-section__title { margin-bottom: 8px; }
.nv-authcard__form { margin-top: 24px; text-align: left; }

/* ---------- Options ---------- */
.nv-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.nv-option { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; cursor: pointer; transition: border-color .2s; }
.nv-option:hover { border-color: var(--nv-cyan); }
.nv-option__name { font-weight: 600; }
.nv-option__desc { font-size: 0.85rem; color: var(--nv-muted); }

/* ---------- Checkout ---------- */
.nv-checkout__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.nv-checkout__summary, .nv-checkout__pay { padding: 28px; }
.nv-checkout__pay-btn { margin-top: 20px; }
.nv-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--nv-border); }
.nv-line__info { display: flex; align-items: center; gap: 12px; }
.nv-line__img { height: 40px; width: 40px; object-fit: cover; border-radius: 8px; }
.nv-line__price { font-variant-numeric: tabular-nums; color: var(--nv-cyan); font-weight: 600; }
.nv-line--coupon { color: var(--nv-magenta); }
.nv-checkout__total { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 1.3rem; }
.nv-checkout__total strong { color: var(--nv-cyan); font-variant-numeric: tabular-nums; }
.nv-gateways { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.nv-gateway { padding: 12px 16px; border-radius: 10px; color: var(--nv-text); border: 1px solid var(--nv-border); background: rgba(255,255,255,0.04); transition: border-color .2s; }
.nv-gateway:hover { border-color: var(--nv-cyan); }

/* ---------- Footer ---------- */
.nv-footer { padding: 28px 24px 18px; }
.nv-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.nv-footer__brand { max-width: 420px; }
.nv-footer__logo { height: 42px; width: auto; margin-bottom: 12px; }
.nv-footer__text { color: var(--nv-muted); font-size: 0.92rem; }
.nv-footer__nav { display: flex; flex-direction: column; gap: 8px; }
.nv-footer__nav a { color: var(--nv-muted); transition: color .2s; }
.nv-footer__nav a:hover { color: var(--nv-cyan); }

/* Redes sociales */
.nv-social { display: flex; gap: 10px; margin-top: 16px; }
.nv-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--nv-border); background: rgba(255, 255, 255, 0.04);
    color: var(--nv-muted); transition: color .2s, border-color .2s, transform .15s;
}
.nv-social a:hover { color: var(--nv-cyan); border-color: var(--nv-cyan); transform: translateY(-2px); }
.nv-social svg { width: 17px; height: 17px; fill: currentColor; }

/* Disclaimer legal */
.nv-footer__disclaimer {
    padding: 20px 0 16px; margin: 0; max-width: 920px;
    color: var(--nv-muted); font-size: 0.78rem; line-height: 1.55; opacity: 0.75;
}
.nv-footer__bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--nv-border); font-size: 0.85rem; color: var(--nv-muted); }

/* Ocultar seccion de destacados si Tebex no pobla paquetes en la home */
#packages:not(:has(.nv-card)) { display: none; }

/* ============================================================
   Markup POR DEFECTO de Tebex (store-*)
   Categorias "tiered" (suscripciones / rangos VIP) NO usan
   category.html: Tebex las renderiza con su propio HTML dentro
   de nuestro layout. Aqui lo estilamos para que encaje con el brand.
   ============================================================ */
.site-content { max-width: none; margin: 0; padding: 0; }

/* Sidebar de modulos de Tebex (Top Customer / Recent Payments / caja de texto) fuera:
   el contenido ocupa el ancho completo. Los modulos siguen existiendo en el panel
   (Webstore > Sidebar) por si se quieren recuperar; aqui solo no se pintan. */
.site-content-widgets {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: 22px; align-items: start;
}
/* La columna de widgets que Tebex inyecta en las paginas tiered se queda fuera.
   La caja de tarjeta regalo tampoco se pinta: no se venden tarjetas y el regalo
   de Chapas se hace pasando el ID de compra. */
.store-sidebar { display: none !important; }

.store-category-tiered-header,
.store-category-header {
    background: var(--nv-panel); border: 1px solid var(--nv-border);
    border-radius: 16px; padding: 18px 24px; margin-bottom: 18px;
}
.store-category-tiered-header h1,
.store-category-tiered-header h2,
.store-category-header h1 {
    font-family: 'Bebas Neue', sans-serif; text-transform: uppercase;
    letter-spacing: 1.5px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 4px;
}
.store-category-tiered-header .text-content,
.store-category-tiered-header p { color: var(--nv-muted); margin: 0; }

/* Rejilla de productos */
.store-products,
.store-products-tiered {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    align-items: stretch; list-style: none; margin: 0; padding: 0;
}

/* Card de producto (mismo formato que .nv-card) */
.store-product {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--nv-panel); border: 1px solid var(--nv-border);
    border-radius: 16px; padding: 12px;
    transition: transform .18s, border-color .2s;
}
.store-product:hover { transform: translateY(-4px); border-color: var(--nv-cyan); }
.store-product .image,
.store-product img.image,
.store-product img {
    width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain;
    background: var(--nv-tile); border: 1px solid var(--nv-border);
    border-radius: 12px; padding: 18px; margin-bottom: 12px;
}
.store-product .product-title,
.store-product h3 {
    font-family: 'Bebas Neue', sans-serif; text-transform: uppercase; text-align: center;
    letter-spacing: .5px; font-size: 1.2rem; line-height: 1.15; margin-bottom: 10px;
}
.store-product .descr {
    color: var(--nv-muted); font-size: 0.88rem; line-height: 1.55; margin-bottom: 14px;
}
.store-product .descr p { margin: 4px 0; }
.store-product .actions,
.store-product .product-actions {
    margin-top: auto; display: flex; flex-direction: column; gap: 8px;
}
.store-product .price {
    margin: 0 0 8px; font-size: 1.15rem; font-weight: 800;
    color: var(--nv-cyan); font-variant-numeric: tabular-nums;
}
.store-product .price strong { font-weight: 800; }
/* Ventajas dentro de la card (VIP): app.js las mueve aqui desde .descr.
   Con perks la botonera deja de empujarse al fondo, la lista va debajo. */
.store-product.nv-has-perks .actions,
.store-product.nv-has-perks .product-actions { margin-top: 0; }
.nv-perks {
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--nv-border);
    text-align: left;
}
.nv-perks__intro {
    margin: 0 0 10px; color: var(--nv-muted);
    font-size: 0.8rem; line-height: 1.5;
}
.nv-perks__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.nv-perks__list li {
    position: relative; padding-left: 24px;
    font-size: 0.85rem; line-height: 1.45; color: #cfcfe0;
}
.nv-perks__list li::before {
    content: '✓'; position: absolute; left: 0; top: 2px;
    width: 16px; height: 16px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--nv-cyan), var(--nv-violet));
    color: #05060a; font-size: 0.62rem; font-weight: 900; line-height: 1;
}
.nv-perks__list li strong { color: var(--nv-text); font-weight: 700; }
.nv-perks__note {
    margin: 12px 0 0; color: var(--nv-muted);
    font-size: 0.78rem; line-height: 1.5; font-style: italic;
}

/* Condiciones: identicas en todos los rangos, plegadas para no ensuciar la comparativa */
.nv-perks__fine { margin-top: 12px; }
.nv-perks__fine summary {
    cursor: pointer; list-style: none; color: var(--nv-muted);
    font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
}
.nv-perks__fine summary::-webkit-details-marker { display: none; }
.nv-perks__fine summary::before { content: '+\00a0'; color: var(--nv-cyan); }
.nv-perks__fine[open] summary::before { content: '\2013\00a0'; }
.nv-perks__fine summary:hover { color: var(--nv-cyan); }
.nv-perks__fine ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.nv-perks__fine li, .nv-perks__fine p {
    margin: 0; padding-left: 12px; position: relative;
    color: var(--nv-muted); font-size: 0.78rem; line-height: 1.45;
}
.nv-perks__fine li::before { content: '·'; position: absolute; left: 2px; }

/* Botones Tebex (subscribe / add-to-basket) con look del brand */
.store-product .btn-primary,
.store-product .subscribe,
.store-product .btn-secondary,
.store-product .open-basket {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 700; font-size: 0.95rem; cursor: pointer;
    transition: transform .15s, box-shadow .2s, border-color .2s, color .2s;
}
.store-product .btn-primary:hover,
.store-product .subscribe:hover,
.store-product .btn-secondary:hover,
.store-product .open-basket:hover { transform: translateY(-1px); }
.store-product .btn-primary,
.store-product .subscribe {
    background: linear-gradient(90deg, var(--nv-cyan), var(--nv-violet));
    color: #05060a; box-shadow: 0 4px 18px rgba(0, 212, 255, 0.28);
}
.store-product .btn-primary:hover,
.store-product .subscribe:hover { box-shadow: 0 6px 26px rgba(0, 212, 255, 0.45); }
.store-product .btn-secondary,
.store-product .open-basket {
    background: rgba(255, 255, 255, 0.05); border-color: var(--nv-border); color: var(--nv-text);
}
.store-product .btn-secondary:hover,
.store-product .open-basket:hover { border-color: var(--nv-cyan); color: var(--nv-cyan); }
/* El display de arriba pisaba el [hidden] de Tebex: "Ya en el carrito" salia siempre */
.store-product [hidden] { display: none !important; }

/* ---------- Regalar Chapas (explicacion del canje, sin campo de usuario) ---------- */
.nv-card__links { display: flex; gap: 10px; }
.nv-card__links > * { flex: 1; min-width: 0; }
.nv-pkg__gift { margin-top: 10px; width: 100%; }
/* Gana al .nv-modal__dialog de mas abajo, que fija 780px */
.nv-modal__dialog.nv-modal__dialog--sm { max-width: 460px; }
.nv-modal--gift .nv-modal__body { overflow: visible; padding: 20px 28px; }
.nv-modal--gift .nv-gift__intro { margin: 0 0 14px; color: #cfcfe0; font-size: 0.92rem; }
.nv-modal--gift .nv-gift__steps { margin: 0; }
.nv-modal--gift .nv-gift__steps li { font-size: 0.92rem; }
.nv-modal--gift .nv-gift__note { margin: 0; text-align: center; }
.nv-input.is-error { border-color: var(--nv-magenta); }

/* ---------- Login de Discord en las opciones del paquete ---------- */
.nv-btn--discord { background: #5865f2; color: #fff; border-color: #5865f2; }
.nv-btn--discord:hover { box-shadow: 0 6px 26px rgba(88, 101, 242, 0.45); color: #fff; }
.nv-linked {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    background: rgba(88, 101, 242, 0.1); border: 1px solid rgba(88, 101, 242, 0.5);
}
.nv-linked strong { color: var(--nv-text); }
.nv-linked a { color: var(--nv-cyan); font-size: 0.85rem; text-decoration: underline; }

/* ---------- Utilidades ---------- */
.nv-hidden { display: none !important; }

/* ---------- Modal de detalle de paquete ---------- */
.nv-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.nv-modal[hidden] { display: none; }
.nv-modal__backdrop {
    position: absolute; inset: 0; background: rgba(3, 3, 8, 0.72);
}
.nv-modal__dialog {
    position: relative; z-index: 1; width: 100%; max-width: 780px; max-height: 88vh;
    padding: 0; border-radius: 18px; overflow: hidden;
}
.nv-modal__close {
    position: absolute; top: 12px; right: 14px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--nv-border); background: rgba(0, 0, 0, 0.55);
    color: var(--nv-text); font-size: 1.4rem; line-height: 1; cursor: pointer;
    transition: color .2s, border-color .2s;
}
.nv-modal__close:hover { color: var(--nv-cyan); border-color: var(--nv-cyan); }

/* Dos columnas: baldosa de imagen fija + informacion con scroll propio */
.nv-modal__grid {
    display: grid; grid-template-columns: 260px minmax(0, 1fr);
    max-height: 88vh; align-items: stretch;
}
.nv-modal__media {
    display: flex; align-items: flex-start; justify-content: center; padding: 26px 22px;
    background: rgba(0, 0, 0, 0.28); border-right: 1px solid var(--nv-border);
}
/* Misma baldosa que en las tarjetas para que el producto se lea igual */
.nv-modal__img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 16px;
    background: var(--nv-tile); border: 1px solid var(--nv-border); border-radius: 12px;
}
.nv-modal__content { display: flex; flex-direction: column; min-height: 0; }
.nv-modal__head {
    padding: 26px 28px 18px; border-bottom: 1px solid var(--nv-border); flex-shrink: 0;
}
.nv-modal__title {
    font-family: 'Bebas Neue', sans-serif; text-transform: uppercase;
    letter-spacing: 1px; font-size: 1.8rem; line-height: 1.05; padding-right: 38px;
}
.nv-modal__price {
    color: var(--nv-cyan); font-weight: 800; font-size: 1.45rem;
    margin-top: 4px; font-variant-numeric: tabular-nums;
}
/* Solo el cuerpo hace scroll: cabecera y acciones quedan fijas */
.nv-modal__body { padding: 20px 28px; overflow-y: auto; flex: 1; min-height: 0; color: #cfcfe0; }
.nv-modal .nv-prose { padding: 20px 28px; }
.nv-modal__actions {
    padding: 16px 28px 22px; display: flex; flex-direction: column; gap: 10px;
    border-top: 1px solid var(--nv-border); flex-shrink: 0;
}
.nv-modal__note { color: var(--nv-magenta); font-size: 0.9rem; font-weight: 600; text-align: center; }

@media (max-width: 720px) {
    .nv-modal__dialog { max-width: 460px; }
    .nv-modal__grid { grid-template-columns: minmax(0, 1fr); }
    .nv-modal__media {
        border-right: 0; border-bottom: 1px solid var(--nv-border); padding: 20px;
    }
    .nv-modal__img { max-width: 190px; margin: 0 auto; }
}

/* ---------- Reveal on scroll ---------- */
.nv-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.nv-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nv-shell { grid-template-columns: minmax(0, 1fr); padding: 68px 16px 32px; }
    .nv-burger { display: flex; }
    .nv-side {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
        width: 282px; max-height: none; border-radius: 0 18px 18px 0;
        transform: translateX(-105%); transition: transform .28s ease;
    }
    .nv-side.is-open { transform: none; }
}
@media (max-width: 860px) {
    .nv-pkg { grid-template-columns: 1fr; }
    .nv-checkout__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .nv-topbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .nv-btn--cart { justify-content: center; }
    .nv-footer__inner { flex-direction: column; gap: 22px; }
    .nv-welcome { padding: 26px 20px 28px; }
}

/* Respetar preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .nv-reveal { opacity: 1; transform: none; transition: none; }
    .nv-side { transition: none; }
    html { scroll-behavior: auto; }
}
