/* ==========================================================
   RETAPIZAVE - Sistema visual del sitio público (rediseño)
   Paleta: navy #21437D · blanco #FFFFFF · celeste #D2E8FF
   Tipografía: Plus Jakarta Sans. Prefijo de clases: nx-
   ========================================================== */

:root {
    --navy: #21437D;
    --navy-d: #18325E;
    --navy-08: rgba(33, 67, 125, .08);
    --navy-16: rgba(33, 67, 125, .16);
    --sky: #D2E8FF;
    --sky-2: #EEF6FF;
    --white: #FFFFFF;
    --ink: #0F1D36;
    --text: #3A4660;
    --muted: #6B7690;
    --line: #E3E9F2;
    --wa: #1E9E55;
    --wa-d: #178446;
    --r: 14px;
    --r-lg: 22px;
    --wrap: 1200px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px rgba(15, 29, 54, .06);
    --shadow: 0 1px 2px rgba(15, 29, 54, .05), 0 12px 32px -14px rgba(15, 29, 54, .22);
}

[hidden], .hidden { display: none !important; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body.nx {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.nx *, .nx *::before, .nx *::after { box-sizing: border-box; }
.nx h1, .nx h2, .nx h3, .nx h4 {
    font-family: var(--font);
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.12;
}
/* Reset sin especificidad: las clases propias (.nx-hint, .nx-pd-title…) fijan su margen. */
:where(.nx) :where(h1, h2, h3, h4, p) { margin: 0; }
.nx img { max-width: 100%; display: block; }
.nx a:where(:not(.nx-btn)) { color: inherit; text-decoration: none; }
.nx ::selection { background: var(--sky); color: var(--navy-d); }
.nx :focus-visible { outline: 3px solid #7FB2FF; outline-offset: 2px; border-radius: 6px; }

.nx-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .nx-wrap { padding: 0 32px; } }

.nx-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--sky-2); color: var(--navy);
    border: 1px solid var(--sky);
    font-size: 13px; font-weight: 700; letter-spacing: .01em;
}
.nx-chip i { font-size: 12px; }
.nx-chip--soft { background: var(--sky-2); border-color: var(--sky); }
.nx-chip--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }

.nx-h2 { font-size: clamp(28px, 3.4vw, 42px); }
.nx-lead { font-size: 18px; color: var(--muted); max-width: 560px; }

/* ---------- Botones ---------- */
.nx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px;
    border-radius: 12px; border: 1.5px solid transparent;
    font-family: var(--font); font-size: 15px; font-weight: 700; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.nx-btn:active { transform: translateY(1px); }
.nx-btn--primary { background: var(--navy); color: #fff; }
.nx-btn--primary:hover { background: var(--navy-d); }
.nx-btn--outline { background: #fff; color: var(--navy); border-color: var(--navy-16); }
.nx-btn--outline:hover { border-color: var(--navy); background: var(--sky-2); }
.nx-btn--sky { background: var(--sky); color: var(--navy-d); }
.nx-btn--sky:hover { background: #BFDCFF; }
.nx-btn--light { background: #fff; color: var(--navy); }
.nx-btn--light:hover { background: var(--sky-2); }
.nx-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.nx-btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.nx-btn--wa { background: var(--wa); color: #fff; }
.nx-btn--wa:hover { background: var(--wa-d); }
.nx-btn--block { width: 100%; }
.nx-btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.nx-btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.nx-btn[disabled] { opacity: .5; cursor: not-allowed; }

.nx-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; font-size: 15px; }
.nx-link i { transition: transform .18s; }
.nx-link:hover i { transform: translateX(3px); }

/* ---------- Header ---------- */
.nx-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nx-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.nx-logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nx-logo img { width: 44px; height: 44px; object-fit: contain; background: var(--navy); border-radius: 12px; padding: 4px; }
.nx-logo span { font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--navy); }
.nx-nav { display: none; align-items: center; gap: 4px; }
.nx-nav a { padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--text); transition: background-color .15s, color .15s; }
.nx-nav a:hover { background: var(--sky-2); color: var(--navy); }
.nx-nav a.text-navy { background: var(--sky-2); color: var(--navy); font-weight: 700; }
.nx-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 0 0 auto !important; }
.nx-actions > div { display: flex; align-items: center; gap: 10px; }
.nx-actions .nx-btn { display: none; }
.nx-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    font-size: 18px; cursor: pointer;
}
.nx-mobile {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px rgba(15,29,54,.25);
    padding: 12px 20px 20px; display: grid; gap: 4px;
}
.nx-mobile a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: 12px; font-weight: 600; color: var(--ink); }
.nx-mobile a:not(.nx-btn)::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; color: var(--muted); }
.nx-mobile a.text-navy { background: var(--sky-2); color: var(--navy); }
.nx-mobile .nx-btn { margin-top: 8px; justify-content: center; color: #fff; }
@media (min-width: 900px) {
    .nx-nav { display: flex; }
    .nx-actions .nx-btn { display: inline-flex; }
    .nx-menu-btn, .nx-mobile { display: none !important; }
}
/* Botón del carrito (lo inserta carrito.js) */
.nx .rv-cart-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); margin: 0; }
.nx .rv-cart-btn:hover { border-color: var(--navy); background: var(--sky-2); }

/* ---------- Migas de pan ---------- */
.nx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.nx-crumbs a:hover { color: var(--navy); }
.nx-crumbs .sep { color: #B5BFD0; font-size: 10px; }
.nx-crumbs .cur { color: var(--ink); font-weight: 600; }

/* ---------- Hero (inicio) ---------- */
.nx-hero { padding: 40px 0 64px; overflow: hidden; }
.nx-hero-grid { display: grid; gap: 40px; align-items: center; }
.nx-hero h1 { font-size: clamp(38px, 5.4vw, 66px); margin: 18px 0; }
.nx-hero h1 em { font-style: normal; color: var(--navy); background: linear-gradient(transparent 62%, var(--sky) 62%); padding: 0 .06em; }
.nx-hero .nx-lead { margin-bottom: 28px; }
.nx-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.nx-trust { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; }
.nx-trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.nx-trust i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-2); color: var(--navy); border: 1px solid var(--sky); font-size: 14px; }
.nx-art { position: relative; }
.nx-art-photo { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky-2); }
.nx-art-photo img { width: 100%; height: 100%; object-fit: cover; }
.nx-art-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15,29,54,.06); }
.nx-float { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.nx-float b { display: block; color: var(--ink); font-size: 15px; line-height: 1.2; }
.nx-float span { font-size: 12.5px; color: var(--muted); }
.nx-float i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; }
.nx-float--a { left: -12px; bottom: 22px; }
.nx-float--a i { background: var(--sky); color: var(--navy); }
.nx-float--b { right: -12px; top: 22px; }
.nx-float--b i { background: var(--sky); color: var(--navy); }
.nx-art-block { position: absolute; z-index: -1; right: -36px; bottom: -36px; width: 70%; height: 70%; background: var(--sky); border-radius: 26px; }
@media (max-width: 899px) {
    .nx-float--a { left: 10px; bottom: 10px; }
    .nx-float--b { right: 10px; top: 10px; }
    .nx-float { padding: 8px 12px; }
    .nx-float i { width: 32px; height: 32px; }
    .nx-art-block { display: none; }
}
@media (min-width: 900px) {
    .nx-hero { padding: 64px 0 96px; }
    .nx-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
    .nx-art-photo { aspect-ratio: 4 / 4.6; }
}

/* ---------- Secciones ---------- */
.nx-section { padding: 64px 0; }
@media (min-width: 900px) { .nx-section { padding: 96px 0; } }
.nx-section--sky { background: var(--sky-2); }
.nx-section--navy { background: var(--navy); color: #D2E8FF; }
.nx-section--navy h2, .nx-section--navy h3 { color: #fff; }
.nx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.nx-head > div { max-width: 640px; }
.nx-head .nx-h2 { margin-top: 12px; }
.nx-head p { margin-top: 12px; color: var(--muted); }
.nx-section--navy .nx-head p { color: #D2E8FF; }

/* Categorías */
.nx-cats { display: grid; gap: 20px; }
@media (min-width: 760px) { .nx-cats { grid-template-columns: 1fr 1fr; } }
.nx-cat { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 16 / 11; background: var(--navy); isolation: isolate; }
.nx-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -2; }
.nx-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,29,54,0) 35%, rgba(15,29,54,.78) 100%); }
.nx-cat:hover img { transform: scale(1.04); }
.nx-cat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.nx-cat h3 { color: #fff; font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -.02em; }
.nx-cat p { color: #D2E8FF; font-size: 15px; line-height: 1.5; margin-top: 8px; max-width: 420px; }
.nx-cat-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--sky); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.nx-cat-meta::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.nx-cat-tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nx-cat-tags li { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.nx-cat::before { background: linear-gradient(180deg, rgba(15,29,54,0) 20%, rgba(15,29,54,.88) 100%); }
@media (max-width: 599px) { .nx-cat { aspect-ratio: auto; min-height: 440px; } .nx-cat-body { padding: 20px; } }
.nx-cat-go { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--navy); transition: transform .18s; }
.nx-cat:hover .nx-cat-go { transform: translateX(3px); }

/* Pasos */
.nx-steps { display: grid; gap: 16px; }
@media (min-width: 640px) { .nx-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .nx-steps { grid-template-columns: repeat(4, 1fr); } }
.nx-step { padding: 24px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.nx-step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sky); color: var(--navy-d); font-weight: 800; font-size: 15px; margin-bottom: 18px; }
.nx-step h3 { font-size: 19px; margin-bottom: 8px; }
.nx-step p { font-size: 15px; color: #D2E8FF; }

/* Garantías */
.nx-feats { display: grid; gap: 16px; }
@media (min-width: 760px) { .nx-feats { grid-template-columns: repeat(3, 1fr); } }
.nx-feat { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.nx-feat > i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-2); color: var(--navy); font-size: 20px; margin-bottom: 18px; }
.nx-feat h3 { font-size: 20px; margin-bottom: 8px; }
.nx-feat p { font-size: 15px; color: var(--muted); }

/* Bloque CTA */
.nx-cta-box { display: grid; gap: 28px; align-items: center; padding: 36px 28px; border-radius: 28px; background: var(--navy); color: #D2E8FF; position: relative; overflow: hidden; }
.nx-cta-box::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(210,232,255,.08); }
.nx-cta-box h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.nx-cta-box p { margin-top: 10px; color: #D2E8FF; max-width: 520px; }
.nx-cta-box .nx-cta { position: relative; z-index: 1; }
@media (min-width: 900px) { .nx-cta-box { grid-template-columns: 1fr auto; padding: 56px; } }

/* Preguntas frecuentes */
.nx-faq { display: grid; gap: 12px; max-width: 860px; }
.nx-faq details { border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .15s; }
.nx-faq details[open] { border-color: var(--navy-16); box-shadow: var(--shadow-sm); }
.nx-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; color: var(--ink); font-size: 16px; }
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq summary::after { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 13px; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: var(--sky-2); color: var(--navy); transition: transform .2s; }
.nx-faq details[open] summary::after { transform: rotate(45deg); }
.nx-faq details p { padding: 0 20px 20px; color: var(--muted); font-size: 15px; }

/* ---------- Cabecera de página interna ---------- */
.nx-pagehead { background: var(--sky-2); border-bottom: 1px solid var(--sky); padding: 32px 0 36px; }
.nx-pagehead h1 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 6px; }
.nx-pagehead .nx-lead { margin-top: 12px; }
@media (min-width: 900px) { .nx-pagehead { padding: 44px 0 52px; } }
.nx-pagehead-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* ---------- Barra del catálogo (buscar y ordenar) ---------- */
.nx-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 28px 0 24px; }
.nx-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.nx-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.nx-search .nx-input { padding-left: 42px; }
.nx-toolbar-r { display: flex; align-items: center; gap: 12px; }
.nx-toolbar-r .nx-select { width: auto; min-width: 200px; }
.nx-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.nx-empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.nx-catalog { padding-bottom: 80px; }

/* ---------- Formularios ---------- */
.nx-input, .nx-select, .nx-textarea, .nx .rv-size-select, .nx #detail-size-select {
    width: 100%; min-height: 48px; padding: 10px 14px;
    font-family: var(--font); font-size: 15px; color: var(--ink);
    background-color: #fff; border: 1.5px solid var(--line); border-radius: 12px;
    transition: border-color .15s, box-shadow .15s; outline: none;
    -webkit-appearance: none; appearance: none;
}
.nx-select, .nx .rv-size-select, .nx #detail-size-select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2321437D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; cursor: pointer;
}
.nx-textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.nx-input:focus, .nx-select:focus, .nx-textarea:focus, .nx .rv-size-select:focus, .nx #detail-size-select:focus { border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-08); }
.nx-input::placeholder, .nx-textarea::placeholder { color: #9AA4B8; }
.nx-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.nx-label small { font-weight: 500; color: var(--muted); font-size: 13px; }
.nx-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.nx-field { margin-bottom: 18px; }
.nx-row2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .nx-row2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Tarjeta de producto ---------- */
.nx-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.nx-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.nx-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.nx-card-media { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 4 / 3; background: var(--sky-2); overflow: hidden; cursor: pointer; }
.nx-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nx-card:hover .nx-card-media img { transform: scale(1.04); }
.nx-card-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.nx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: var(--navy); color: #fff; }
.nx-badge--offer { background: var(--navy); color: #fff; }
.nx .rv-etiqueta { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: #fff; color: var(--navy); }
.nx-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.nx-card-title { display: block; text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); cursor: pointer; background: none; border: 0; padding: 0; text-align: left; font-family: var(--font); line-height: 1.3; }
.nx-card-title:hover { color: var(--navy); }
.nx-card-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.nx-price { margin: 14px 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nx-price-label { width: 100%; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nx-price-amount { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); line-height: 1; }
.nx-price-cur { font-size: 13px; font-weight: 600; color: var(--muted); }
.nx-card .nx-size { display: block; margin: 0 0 10px; }
.nx-card .nx-size > span { display: block; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.nx-card .rv-size-select { min-height: 44px; font-size: 14px; font-weight: 600; }
.nx-card .rv-card-medida { font-size: 13px; color: var(--muted); margin: -2px 0 10px; }
.nx-card .rv-card-medida span { color: var(--ink); font-weight: 600; }
.nx-card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nx-card-actions .nx-btn { min-height: 44px; font-size: 14px; padding: 0 12px; }
.nx-card-wa { margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.nx-card-wa i { color: var(--wa); font-size: 16px; }
.nx-card-wa:hover { color: var(--navy); }

/* Esqueleto de carga */
.nx-skel { border-radius: 20px; border: 1px solid var(--line); overflow: hidden; }
.nx-skel::before { content: ""; display: block; aspect-ratio: 4 / 3; background: var(--sky-2); }
.nx-skel::after { content: ""; display: block; height: 96px; margin: 16px; border-radius: 10px; background: linear-gradient(90deg, #F2F5FA 25%, #E8EEF6 50%, #F2F5FA 75%); background-size: 200% 100%; animation: nxShimmer 1.4s infinite; }
@keyframes nxShimmer { to { background-position: -200% 0; } }

/* Destacados del inicio */
.nx-items { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.nx-item { display: block; }
.nx-item .nx-ph { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--sky-2); }
.nx-item .nx-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nx-item:hover .nx-ph img { transform: scale(1.04); }
.nx-item h3 { font-size: 17px; margin-top: 14px; font-weight: 700; letter-spacing: -.01em; }
.nx-item p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.nx-item:hover h3 { color: var(--navy); }

/* ---------- Detalle de producto ---------- */
.nx-pd { display: grid; gap: 32px; align-items: start; padding: 28px 0 72px; }
@media (min-width: 960px) { .nx-pd { grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 36px 0 96px; } .nx-pd-media { position: sticky; top: 96px; } }
.nx-pd-main { position: relative; border-radius: 24px; overflow: hidden; background: var(--sky-2); aspect-ratio: 1 / 1; }
.nx-pd-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.nx-pd-zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 0; cursor: pointer; background: rgba(255,255,255,.94); color: var(--navy); font-family: var(--font); font-weight: 700; font-size: 13px; box-shadow: var(--shadow-sm); }
.nx #detail-gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0 2px; }
.nx #detail-gallery-thumbs.hidden { display: none !important; }
.nx #detail-gallery-thumbs button { flex-shrink: 0; border-radius: 12px !important; border-width: 2px; border-style: solid; overflow: hidden; }
.nx #detail-gallery-thumbs .border-navy { border-color: var(--navy) !important; }
.nx #detail-gallery-thumbs .border-gray-200 { border-color: var(--line) !important; }
.nx-pd-info > * + * { margin-top: 20px; }
.nx-pd-back { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--navy); }
.nx-pd-title { font-size: clamp(30px, 3.6vw, 44px); margin-top: 10px; }
.nx-pd-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-pd-tag { display: inline-flex; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; background: var(--sky); color: var(--navy-d); }
.nx-pd-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 22px; border-radius: 18px; background: var(--sky-2); border: 1px solid var(--sky); }
.nx-pd-price .nx-price-amount { font-size: 40px; }
.nx-pd-price small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.nx-pd-box { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.nx-pd-box .nx-label { margin-bottom: 10px; }
.nx .rv-caja { padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.nx .rv-titulo { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.nx .rv-titulo i { color: var(--navy); }
.nx .rv-medidas { color: var(--ink); font-weight: 600; font-size: 15px; white-space: pre-line; }
.nx .rv-aviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--sky-2); border: 1px solid var(--sky); font-size: 14px; color: var(--text); }
.nx .rv-aviso i { color: var(--navy); margin-top: 3px; }
.nx-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nx-spec { padding: 14px 10px; border-radius: 14px; border: 1px solid var(--line); text-align: center; }
.nx-spec i { color: var(--navy); font-size: 18px; }
.nx-spec b { display: block; margin-top: 8px; font-size: 14px; color: var(--ink); line-height: 1.25; }
.nx-spec span { font-size: 12px; color: var(--muted); }
.nx-pd-actions { display: grid; gap: 10px; }
.nx-pd-help { font-size: 13px; color: var(--muted); text-align: center; }

/* Visor de fotos */
.nx-lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 72px 20px 20px; background: rgba(10, 20, 38, .92); }
.nx-lightbox-in { position: relative; max-width: 1100px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.nx-lightbox img { max-height: 78vh; width: auto; max-width: 100%; object-fit: contain; border-radius: 16px; }
.nx-lightbox h3 { color: #fff; font-size: 17px; margin-top: 14px; text-align: center; }
.nx-lightbox-x { position: absolute; top: -56px; right: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-family: var(--font); font-weight: 700; cursor: pointer; }

/* ---------- Cotizador ---------- */
.nx-quote { display: grid; gap: 24px; align-items: start; padding: 32px 0 80px; }
@media (min-width: 960px) { .nx-quote { grid-template-columns: 1fr 360px; gap: 40px; padding: 48px 0 96px; } .nx-quote-side { position: sticky; top: 96px; } }
.nx-quote-side > * + * { margin-top: 16px; }
.nx-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
@media (min-width: 640px) { .nx-panel { padding: 32px; } }
.nx-panel--sky { background: var(--sky-2); border-color: var(--sky); }
.nx-qstep { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.nx-qstep:last-of-type { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.nx-qstep-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.nx-qstep-h h2 { font-size: 20px; }
.nx-qstep-n { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; }
.nx-qstep.is-done .nx-qstep-n { background: var(--wa); }
.nx-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 20px; border-radius: 18px; border: 2px dashed #BFD3EE; background: var(--sky-2); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.nx-drop:hover, .nx-drop.is-over { border-color: var(--navy); background: var(--sky); }
.nx-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.nx-drop i { font-size: 28px; color: var(--navy); }
.nx-drop b { color: var(--ink); font-size: 16px; }
.nx-drop span { font-size: 13px; color: var(--muted); }
.nx-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.nx-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sky-2); }
.nx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-thumb button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(15,29,54,.75); color: #fff; cursor: pointer; font-size: 12px; }
.nx-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-opt { position: relative; }
.nx-opt input { position: absolute; opacity: 0; pointer-events: none; }
.nx-opt span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14.5px; color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.nx-opt span i { color: var(--navy); }
.nx-opt span:hover { border-color: var(--navy-16); }
.nx-opt input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.nx-opt input:checked + span i { color: var(--sky); }
.nx-opt input:focus-visible + span { outline: 3px solid #7FB2FF; outline-offset: 2px; }
.nx-geo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.nx-geo-ok { font-size: 13.5px; color: var(--wa-d); font-weight: 600; }
.nx-geo-ok a { text-decoration: underline; }
.nx-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 14px; }
.nx-alert i { margin-top: 3px; }
.nx-alert--err { background: #FFF1F1; border: 1px solid #F6CACA; color: #8A1F1F; }
.nx-alert--ok { background: #EDFAF2; border: 1px solid #BFE8CF; color: #145C34; }
.nx-alert--info { background: var(--sky-2); border: 1px solid var(--sky); color: var(--text); }
.nx-alert--info i { color: var(--navy); }
.nx-summary h3 { font-size: 17px; margin-bottom: 14px; }
.nx-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nx-summary li { display: flex; gap: 12px; font-size: 14.5px; }
.nx-summary li > i { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 13px; border: 1px solid var(--sky); }
.nx-summary li b { display: block; color: var(--ink); font-size: 14.5px; }
.nx-summary li span { color: var(--muted); font-size: 13.5px; }
.nx-done { text-align: center; padding: 8px 0; }
.nx-done > i { width: 64px; height: 64px; border-radius: 20px; display: inline-grid; place-items: center; background: #EDFAF2; color: var(--wa); font-size: 28px; margin-bottom: 16px; }
.nx-done h2 { font-size: 24px; margin-bottom: 8px; }
.nx-done p { color: var(--muted); margin-bottom: 20px; }
.nx-done .nx-cta { justify-content: center; }

/* ---------- Páginas legales ---------- */
.nx-legal { display: grid; gap: 32px; padding: 40px 0 88px; }
@media (min-width: 960px) { .nx-legal { grid-template-columns: 240px 1fr; gap: 64px; padding: 56px 0 104px; } .nx-legal-nav { position: sticky; top: 96px; align-self: start; } }
.nx-legal-nav { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 960px) { .nx-legal-nav { flex-direction: column; } }
.nx-legal-nav a { padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--text); border: 1px solid var(--line); }
@media (min-width: 960px) { .nx-legal-nav a { border-color: transparent; } }
.nx-legal-nav a:hover { background: var(--sky-2); color: var(--navy); }
.nx-legal-nav a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.nx-prose { max-width: 740px; font-size: 16px; line-height: 1.75; color: var(--text); }
.nx-prose > * + * { margin-top: 14px !important; }
.nx-prose h2 { font-size: 21px !important; color: var(--ink) !important; font-weight: 800 !important; margin-top: 40px !important; padding-top: 0 !important; letter-spacing: -.02em; }
.nx-prose ul { padding-left: 22px; list-style: disc; }
.nx-prose li + li { margin-top: 6px; }
.nx-prose li::marker { color: var(--navy); }
.nx-prose a { color: var(--navy) !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.nx-prose strong { color: var(--ink); }
.nx-prose div { background: var(--sky-2) !important; border: 1px solid var(--sky) !important; border-radius: 16px !important; padding: 20px 22px !important; }
.nx-prose div > * + * { margin-top: 8px; }
.nx-updated { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- 404 ---------- */
.nx-404 { padding-top: 56px; padding-bottom: 96px; text-align: center; }
.nx-404-n { font-size: clamp(96px, 16vw, 160px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--navy); font-variant-numeric: lining-nums; }
.nx-404 h1 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 8px; }
.nx-404 .nx-404-p { color: var(--muted); margin: 12px auto 0; max-width: 560px; }
.nx-404 code { background: var(--sky-2); padding: 2px 8px; border-radius: 6px; font-size: 13px; word-break: break-all; }
.nx-404 .nx-cta { justify-content: center; margin-top: 24px; }
.nx-404-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 36px auto 0; max-width: 820px; text-align: left; }
@media (min-width: 760px) { .nx-404-grid { grid-template-columns: repeat(4, 1fr); } }
.nx-404-grid a { padding: 20px; border-radius: 18px; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.nx-404-grid a:hover { border-color: var(--navy-16); box-shadow: var(--shadow); }
.nx-404-grid i { color: var(--navy); font-size: 20px; }
.nx-404-grid b { display: block; margin-top: 12px; color: var(--ink); }
.nx-404-grid span { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.nx-footer { background: var(--navy-d); color: #D2E8FF; padding: 64px 0 28px; font-size: 15px; }
.nx-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 16px; }
.nx-foot-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .nx-foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.nx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nx-footer a:hover { color: #fff; }
.nx-footer .nx-logo span { color: #fff; }
.nx-footer .nx-logo img { background: rgba(255,255,255,.08); }
.nx-foot-tag { margin-top: 14px; max-width: 300px; }
.nx-social { display: flex; gap: 10px; margin-top: 20px; }
.nx-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; font-size: 18px; transition: background-color .15s; }
.nx-social a:hover { background: rgba(255,255,255,.18); }
.nx-foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13.5px; }
.nx-foot-legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- WhatsApp flotante ---------- */
.nx-wa { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--wa); color: #fff !important; font-weight: 700; font-size: 15px; box-shadow: 0 10px 28px -8px rgba(30,158,85,.55); transition: background-color .15s, transform .15s; }
.nx-wa i { font-size: 24px; }
.nx-wa:hover { background: var(--wa-d); transform: translateY(-2px); }
@media (max-width: 640px) { .nx-wa { width: 54px; padding: 0; justify-content: center; } .nx-wa span { display: none; } }

/* ---------- Modal de catálogo ---------- */
.nx-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,20,38,.6); backdrop-filter: blur(4px); }
.nx-modal-box { position: relative; width: 100%; max-width: 620px; background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.nx-modal-box h2 { font-size: 24px; padding-right: 48px; }
.nx-modal-box > p { color: var(--muted); margin-top: 6px; }
.nx-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.nx-modal-grid button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 20px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-family: var(--font); transition: border-color .15s, background-color .15s; }
.nx-modal-grid button:hover { border-color: var(--navy); background: var(--sky-2); }
.nx-modal-grid i { font-size: 22px; color: var(--navy); }
.nx-modal-grid b { font-size: 17px; color: var(--ink); }
.nx-modal-grid span { font-size: 13px; color: var(--muted); }
.nx-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }

/* ---------- Aviso de cookies (lo crea app.js) ---------- */
.nx #cookie-notice { left: 16px !important; right: 16px !important; bottom: 16px !important; max-width: 760px; margin: 0 auto; border: 1px solid var(--line) !important; border-radius: 18px; box-shadow: var(--shadow) !important; padding: 16px 18px !important; }
.nx #cookie-notice p { font-size: 13.5px; color: var(--text); }
.nx #cookie-notice a { color: var(--navy); text-decoration: underline; font-weight: 600; }
.nx #cookie-notice button { border-radius: 10px !important; font-family: var(--font); padding: 10px 18px !important; background: var(--navy) !important; color: #fff !important; }

/* ---------- Carrito: tipografía del sitio ---------- */
.nx [class*="rv-cart"] { font-family: var(--font); }

/* ---------- Entrada suave al hacer scroll ---------- */
.nx-reveal { transition: opacity .6s ease, transform .6s ease; }
/* Solo lo que está debajo de la pantalla al cargar se oculta (inicio.js pone nx-pend) */
.nx-reveal.nx-pend { opacity: 0; transform: translateY(14px); }
.nx-reveal.nx-pend.nx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .nx-reveal, .nx-reveal.nx-pend { opacity: 1; transform: none; transition: none; }
    .nx *, .nx *::before, .nx *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Carrito: un botón por tamaño de pantalla ---------- */
.nx .rv-cart-btn-desk, .nx .rv-cart-btn-mob { margin: 0 !important; }
@media (max-width: 899px) { .nx .rv-cart-btn-desk { display: none !important; } }
@media (min-width: 900px) { .nx .rv-cart-btn-mob { display: none !important; } }
.nx-card .rv-medidas { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 4px; white-space: normal; }
.nx-skel-grid > .nx-skel { min-height: 1px; }
@media (max-width: 899px) { .nx .rv-cart-btn-mob { display: inline-flex !important; } }

/* ---------- Inicio (v2): portada de foto, servicios, banda de cotización ---------- */
.nx-hx { padding: 16px 0 0; }
.nx-hx-frame { position: relative; border-radius: 28px; overflow: hidden; background: var(--sky-2); min-height: 560px; display: flex; align-items: flex-end; isolation: isolate; }
.nx-hx-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.nx-hx-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,29,54,.05) 20%, rgba(15,29,54,.82) 100%); }
.nx-hx-body { padding: 32px 24px; max-width: 720px; }
.nx-hx-kicker { color: var(--sky); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.nx-hx h1 { color: #fff; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.03em; margin: 0; }
.nx-hx-lead { color: #D2E8FF; font-size: 18px; max-width: 520px; margin: 16px 0 26px; }
@media (min-width: 900px) { .nx-hx-frame { min-height: 640px; } .nx-hx-body { padding: 56px; } }
@media (max-width: 599px) { .nx-hx-frame { min-height: 520px; border-radius: 22px; } .nx-hx-lead { font-size: 16px; } }

.nx-section--tight { padding: 48px 0; }
@media (min-width: 900px) { .nx-section--tight { padding: 64px 0; } }
.nx-svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.nx-svc li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.nx-svc li:last-child { border-bottom: 1px solid var(--line); }
.nx-svc span { grid-row: span 2; color: var(--navy); font-weight: 800; font-size: 14px; padding-top: 4px; }
.nx-svc h3 { font-size: 20px; color: var(--ink); margin: 0 0 6px; }
.nx-svc p { font-size: 15px; color: var(--muted); margin: 0; }
@media (min-width: 900px) {
    .nx-svc { grid-template-columns: repeat(3, 1fr); gap: 40px; }
    .nx-svc li, .nx-svc li:last-child { border-bottom: 0; border-top: 2px solid var(--navy); padding-top: 24px; grid-template-columns: 1fr; }
    .nx-svc span { grid-row: auto; margin-bottom: 10px; }
}

.nx-band { display: grid; gap: 36px; align-items: center; }
.nx-band .nx-lead { margin: 14px 0 24px; }
.nx-band-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nx-band-steps li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--sky); border-radius: var(--r-lg); padding: 20px; }
.nx-band-steps i { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--navy); font-size: 18px; }
.nx-band-steps h3 { font-size: 17px; color: var(--ink); margin: 0 0 4px; }
.nx-band-steps p { font-size: 15px; color: var(--muted); margin: 0; }
@media (min-width: 900px) { .nx-band { grid-template-columns: 1fr 1.1fr; gap: 64px; } }

/* ---------- Fondo: bandas alternas blanco / celeste ---------- */
body.nx { background: #fff; }
.nx-section--sky, .nx-pagehead { background: var(--sky-2); border-color: var(--sky-2); }
.nx-section--sky .nx-band-steps li { border-color: #fff; }

/* ---------- Títulos de categoría: sobrios ---------- */
.nx-cat-meta { color: #d2e8ff; font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: none; }
.nx-cat-meta::before { display: none; }
.nx-cat p { color: #d2e8ff; }
.nx-ttl { color: #fff; font-weight: 700; letter-spacing: -.02em; }
.nx-pagehead .nx-ttl { color: #21437d; }

/* ---------- Títulos de catálogo en el mismo color que "Cotiza con una foto" ---------- */
.nx-pagehead .nx-ttl { color: var(--ink); }

/* ---------- "Cotizar a la medida" como botón ---------- */
.nx-card-wa.nx-btn { width: 100%; min-height: 44px; margin-top: 8px; font-size: 14px; color: #fff; }
.nx-card-wa.nx-btn i { color: #fff; }
.nx-card-wa.nx-btn:hover { color: #fff; }

/* ---------- Carrito: monto visible sin abrirlo ---------- */
.nx .rv-cart-amount { display: none; font-size: 14px; font-weight: 700; color: var(--navy); }
.nx .rv-cart-btn.has-amount { width: auto; padding: 0 14px; gap: 8px; background: var(--sky-2); border-color: var(--sky); }
.nx .rv-cart-btn.has-amount .rv-cart-amount { display: inline; }
.nx .rv-cart-badge { background: var(--navy); color: #fff; }

/* ---------- Sin destello azul al cargar ---------- */
/* El logo del header ya trae su fondo azul dentro del archivo (logo-nx.svg) */
.nx-header .nx-logo img { background: none; padding: 0; border-radius: 12px; }
/* La portada aparece de una vez cuando la foto definitiva terminó de cargar */
.nx-hx-frame img, .nx-hx-frame::before, .nx-hx-body { opacity: 0; transition: opacity .35s ease; }
.nx-hx-frame.nx-on img, .nx-hx-frame.nx-on::before, .nx-hx-frame.nx-on .nx-hx-body { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nx-hx-frame img, .nx-hx-frame::before, .nx-hx-body { transition: none; } }
/* Mientras la página carga no hay transiciones: nada se anima ni parpadea al recargar */
html.nx-preload *, html.nx-preload *::before, html.nx-preload *::after { transition: none !important; }

/* ---------- Carrito: "Tu pedido" en blanco sobre el azul ---------- */
.nx .rv-cart-title { color: #fff; }

/* ---------- Tarjetas "Elige tu catálogo": aparecen con su foto real, sin la imagen azul previa ---------- */
.nx-cat { background: var(--sky-2); }
.nx-cat img { opacity: 0; transition: opacity .35s ease, transform .6s ease; }
.nx-cat::before, .nx-cat-body { opacity: 0; transition: opacity .35s ease; }
.nx-cat.nx-on img, .nx-cat.nx-on::before, .nx-cat.nx-on .nx-cat-body { opacity: 1; }

/* Carrito vacío: los enlaces van en blanco sobre el azul */
.nx .rv-empty-links a, .nx .rv-empty-links a:hover, .nx .rv-empty-links a:focus-visible { color: #fff; }

/* Estados de error del catálogo y de la ficha */
.nx-empty--error { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink, #1b2a44); }
.nx-empty--error > i { font-size: 28px; color: var(--navy); }
.nx-empty--error p { margin: 0; max-width: 42ch; }
.nx-pd-estado { margin-top: 16px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--sky-2); }
.nx-pd-estado p { margin: 0 0 12px; color: var(--muted); }
.nx-pd-estado-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-pd-estado [hidden] { display: none; }

/* Transición entre páginas (navegadores con View Transitions entre documentos).
   La cabecera queda fija y solo el contenido hace un fundido corto con un leve desplazamiento. */
@view-transition { navigation: auto; }
.nx-header { view-transition-name: nx-cabecera; }
::view-transition-old(root) { animation: nxSalida .16s ease-in both; }
::view-transition-new(root) { animation: nxEntrada .26s cubic-bezier(.2, .7, .2, 1) both; }
::view-transition-group(nx-cabecera) { animation: none; }
@keyframes nxSalida { to { opacity: 0; } }
@keyframes nxEntrada { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Seguimiento del pedido */
.seg { max-width: 640px; padding-top: 32px; padding-bottom: 88px; }
.seg-caja { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.seg-caja h2 { font-size: 24px; color: var(--ink); font-weight: 800; }
.seg-caja h2 + p { margin-top: 6px; color: var(--text); }
.seg-pasos { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; list-style: none; padding: 0; }
.seg-pasos li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; }
.seg-pasos span { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.seg-pasos li + li::before { content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.seg-pasos li.hecho { color: var(--ink); }
.seg-pasos li.hecho span { background: var(--navy); border-color: var(--navy); }
.seg-pasos li.hecho + li.hecho::before { background: var(--navy); }
.seg-datos { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.seg-datos dt { font-size: 13px; color: var(--muted); }
.seg-datos dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.seg-wa { margin-top: 20px; }
