/* ---------- Tokens ---------- */
:root {
    /* Fijos: SIEMPRE oscuros, sin importar el tema (topbar y card de compra) */
    --fixed-950: #0c1f30;
    --fixed-900: #10283d;
    --fixed-800: #17334c;
    --fixed-700: #234465;
    --fixed-text: #f4efe4;
    --fixed-text-muted: #a9bccb;

    --amber-500: #f2a93c;
    --amber-600: #d98e22;
    --green-ok: #6fbf8b;
    --radius: 10px;

    /* Tema: CLARO por defecto */
    --bg: #ffffff;
    --surface: #f4f5f7;
    --surface-border: #e2e5ea;
    --ink: #16202b;
    --ink-muted: #5b6672;

    font-size: 16px;
}

:root[data-theme="dark"] {
    --bg: var(--fixed-950);
    --surface: var(--fixed-800);
    --surface-border: var(--fixed-700);
    --ink: var(--fixed-text);
    --ink-muted: var(--fixed-text-muted);
}

* { box-sizing: border-box; }

/* El atributo HTML "hidden" tiene que ganarle siempre a cualquier "display"
   que le pongamos a ese mismo elemento por clase (ej: display:flex en un
   panel que a veces ocultamos con .hidden = true desde JS). Sin esto, un
   elemento puede quedar "hidden" en el HTML pero seguir viéndose en pantalla. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.5;
    transition: background-color 0.15s ease, color 0.15s ease;
    overflow-x: hidden;
}

h1, h2, .hero-card-precio, .logo, .footer-logo {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

section { padding: 4rem 6vw; }

.estado-vacio { color: var(--ink-muted); font-style: italic; }

/* ---------- Header (siempre oscuro, no sigue el tema) ---------- */
.site-header {
    --ink: var(--fixed-text);
    --ink-muted: var(--fixed-text-muted);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 6vw;
    border-bottom: 1px solid var(--fixed-700);
    position: sticky;
    top: 0;
    background: rgba(12, 31, 48, 0.92);
    backdrop-filter: blur(6px);
    color: var(--ink);
    z-index: 10;
}

.logo { font-size: 1.4rem; font-weight: 600; flex-shrink: 0; }
.logo span { color: var(--amber-500); }

.buscador-header { width: 100%; max-width: 460px; min-width: 0; margin: 0 auto; display: flex; }
.buscador-header input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--fixed-700);
    border-right: none;
    border-radius: 20px 0 0 20px;
    padding: 0.55rem 1rem;
    color: var(--fixed-text);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}
.buscador-header input::placeholder { color: var(--fixed-text-muted); }
.buscador-header button {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--fixed-700);
    border-left: none;
    border-radius: 0 20px 20px 0;
    padding: 0.55rem 0.9rem;
    color: var(--fixed-text);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-derecha { display: flex; align-items: center; gap: 2.5rem; justify-self: end; }

.nav { display: flex; gap: 2rem; flex-shrink: 0; }
.nav a { color: var(--ink-muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }

.btn-tema {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--fixed-700);
    color: var(--fixed-text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}
.btn-tema:hover { background: rgba(255,255,255,0.08); }
.btn-tema svg { width: 18px; height: 18px; }
.btn-tema .icon-sol { display: none; }
.btn-tema .icon-luna { display: block; }
:root[data-theme="dark"] .btn-tema .icon-sol { display: block; }
:root[data-theme="dark"] .btn-tema .icon-luna { display: none; }

/* ---------- Ícono de carrito (header) ---------- */
.btn-carrito {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--fixed-700);
    color: var(--fixed-text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
}
.btn-carrito:hover { background: rgba(255,255,255,0.08); }
.carrito-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--amber-500);
    color: var(--fixed-950);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* ---------- Selector de cantidad "- N +" ---------- */
.selector-cantidad {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
}
.selector-cantidad button {
    background: var(--surface);
    border: none;
    color: var(--ink);
    width: 38px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.selector-cantidad button:hover { background: var(--surface-border); }
.selector-cantidad input {
    width: 46px;
    border: none;
    border-left: 1px solid var(--surface-border);
    border-right: 1px solid var(--surface-border);
    background: var(--bg);
    color: var(--ink);
    text-align: center;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}
.ficha-cta .label-cantidad { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink-muted); margin: 0 0 0.4rem; }
.ficha-cta .selector-cantidad { border-color: var(--fixed-700); }

.fila-cantidad { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.btn-agregar-carrito {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid var(--fixed-700);
    background: var(--fixed-950);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-agregar-carrito:hover { background: var(--amber-500); border-color: var(--amber-500); color: var(--fixed-950); }
.btn-agregar-carrito.agregado { background: var(--green-ok); border-color: var(--green-ok); color: var(--fixed-950); }
.ficha-cta .selector-cantidad button { background: var(--fixed-950); color: var(--ink); }
.ficha-cta .selector-cantidad button:hover { background: var(--fixed-700); }
.ficha-cta .selector-cantidad input {
    background: var(--fixed-950);
    border-color: var(--fixed-700);
    color: var(--ink);
}
.ficha-precio span { margin-right: 0.5rem; }
.ficha-precio span:last-child { margin-right: 0; }

/* ---------- Página del carrito ---------- */
.carrito-pagina { padding-top: 3rem; }
.carrito-pagina h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }

.carrito-vacio {
    text-align: center;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.carrito-lista { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.carrito-item {
    display: grid;
    grid-template-columns: 72px 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
}
.carrito-item-img {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}
.carrito-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carrito-item-info { min-width: 0; }
.carrito-item-nombre { display: block; font-weight: 600; color: var(--ink); text-decoration: none; margin-bottom: 0.25rem; }
.carrito-item-nombre:hover { color: var(--amber-500); }
.carrito-item-precio { color: var(--ink-muted); font-size: 0.85rem; margin: 0; }
.carrito-item-subtotal { font-weight: 700; white-space: nowrap; }
.carrito-item-quitar {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--ink-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.carrito-item-quitar:hover { border-color: #e07a6b; color: #e07a6b; }

.carrito-resumen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem 1.5rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 1.5rem;
}
.carrito-total-linea { display: flex; align-items: baseline; gap: 0.6rem; margin-right: auto; }
.carrito-total-linea span { color: var(--ink-muted); }
.carrito-total-linea strong { font-size: 1.5rem; color: var(--amber-500); }
.carrito-resumen .btn-ficha { width: auto; margin-bottom: 0; padding: 0.8rem 1.75rem; }

@media (max-width: 700px) {
    .carrito-item {
        grid-template-columns: 56px 1fr auto;
        grid-template-areas:
            "img info quitar"
            "img cantidad subtotal";
        row-gap: 0.6rem;
    }
    .carrito-item-img { grid-area: img; width: 56px; height: 56px; align-self: start; }
    .carrito-item-info { grid-area: info; }
    .carrito-item-quitar { grid-area: quitar; }
    .selector-cantidad { grid-area: cantidad; }
    .carrito-item-subtotal { grid-area: subtotal; justify-self: end; align-self: center; }
    .carrito-resumen { justify-content: center; }
    .carrito-total-linea { margin-right: 0; width: 100%; justify-content: center; }
}

.btn-whatsapp-mini {
    background: var(--amber-500);
    color: var(--fixed-950);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
}
.btn-whatsapp-mini:hover { background: var(--amber-600); }

/* ---------- Hero: banner de ancho completo con el texto superpuesto ---------- */
.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero-texto {
    --ink: var(--fixed-text);
    --ink-muted: var(--fixed-text-muted);
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 6vw 0 calc(6vw + 2.5rem);
    color: var(--ink);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(12,31,48,0.72) 0%, rgba(12,31,48,0.42) 45%, rgba(12,31,48,0) 78%);
}
.hero-texto-contenido { max-width: 30rem; }

.hero-kicker {
    color: var(--amber-500);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.hero h1 {
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    line-height: 1.12;
    font-weight: 600;
    margin: 0 0 1.1rem;
}

.hero-sub {
    color: var(--ink-muted);
    font-size: 1.02rem;
}

.hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: var(--surface);
    overflow: hidden;
}

.hero-banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.hero-banner-slide { flex: 0 0 100%; min-width: 0; }
.hero-banner-slide a { display: block; height: 100%; }

.hero-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-banner-vacio {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    margin: 0;
}

.hero-banner-flecha {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: var(--fixed-950);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.hero-banner-flecha:hover { background: #fff; }
.hero-banner-prev { left: 0.75rem; }
.hero-banner-next { right: 0.75rem; }

.hero-banner-dots {
    position: absolute;
    right: 1.1rem;
    bottom: 0.85rem;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}
.hero-banner-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
}
.hero-banner-dots button.activo { background: var(--amber-500); }

/* ---------- Categorías ---------- */
.categorias h2, .nuevos h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
}

.grid-categorias {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.cat-card {
    flex: 0 0 96px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    text-decoration: none;
}
.cat-card-img {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
.cat-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cat-card-img-vacio {
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink-muted);
}
.cat-card-nombre { font-weight: 500; font-size: 0.85rem; line-height: 1.25; color: var(--ink); }
.cat-card:hover .cat-card-img { transform: translateY(-3px); }

/* ---------- Productos ---------- */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.prod-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.prod-card:hover { border-color: var(--amber-500); }

.prod-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.prod-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.prod-card-nombre { font-weight: 500; margin: 0 0 0.5rem; flex: 1; }
.prod-card-precio { font-size: 1.3rem; font-weight: 700; color: var(--amber-500); margin: 0; }
.prod-card-cuota { color: var(--ink-muted); font-size: 0.85rem; margin: 0.2rem 0 0.75rem; }

.prod-card-btn {
    display: block;
    text-align: center;
    background: var(--surface-border);
    padding: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.prod-card-btn:hover { background: var(--amber-500); color: var(--fixed-950); }

/* ---------- Ficha de producto (3 columnas estilo ML) ---------- */
.ficha-producto {
    display: grid;
    grid-template-columns: 380px 1fr 380px;
    gap: 2.5rem;
    padding-top: 2.5rem;
    align-items: start;
}

.ficha-imagen {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 5.5rem;
}
.ficha-imagen img { width: 100%; height: 380px; object-fit: cover; display: block; }

.ficha-info h1 { font-size: 1.5rem; margin: 0 0 0.75rem; line-height: 1.3; }

.ficha-descripcion {
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    white-space: pre-line;
}

/* La card de compra SIEMPRE es oscura, no sigue el tema */
.ficha-cta {
    --ink: var(--fixed-text);
    --ink-muted: var(--fixed-text-muted);
    background: var(--fixed-800);
    border: 1px solid var(--fixed-700);
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 5.5rem;
    color: var(--ink);
}
.ficha-cta .ficha-precio { margin: 0 0 1.25rem; }
.btn-ficha { padding: 0.8rem 1.5rem; font-size: 1rem; border: none; cursor: pointer; }
.ficha-cta .btn-ficha { display: block; width: 100%; text-align: center; margin-bottom: 0.75rem; box-sizing: border-box; }
.btn-secundario-ficha { background: var(--fixed-700); color: var(--ink); }
.btn-secundario-ficha:hover { background: var(--fixed-950); }
.ficha-envio { color: var(--ink-muted); font-size: 0.85rem; margin-top: 1rem; }
.ficha-stock { color: var(--ink-muted); font-size: 0.8rem; margin-top: 0.35rem; font-style: italic; }

@media (max-width: 1000px) {
    .ficha-producto { grid-template-columns: 1fr 1fr; }
    .ficha-cta { grid-column: 1 / -1; position: static; }
    .ficha-imagen { position: static; }
}
@media (max-width: 700px) {
    .ficha-producto { grid-template-columns: 1fr; }
    .ficha-imagen { position: static; }
    .ficha-cta { padding: 1.1rem; }
    .detalle-simulacion { padding: 0.25rem 0.85rem; }
}

/* ---------- Relacionados ---------- */
.relacionados { padding-top: 1rem; }
.relacionados h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.relacionados .grid-productos {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.relacionados .grid-productos .prod-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

.ficha-precio {
    font-size: 2rem;
    font-weight: 700;
    color: var(--amber-500);
    margin: 0 0 1.5rem;
}
.ficha-precio span { font-size: 1rem; color: var(--ink-muted); font-weight: 500; font-family: 'Inter', sans-serif; }

/* ---------- Simulador de cuotas (vive dentro de .ficha-cta, hereda sus colores fijos) ---------- */
.simulador-cuotas {
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid var(--fixed-700);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}
.simulador-cuotas h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.simulador-texto { color: var(--ink-muted); margin: 0 0 1.25rem; font-size: 0.85rem; }

.simulador-cuotas label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 0.4rem;
}
.simulador-cuotas input {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius);
    border: 1px solid var(--fixed-700);
    background: var(--fixed-950);
    color: var(--ink);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}
.simulador-nota { color: var(--ink-muted); font-size: 0.8rem; margin: 0.4rem 0 1.5rem; }

.grupo-plazos { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; margin-bottom: 1.5rem; }
.grupo-plazos button {
    background: var(--fixed-950);
    border: 1px solid var(--fixed-700);
    color: var(--ink-muted);
    padding: 0.55rem 0.3rem;
    text-align: center;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.grupo-plazos button.activo { background: var(--amber-500); border-color: var(--amber-500); color: var(--fixed-950); }

.detalle-simulacion {
    width: 100%;
    box-sizing: border-box;
    background: var(--fixed-950);
    border: 1px solid var(--fixed-700);
    border-radius: var(--radius);
    padding: 0.25rem 1rem;
    margin-bottom: 1.5rem;
}
.detalle-fila {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.4rem 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--fixed-700);
    font-size: 0.88rem;
}
.detalle-fila:last-child { border-bottom: none; }
.detalle-fila span { color: var(--ink-muted); }
.detalle-fila strong { white-space: nowrap; }
.detalle-fila-cuota strong { color: var(--amber-500); font-size: 1.15rem; }

.tabla-cuotas {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.tabla-cuotas th, .tabla-cuotas td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--surface-border);
}
.tabla-cuotas th { color: var(--ink-muted); font-weight: 500; font-size: 0.85rem; }

/* ---------- Filtros y orden del catálogo ---------- */
.filtros-wrap { margin-bottom: 1.5rem; }

.filtros-top { display: flex; align-items: center; gap: 1rem; }

.btn-filtrar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--ink);
    padding: 0.55rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}
.btn-filtrar:hover, .btn-filtrar.activo { border-color: var(--amber-500); }
.btn-filtrar.activo { color: var(--amber-500); }

.filtros-barra {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--surface-border);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
}
.filtro-campo { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.filtro-campo label { font-size: 0.75rem; font-weight: 600; color: var(--ink-muted); }
.filtro-campo select,
.filtro-campo input {
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--surface-border);
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    min-width: 0;
}
.filtro-campo input { width: 140px; }
.btn-limpiar {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--ink-muted);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-limpiar:hover { border-color: var(--amber-500); color: var(--ink); }
.filtros-top .filtros-contador { margin-left: auto; color: var(--ink-muted); font-size: 0.85rem; }

@media (max-width: 700px) {
    .filtro-campo { flex: 1 1 calc(50% - 0.5rem); }
    .filtro-campo select, .filtro-campo input { width: 100%; }
}

/* ---------- Lightbox de imagen ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 100;
    cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 6vw;
    border-top: 1px solid var(--surface-border);
    color: var(--ink-muted);
    font-size: 0.9rem;
}
.footer-logo { font-size: 1.2rem; margin: 0 0 0.5rem; color: var(--ink); }
.footer-logo span { color: var(--amber-500); }
.footer-title { color: var(--ink); font-weight: 600; margin: 0 0 0.5rem; }
.footer-col p { margin: 0.3rem 0; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-flotante {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--green-ok);
    color: var(--fixed-950);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    .hero-banner { aspect-ratio: 4 / 3; }
    .hero-texto {
        padding: 0 5vw;
        background: linear-gradient(90deg, rgba(12,31,48,0.75) 0%, rgba(12,31,48,0.55) 65%, rgba(12,31,48,0.20) 100%);
    }
    .hero-texto-contenido { max-width: 20rem; }
    .nav { display: none; }
    .buscador-header { max-width: none; }
    .site-footer { grid-template-columns: 1fr; }
    .grid-productos { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ---------- Otras formas de pagar (GoCuotas / tarjeta de crédito), dentro del simulador ---------- */
.pagos-alternativos {
    border-top: 1px solid var(--fixed-700);
    margin-top: 0.75rem;
    padding-top: 1.25rem;
}
.pagos-alternativos h3 { font-size: 1rem; margin: 0 0 0.85rem; }
.pagos-alternativos .detalle-simulacion { margin-bottom: 0.75rem; }
.ficha-cta .btn-gocuotas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #fff;
    color: var(--fixed-950);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.5rem;
}
.ficha-cta .btn-gocuotas:hover { background: #f1f1f1; }
.btn-gocuotas img { height: 22px; width: auto; display: block; }
