/* =====================================================================
 * site.css — Gorilla Store
 * Tema OSCURO sobrio-tech, alineado con gorillasetups.
 * Paleta indigo/violeta + cyan/magenta. Mobile-first. Vanilla CSS.
 *
 * Tipografía:
 *   - Títulos / pills / precios: 'Space Grotesk' (500/600/700/800)
 *   - Datos numéricos / series:  'JetBrains Mono' (400/500)
 *   - Cuerpo / leads / specs:    'Inter' (400/500/600/700)
 *   (Cargadas en header.php con display=swap.)
 *
 * Estructura: variables -> reset -> layout -> topbar -> header -> nav
 *   -> botones -> formularios -> badges -> grid/cards -> home (hero, promo,
 *      categorías) -> tienda -> producto -> carrito -> checkout -> pago
 *   -> auth -> cuenta -> flash -> footer -> utilidades -> breakpoints.
 *
 * Compatibilidad: se conservan TODAS las clases del contrato que usa el
 * markup PHP y site.js (.cart-count, .menu-toggle, .mobile-nav, .add-to-cart,
 * .product-card*, .badge*, etc.).
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 1. Variables de tema (namespace --gs-* + alias cortos)
 * ------------------------------------------------------------------- */
:root {
    /* Fondos / superficies */
    --gs-bg:          #0a0e13;
    --gs-bg-deep:     #040308;
    --gs-surface:     #121821;
    --gs-surface-2:   #1a2230;
    --gs-surface-3:   #222b3b;

    /* Bordes (ring blanco a baja alpha — el lenguaje es inset-ring, no border sólido) */
    --gs-border:      rgba(255, 255, 255, 0.06);
    --gs-border-2:    rgba(255, 255, 255, 0.10);
    --gs-border-3:    rgba(255, 255, 255, 0.14);

    /* Texto */
    --gs-text:        #ffffff;
    --gs-text-soft:   #cbd5e1;
    --gs-text-muted:  #b8c1cf;
    --gs-text-dim:    #94a3b8;

    /* Acentos */
    --gs-accent:      #4e63ee;   /* indigo / azul-violeta primario */
    --gs-accent-2:    #5b6efc;   /* hover */
    --gs-accent-3:    #6d7dfa;   /* CTA degradado */
    --gs-violet:      #a855f7;
    --gs-cyan:        #22d3ee;
    --gs-magenta:     #ec4899;

    /* Estados */
    --gs-ok:          #22c55e;
    --gs-warn:        #f59e0b;
    --gs-danger:      #ef4444;
    --gs-whatsapp:    #25d366;

    /* Gradientes firma */
    --gs-accent-grad:  linear-gradient(135deg, #5b6efc 0%, #a855f7 60%, #ec4899 100%);
    --gs-grad-short:   linear-gradient(135deg, #a855f7, #22d3ee);
    --gs-grad-cta:     linear-gradient(135deg, #4e63ee 0%, #6d7dfa 100%);
    --gs-grad-line:    linear-gradient(135deg, #5b6efc, #a855f7);
    --gs-grad-amber:   linear-gradient(135deg, #fbbf24, #f59e0b);
    --gs-grad-ok:      linear-gradient(135deg, #22c55e, #16a34a);
    --gs-grad-topbar:  linear-gradient(90deg, #4e63ee 0%, #22d3ee 100%);
    --gs-grad-mp:      linear-gradient(110deg, #00b1ea 0%, #0091c2 45%, #1a4a8a 100%);
    --gs-grad-card:    linear-gradient(180deg, #121821 0%, #0a0e13 100%);
    --gs-grad-herocard: linear-gradient(180deg, rgba(26, 34, 48, .95), rgba(18, 24, 33, .95));

    /* Glows / sombras */
    --gs-glow:        rgba(78, 99, 238, 0.35);
    --gs-glow-soft:   rgba(78, 99, 238, 0.15);
    --accent-glow:    0 0 32px rgba(78, 99, 238, 0.35);
    --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.40);
    --shadow-md:      0 12px 36px rgba(0, 0, 0, 0.45);
    --shadow-lg:      0 20px 60px rgba(0, 0, 0, 0.40);

    /* Radios */
    --gs-radius:        14px;
    --gs-radius-lg:     22px;
    --gs-input-radius:  10px;
    --gs-radius-sm:     8px;
    --gs-radius-pill:   999px;

    /* Layout */
    --container: 1280px;
    --gap:       1rem;
    --header-h:  66px;

    /* Tipografía */
    --font-body:  "Inter", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
    --font-head:  "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Transiciones */
    --t-fast: 130ms ease;
    --t:      220ms cubic-bezier(.4, 0, .2, 1);

    /* Alias cortos (compat) */
    --bg:         var(--gs-bg);
    --surface:    var(--gs-surface);
    --surface-2:  var(--gs-surface-2);
    --surface-3:  var(--gs-surface-3);
    --border:     var(--gs-border-2);
    --border-soft:var(--gs-border);
    --text:       var(--gs-text);
    --text-muted: var(--gs-text-muted);
    --text-dim:   var(--gs-text-dim);
    --accent:     var(--gs-accent);
    --radius:     var(--gs-radius);
    --radius-sm:  var(--gs-radius-sm);
    --radius-lg:  var(--gs-radius-lg);
    --radius-pill:var(--gs-radius-pill);
    --danger:     var(--gs-danger);
    --warning:    var(--gs-warn);
    --font:       var(--font-body);
}

/* ---------------------------------------------------------------------
 * 2. Reset / base
 * ------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    color-scheme: dark;
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--gs-bg);
    color: var(--gs-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-image:
        radial-gradient(900px 520px at 80% -8%, rgba(78, 99, 238, 0.08), transparent 60%),
        radial-gradient(800px 600px at 5% 10%, rgba(168, 85, 247, 0.05), transparent 55%);
    background-attachment: fixed;
    overflow-x: clip;
}

img,
picture,
svg,
video { display: block; max-width: 100%; height: auto; }

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: var(--gs-accent-2); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gs-violet); }

h1, h2, h3, h4, h5 {
    line-height: 1.15;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.01em;
}

ul, ol { list-style: none; padding: 0; }

:focus-visible {
    outline: 2px solid var(--gs-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

::selection { background: var(--gs-accent); color: #fff; }

main { flex: 1 0 auto; }

[hidden] { display: none !important; }

/* Scrollbar */
* { scrollbar-color: var(--gs-surface-3) transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--gs-surface-3); border-radius: var(--gs-radius-pill); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------------
 * 3. Layout base
 * ------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2.25rem);
}

main.container { padding-block: clamp(1.25rem, 4vw, 2.5rem); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
 * 4. TOPBAR fina (barra de anuncio gradiente acento -> cyan)
 * ------------------------------------------------------------------- */
.topbar,
.topbar-cyber {
    background: var(--gs-grad-topbar);
    color: #0a0e13;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 38px;
    padding: 9px 16px;
    text-align: center;
    font-family: var(--font-head);
    font-size: 0.81rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.topbar__inner a { color: #0a0e13; text-decoration: underline; text-underline-offset: 2px; }
.topbar__inner a:hover { color: #0a0e13; opacity: 0.78; }
.topbar__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(10, 14, 19, 0.55);
    flex: 0 0 auto;
}
.topbar__sep { opacity: 0.55; }

/* ---------------------------------------------------------------------
 * 5. Header sticky
 * ------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 19, 0.82);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--gs-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1.1rem);
    min-height: var(--header-h);
    padding-block: 0.55rem;
}

/* Brand / logo */
.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.brand__logo {
    height: 38px;
    width: auto;
    transition: filter var(--t), transform var(--t-fast);
}
.brand:hover .brand__logo { filter: drop-shadow(0 0 12px var(--gs-glow)); }

/* Categorías (desktop) */
.nav-cats { display: none; min-width: 0; flex: 1 1 auto; }
.nav-cats__list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-cats__list::-webkit-scrollbar { display: none; }
.nav-cats__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: var(--gs-radius-pill);
    color: var(--gs-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--t-fast), color var(--t-fast);
}
.nav-cats__link:hover {
    background: var(--gs-surface-2);
    color: var(--gs-text);
}
.nav-cats__count {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--gs-text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.05rem 0.4rem;
    border-radius: var(--gs-radius-pill);
    line-height: 1.6;
}
.nav-cats__link:hover .nav-cats__count { color: var(--gs-accent-2); }

/* Buscador (desktop) */
.search {
    position: relative;
    display: none;
    align-items: center;
    flex: 1 1 260px;
    min-width: 0;
    max-width: 400px;
}
.search__label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}
.search__input {
    width: 100%;
    padding: 0.55rem 2.6rem 0.55rem 0.95rem;
    background: var(--gs-surface);
    border: 1px solid var(--gs-border-2);
    border-radius: var(--gs-radius-pill);
    color: var(--gs-text);
    font-size: 0.88rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search__input::placeholder { color: var(--gs-text-dim); }
.search__input:focus {
    outline: none;
    border-color: var(--gs-accent);
    box-shadow: 0 0 0 3px var(--gs-glow-soft);
}
.search__btn {
    position: absolute;
    right: 4px;
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--gs-text-muted);
    font-size: 1.1rem;
    transition: color var(--t-fast), background var(--t-fast);
}
.search__btn:hover { color: var(--gs-accent-2); background: var(--gs-surface-2); }

/* Acciones (cuenta + carrito) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 auto;
    margin-left: auto;
}
.account-link,
.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.5rem 0.7rem;
    border-radius: var(--gs-radius-sm);
    color: var(--gs-text);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background var(--t-fast), color var(--t-fast);
}
.account-link:hover,
.cart-link:hover { background: var(--gs-surface-2); color: var(--gs-text); }
.account-link__icon,
.cart-link__icon { font-size: 1.05rem; line-height: 1; }
.account-link__text,
.cart-link__text { display: none; }

.cart-link {
    position: relative;
    background: rgba(78, 99, 238, 0.10);
    border: 1px solid rgba(78, 99, 238, 0.28);
}
.cart-link:hover { background: rgba(78, 99, 238, 0.18); }
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    background: var(--gs-grad-line);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
    border-radius: var(--gs-radius-pill);
    box-shadow: 0 0 0 2px var(--gs-bg);
}

/* Botón hamburguesa */
.menu-toggle {
    display: inline-grid;
    place-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0;
    background: var(--gs-surface);
    border: 1px solid var(--gs-border-2);
    border-radius: var(--gs-radius-sm);
    flex: 0 0 auto;
}
.menu-toggle__bar {
    display: block;
    width: 20px; height: 2px;
    background: var(--gs-text);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.mobile-nav {
    border-top: 1px solid var(--gs-border);
    background: var(--gs-surface);
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.25rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    animation: slideDown var(--t);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.search--mobile { display: flex; max-width: none; margin-bottom: 0.9rem; }
.mobile-nav__list { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.6rem;
    border-radius: var(--gs-radius-sm);
    color: var(--gs-text);
    font-weight: 500;
    border-bottom: 1px solid var(--gs-border);
}
.mobile-nav__link:hover { background: var(--gs-surface-2); color: var(--gs-accent-2); }
.mobile-nav__count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gs-text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.45rem;
    border-radius: var(--gs-radius-pill);
}

/* ---------------------------------------------------------------------
 * 6. Botones
 * ------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--gs-input-radius);
    background: var(--gs-surface-2);
    color: var(--gs-text);
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast),
                color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
    -webkit-user-select: none;
    user-select: none;
}
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn--primary {
    position: relative;
    background: var(--gs-grad-cta);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px -6px var(--gs-glow);
    overflow: hidden;
}
.btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transition: transform 0.6s ease;
}
.btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--gs-border-3);
    color: var(--gs-text);
}
.btn--ghost:hover {
    background: rgba(78, 99, 238, 0.1);
    border-color: var(--gs-accent);
    color: var(--gs-text);
}

.btn--accent2 {
    background: var(--gs-accent-grad);
    color: #fff;
    box-shadow: 0 6px 16px -6px var(--gs-glow);
}
/* Feedback breve tras agregar al carrito (lo aplica site.js) */
.is-added { animation: addedPulse 0.65s ease; }
@keyframes addedPulse {
    0%   { box-shadow: 0 0 0 0 var(--gs-glow); }
    40%  { box-shadow: 0 0 0 9px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------------------------------------------------------------------
 * 7. Formularios (genéricos)
 * ------------------------------------------------------------------- */
label { font-weight: 500; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.68rem 0.9rem;
    background: var(--gs-surface);
    border: 1px solid var(--gs-border-2);
    border-radius: var(--gs-input-radius);
    color: var(--gs-text);
    font-size: 0.94rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input::placeholder,
textarea::placeholder { color: var(--gs-text-dim); }
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gs-accent);
    box-shadow: 0 0 0 3px var(--gs-glow-soft);
}
select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gs-text-muted) 50%),
        linear-gradient(135deg, var(--gs-text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) center, calc(100% - 13px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field--grow { grid-column: 1 / -1; }
.form-field__label { font-size: 0.84rem; color: var(--gs-text-muted); font-weight: 600; }
.form-field__error { font-size: 0.8rem; color: var(--gs-danger); }
.form-field__input:invalid:not(:placeholder-shown) { border-color: var(--gs-danger); }

/* ---------------------------------------------------------------------
 * 8. Badges / pills / sellos
 * ------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.4;
    white-space: nowrap;
    text-transform: uppercase;
}
.badge--oferta {
    background: var(--gs-grad-amber);
    color: #1a1206;
    box-shadow: 0 3px 10px -3px rgba(245, 158, 11, 0.5);
}
.badge--agotado {
    background: rgba(239, 68, 68, 0.16);
    color: #fda4a4;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.badge--stock {
    background: var(--gs-grad-ok);
    color: #04230f;
}
.badge--linea,
.badge--gama {
    background: var(--gs-grad-line);
    color: #fff;
}

/* Sello de descuento redondo (compat .gs-sello) */
.gs-sello,
.gs-badge { /* utilitarias hermanas — mantienen apariencia coherente */ }

/* ---------------------------------------------------------------------
 * 9. Grid de productos + tarjeta (.product-card / .hm-pc-card)
 * ------------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: clamp(0.7rem, 2vw, 1.15rem);
}

.product-card {
    position: relative;
    background: var(--gs-grad-card);
    border: 0;
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: 16px;
    padding: 9px;
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}
.product-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}
.product-card__link:hover { color: inherit; }

.product-card__img,
.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #141a24, #0a0e13);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}
.product-card__img img,
.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t), filter var(--t);
}
.product-card__img .badge,
.product-card__media .badge {
    position: absolute;
    top: 0.55rem;
    z-index: 2;
}
.product-card__img .badge--oferta,
.product-card__media .badge--oferta { left: 0.55rem; }
.product-card__img .badge--agotado,
.product-card__media .badge--agotado,
.product-card__img .badge--stock,
.product-card__media .badge--stock { right: 0.55rem; }

.product-card__brand {
    display: block;
    padding: 0.1rem 0.3rem 0;
    font-family: var(--font-head);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gs-text-dim);
}
.product-card__title {
    padding: 0.25rem 0.3rem 0;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--gs-text-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--t-fast);
}
.product-card:hover .product-card__title { color: #fff; }
.product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin-top: auto;
    padding: 0.6rem 0.3rem 0.35rem;
}
.price--now {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}
.price--old {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--gs-text-dim);
    text-decoration: line-through;
}

/* ---------------------------------------------------------------------
 * 10. Home — TOPBAR ya cubierta arriba; aquí: promo, hero, secciones
 * ------------------------------------------------------------------- */

/* ---- Banner promo 12 cuotas (.hm-promo-banner) ---- */
.hm-promo-banner {
    position: relative;
    overflow: hidden;
    background: var(--gs-grad-mp);
    isolation: isolate;
}
.hm-promo-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(420px 220px at 12% 120%, rgba(168, 85, 247, 0.35), transparent 60%),
        radial-gradient(420px 220px at 92% -20%, rgba(34, 211, 238, 0.35), transparent 60%);
}
.hm-promo-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.06) 0,
        rgba(255, 255, 255, 0.06) 2px,
        transparent 2px,
        transparent 22px
    );
    background-size: 200% 100%;
    animation: promoStripes 14s linear infinite;
    opacity: 0.5;
}
@keyframes promoStripes {
    from { background-position: 0 0; }
    to   { background-position: 200% 0; }
}
.hm-promo-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0.85rem;
    padding-block: 0.95rem;
    text-align: center;
}
.hm-promo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-self: center;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    border-radius: 99px;
    font-family: var(--font-head);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}
.hm-promo-pill__spark { font-size: 0.85rem; line-height: 1; }
.hm-promo-msg { color: #fff; }
.hm-promo-msg .big {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.05rem, 3.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.15;
}
.hm-promo-msg .big em {
    font-style: normal;
    color: #d8f6ff;
    text-shadow: 0 1px 10px rgba(34, 211, 238, 0.4);
}
.hm-promo-msg .sub {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}
.hm-promo-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}
.hm-promo-actions__pay {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}
.hm-promo-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.15rem;
    background: #fff;
    color: #0091c2;
    border-radius: 10px;
    font-family: var(--font-head);
    font-size: 0.81rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.hm-promo-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-130%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(0, 145, 194, 0.18), transparent);
    transition: transform 0.6s ease;
}
.hm-promo-cta:hover {
    color: #0091c2;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
}
.hm-promo-cta:hover::before { transform: translateX(130%) skewX(-18deg); }
.hm-promo-cta__arrow { transition: transform var(--t-fast); }
.hm-promo-cta:hover .hm-promo-cta__arrow { transform: translateX(3px); }

/* Full-bleed: rompe el ancho/padding del <main class="container"> en la home,
 * para que hero y banner promo ocupen el ancho completo de la ventana. */
.hm-hero,
.hm-promo-banner {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ---- HERO split ---- */
.hm-hero {
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * clamp(1.25rem, 4vw, 2.5rem)); /* cancela el padding-top de main.container */
    border-bottom: 1px solid var(--gs-border);
    background:
        radial-gradient(ellipse at 75% 25%, rgba(78, 99, 238, 0.12), transparent 55%),
        radial-gradient(ellipse at 15% 75%, rgba(78, 99, 238, 0.06), transparent 50%),
        var(--gs-bg);
}
.hm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
    pointer-events: none;
}
.hm-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: center;
    padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2.75rem, 6vw, 4.5rem);
}

/* Columna izquierda */
.hm-hero-text { max-width: 640px; }
.hm-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(78, 99, 238, 0.15);
    border: 1px solid rgba(78, 99, 238, 0.3);
    border-radius: var(--gs-radius-pill);
    color: var(--gs-accent-2);
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.hm-hero-pill__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gs-accent-2);
    box-shadow: 0 0 0 0 rgba(78, 99, 238, 0.6);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(78, 99, 238, 0.6); }
    70%  { box-shadow: 0 0 0 7px rgba(78, 99, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(78, 99, 238, 0); }
}
.hm-hero-title {
    margin-top: 1.1rem;
    font-family: var(--font-head);
    font-size: clamp(2.1rem, 6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
}
.hm-hero-title span {
    background: linear-gradient(120deg, #5b6efc, #a855f7 55%, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hm-hero-lead {
    margin-top: 1.1rem;
    max-width: 52ch;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--gs-text-muted);
    line-height: 1.6;
}
.hm-hero-lead b { color: #fff; font-weight: 600; }
.hm-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.65rem;
}
.hm-cta-row .btn { padding-inline: 1.4rem; }
.hm-hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 2rem;
}
.hm-hero-trust__label {
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gs-text-dim);
}
.hm-hero-trust__logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
}
.hm-hero-trust__logo {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--gs-text-muted);
    padding: 0.25rem 0.6rem;
    border-radius: var(--gs-radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gs-border);
}

/* Columna derecha — showcase + tarjeta destacada */
.hm-hero-showcase {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
}
.hm-hero-showcase-glow {
    position: absolute;
    inset: -10% -6% -10% -6%;
    z-index: 0;
    background: radial-gradient(ellipse at center, rgba(78, 99, 238, 0.28), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}
.hm-hero-card {
    position: relative;
    z-index: 1;
    background: var(--gs-grad-herocard);
    border: 1px solid var(--gs-border-2);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(78, 99, 238, 0.08) inset;
    overflow: hidden;
    color: inherit;
    transition: transform var(--t), box-shadow var(--t);
}
.hm-hero-card__media {
    position: relative;
    aspect-ratio: 16 / 11;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(78, 99, 238, 0.18), transparent 65%),
        linear-gradient(135deg, #141a24, #0a0e13);
    overflow: hidden;
}
.hm-hero-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform var(--t);
}
.hm-hero-card__tag {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    padding: 0.28rem 0.7rem;
    border-radius: 7px;
    background: var(--gs-grad-amber);
    color: #1a1206;
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px -3px rgba(245, 158, 11, 0.5);
}
.hm-hero-card__pill {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    padding: 0.28rem 0.7rem;
    border-radius: 99px;
    background: rgba(10, 14, 19, 0.7);
    border: 1px solid rgba(78, 99, 238, 0.35);
    color: var(--gs-accent-2);
    font-family: var(--font-head);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    backdrop-filter: blur(6px);
}
.hm-hero-card__body {
    padding: 1.05rem 1.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.hm-hero-card__name {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}
.hm-hero-card__line {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.6rem;
    border-radius: 6px;
    background: var(--gs-grad-line);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hm-hero-card__specs {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.1rem;
}
.hm-hero-card__spec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--gs-border);
    font-size: 0.85rem;
}
.hm-hero-card__spec:last-child { border-bottom: 0; }
.hm-hero-card__spec-k { color: var(--gs-text-dim); }
.hm-hero-card__spec-v { color: var(--gs-text); font-weight: 600; font-family: var(--font-mono); }
.hm-hero-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem 1.1rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--gs-border);
}
.hm-hero-card__price { display: flex; flex-direction: column; gap: 0.1rem; }
.hm-hero-card__price-lbl {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gs-text-dim);
}
.hm-hero-card__price .val {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}
.hm-hero-card__price .val-old {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gs-text-dim);
    text-decoration: line-through;
}
.hm-hero-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.05rem;
    background: var(--gs-grad-cta);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 6px 16px -6px var(--gs-glow);
    white-space: nowrap;
    transition: filter var(--t-fast), transform var(--t-fast);
}
.hm-hero-card-cta:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }

/* ---- Secciones home ---- */
.home-section { margin-block: clamp(2.25rem, 6vw, 3.75rem); }
.home-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}
.home-section__title {
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 0.9rem;
}
.home-section__title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.12em; bottom: 0.12em;
    width: 4px;
    background: var(--gs-grad-line);
    border-radius: var(--gs-radius-pill);
}
.home-section__more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-head);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--gs-accent-2);
    white-space: nowrap;
}
.home-section__more:hover { color: var(--gs-violet); }

/* Grid de categorías destacadas */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: clamp(0.6rem, 2vw, 1rem);
}
.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
    min-height: 104px;
    padding: 1rem 1.1rem;
    background: var(--gs-grad-card);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
    color: var(--gs-text);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}
.cat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 100% 0%, rgba(78, 99, 238, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}
.cat-card__name {
    position: relative;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
}
.cat-card__count {
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--gs-text-muted);
}
.cat-card:hover .cat-card__count { color: var(--gs-accent-2); }
.cat-card__ico {
    position: relative;
    width: 38px; height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: var(--gs-accent-2);
    background: rgba(78, 99, 238, 0.12);
    border: 1px solid rgba(78, 99, 238, 0.28);
}
.cat-card__ico svg { width: 20px; height: 20px; }

/* Tira de confianza / features bajo el hero (opcional) */
.home-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-block: clamp(1.5rem, 4vw, 2.25rem);
}
.home-feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
}
.home-feature__ico {
    display: inline-grid;
    place-items: center;
    width: 38px; height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(78, 99, 238, 0.12);
    border: 1px solid rgba(78, 99, 238, 0.28);
    color: var(--gs-accent-2);
    font-size: 1.05rem;
}
.home-feature__ico svg { width: 20px; height: 20px; }
.home-feature__t { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; }
.home-feature__d { font-size: 0.8rem; color: var(--gs-text-muted); }

/* ---------------------------------------------------------------------
 * 11. Tienda (catálogo) + categoría
 * ------------------------------------------------------------------- */
.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
}
.shop-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.shop-sidebar__group {
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
    padding: 1rem 1.1rem;
}
.shop-sidebar__title {
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gs-text);
}
.shop-sidebar__list { display: flex; flex-direction: column; gap: 1px; }
.shop-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.55rem;
    border-radius: var(--gs-radius-sm);
    color: var(--gs-text-muted);
    font-size: 0.88rem;
    transition: background var(--t-fast), color var(--t-fast);
}
.shop-sidebar__link:hover { background: var(--gs-surface-2); color: var(--gs-text); }
.shop-sidebar__link.is-active,
.shop-sidebar__link.is-current {
    background: rgba(78, 99, 238, 0.1);
    color: var(--gs-accent-2);
    font-weight: 600;
}
.shop-sidebar__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-sidebar__count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gs-text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.08rem 0.45rem;
    border-radius: var(--gs-radius-pill);
}
.shop-sidebar__link.is-active .shop-sidebar__count { color: var(--gs-accent-2); }

.shop-main { min-width: 0; }
.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gs-border);
}
.shop-toolbar__info { display: flex; flex-direction: column; gap: 0.15rem; }
.shop-toolbar__title { font-family: var(--font-head); font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; }
.shop-toolbar__count { font-size: 0.84rem; color: var(--gs-text-muted); }
.shop-toolbar__sort { display: flex; align-items: center; gap: 0.5rem; }
.shop-toolbar__sort-label { font-size: 0.84rem; color: var(--gs-text-muted); white-space: nowrap; }
.shop-toolbar__sort-select { width: auto; min-width: 170px; }

/* Sin resultados */
.shop-empty,
.cart-empty,
.page-404 {
    text-align: center;
    padding: clamp(2.5rem, 8vw, 5rem) 1rem;
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius-lg);
}
.shop-empty__title,
.cart-empty__title,
.page-404__title {
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 4vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
}
.shop-empty__text,
.cart-empty__text,
.page-404__text {
    color: var(--gs-text-muted);
    margin-bottom: 1.5rem;
    max-width: 46ch;
    margin-inline: auto;
}

/* Paginación */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
}
.pagination__link {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.7rem;
    background: var(--gs-surface);
    border: 1px solid var(--gs-border-2);
    border-radius: var(--gs-radius-sm);
    color: var(--gs-text);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.pagination__link:hover {
    border-color: var(--gs-accent);
    color: var(--gs-accent-2);
}
.pagination__link.is-current {
    background: var(--gs-grad-cta);
    border-color: transparent;
    color: #fff;
    pointer-events: none;
}
.pagination__link.is-disabled { opacity: 0.4; pointer-events: none; }
.pagination__gap { color: var(--gs-text-dim); padding: 0 0.25rem; }
.pagination__status {
    width: 100%;
    text-align: center;
    color: var(--gs-text-muted);
    font-size: 0.82rem;
    margin-top: 0.5rem;
}

/* Cabecera de categoría */
.category-page { display: flex; flex-direction: column; gap: 1.5rem; }
.category-head__crumbs,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    color: var(--gs-text-muted);
    margin-bottom: 0.6rem;
}
.breadcrumb__link,
.category-head__crumbs a { color: var(--gs-text-muted); }
.breadcrumb__link:hover { color: var(--gs-accent-2); }
.breadcrumb__sep { color: var(--gs-text-dim); }
.breadcrumb__current,
.category-head__current { color: var(--gs-text); font-weight: 500; }
.category-head__title { font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; }
.category-head__count { color: var(--gs-text-muted); font-size: 0.88rem; margin-top: 0.25rem; }

.category-subnav__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.category-subnav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--gs-surface);
    border: 1px solid var(--gs-border-2);
    border-radius: var(--gs-radius-pill);
    color: var(--gs-text-muted);
    font-size: 0.84rem;
    transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.category-subnav__link:hover {
    border-color: var(--gs-accent);
    color: var(--gs-accent-2);
}
.category-subnav__count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gs-text-dim); }
.category-subnav__link.is-active {
    border-color: var(--gs-accent);
    color: var(--gs-accent-2);
    background: rgba(78, 99, 238, 0.1);
}

/* ---------------------------------------------------------------------
 * 12. Producto (detalle)
 * ------------------------------------------------------------------- */
.producto { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 3rem); }
.producto__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.producto-galeria { display: flex; flex-direction: column; gap: 0.85rem; }
.producto-galeria__main {
    position: relative;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(78, 99, 238, 0.1), transparent 65%),
        var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius-lg);
    overflow: hidden;
}
.producto-galeria__main .badge { position: absolute; top: 0.85rem; z-index: 2; }
.producto-galeria__main .badge--oferta { left: 0.85rem; }
.producto-galeria__main .badge--agotado { right: 0.85rem; }
.producto-galeria__img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.producto-galeria__thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.producto-galeria__thumb {
    width: 72px; height: 72px;
    padding: 0;
    background: var(--gs-surface);
    border: 2px solid var(--gs-border-2);
    border-radius: var(--gs-radius-sm);
    overflow: hidden;
    transition: border-color var(--t-fast), transform var(--t-fast);
}
.producto-galeria__thumb img { width: 100%; height: 100%; object-fit: cover; }
.producto-galeria__thumb.is-active { border-color: var(--gs-accent); }

.producto-info { display: flex; flex-direction: column; gap: 0.85rem; align-self: start; }
.producto-info__brand {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gs-accent-2);
}
.producto-info__title { font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; line-height: 1.2; }
.producto-info__sku { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gs-text-dim); }
.producto-info__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem 0.8rem;
    padding: 0.6rem 0;
}
.producto-info__price .price--now { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.producto-info__price .price--old { font-size: 1.05rem; }
.producto-info__stock { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.producto-info__stock-qty { font-size: 0.84rem; color: var(--gs-text-muted); }
.producto-info__resumen { color: var(--gs-text-muted); line-height: 1.65; }
.producto-info__price-note { font-size: 0.78rem; color: var(--gs-text-dim); margin: 0.25rem 0 0; }

.add-to-cart {
    margin-top: 0.5rem;
    padding: 1.1rem;
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
}
.add-to-cart__row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
}
.add-to-cart__submit { flex: 1 1 200px; min-height: 48px; font-size: 1rem; }

.stepper,
.cart-stepper {
    display: inline-flex;
    align-items: stretch;
    background: var(--gs-surface-2);
    border: 1px solid var(--gs-border-2);
    border-radius: var(--gs-input-radius);
    overflow: hidden;
}
.stepper__btn,
.cart-stepper__btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    border: 0;
    background: transparent;
    color: var(--gs-text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    transition: background var(--t-fast), color var(--t-fast);
}
.stepper__btn:hover,
.cart-stepper__btn:hover { background: var(--gs-surface-3); color: var(--gs-accent-2); }
.stepper__btn:disabled,
.cart-stepper__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper__input,
.cart-stepper__input {
    width: 56px;
    border: 0;
    border-inline: 1px solid var(--gs-border-2);
    background: transparent;
    text-align: center;
    font-family: var(--font-mono);
    font-weight: 700;
    border-radius: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}
.stepper__input:focus,
.cart-stepper__input:focus { outline: 2px solid var(--gs-accent); outline-offset: -2px; background: var(--gs-surface); }
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button,
.cart-stepper__input::-webkit-outer-spin-button,
.cart-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Precios por método de pago */
.metodos-pago {
    padding: 1rem 1.1rem;
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
}
.metodos-pago__title { font-family: var(--font-head); font-size: 0.94rem; font-weight: 700; margin-bottom: 0.75rem; }
.metodos-pago__list { display: flex; flex-direction: column; gap: 0.4rem; }
.metodos-pago__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.6rem;
    border-radius: var(--gs-radius-sm);
    background: var(--gs-surface-2);
}
.metodos-pago__item--transferencia {
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.30);
}
.metodos-pago__label { color: var(--gs-text-muted); font-size: 0.88rem; }
.metodos-pago__precio { font-family: var(--font-head); font-weight: 800; color: var(--gs-text); }
.metodos-pago__item--transferencia .metodos-pago__precio { color: var(--gs-accent-2); }
.metodos-pago__nota { margin-top: 0.6rem; font-size: 0.77rem; color: var(--gs-text-dim); }

/* Pill "Mejor precio" (transferencia) */
.precio-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    color: #fff;
    background: var(--gs-grad-short);
}

/* Tabla de specs */
.producto-specs {
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
    padding: 1.25rem 1.4rem;
}
.producto-specs__title,
.producto-descripcion__title,
.producto-relacionados__title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-left: 0.7rem;
    position: relative;
}
.producto-specs__title::before,
.producto-descripcion__title::before,
.producto-relacionados__title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.1em; bottom: 0.1em;
    width: 3px;
    background: var(--gs-grad-line);
    border-radius: var(--gs-radius-pill);
}
.producto-specs__table { width: 100%; border-collapse: collapse; }
.producto-specs__row { border-bottom: 1px solid var(--gs-border); }
.producto-specs__row:last-child { border-bottom: 0; }
.producto-specs__row:nth-child(even) { background: var(--gs-surface-2); }
.producto-specs__key,
.producto-specs__val { padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; font-size: 0.88rem; }
.producto-specs__key { color: var(--gs-text-muted); font-weight: 600; width: 38%; }
.producto-specs__val { color: var(--gs-text); }

/* Descripción */
.producto-descripcion {
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
    padding: 1.25rem 1.4rem;
}
.producto-descripcion__body { color: var(--gs-text-muted); line-height: 1.7; }
.producto-descripcion__body p { margin-bottom: 0.85rem; }
.producto-descripcion__body p:last-child { margin-bottom: 0; }

/* Tira de confianza del producto */
.producto-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--gs-border);
    border-radius: 12px;
    background: var(--gs-surface-2);
}
.producto-trust__item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gs-text-muted);
}
.producto-trust__item svg {
    width: 18px;
    height: 18px;
    color: var(--gs-accent-2);
    flex: 0 0 auto;
}

/* ---------------------------------------------------------------------
 * 13. Carrito
 * ------------------------------------------------------------------- */
.cart { display: flex; flex-direction: column; gap: 1.5rem; }
.cart__heading { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
.cart__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}
.cart__items { min-width: 0; }
.cart-list { display: flex; flex-direction: column; gap: 0.75rem; }

.cart-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    grid-template-areas:
        "img info"
        "img qty"
        "sub sub"
        "rem rem";
    gap: 0.6rem 1rem;
    padding: 1rem;
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
}
.cart-item__img {
    grid-area: img;
    width: 84px; height: 84px;
    border-radius: var(--gs-radius-sm);
    overflow: hidden;
    background: var(--gs-surface-2);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.cart-item__brand { font-family: var(--font-head); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gs-text-dim); font-weight: 600; }
.cart-item__title { font-size: 0.94rem; font-weight: 600; line-height: 1.35; }
.cart-item__title a { color: var(--gs-text); }
.cart-item__title a:hover { color: var(--gs-accent-2); }
.cart-item__unit { font-size: 0.84rem; color: var(--gs-text-muted); }
.cart-item__qty { grid-area: qty; }
.cart-stepper__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cart-item__subtotal {
    grid-area: sub;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--gs-border);
}
.cart-item__subtotal-label { font-size: 0.84rem; color: var(--gs-text-muted); }
.cart-item__subtotal-amount { font-family: var(--font-head); font-weight: 800; color: var(--gs-text); }
.cart-item__remove { grid-area: rem; }
.cart-item__remove-btn { width: 100%; padding-block: 0.5rem; font-size: 0.84rem; color: var(--gs-text-muted); }
.cart-item__remove-btn:hover { border-color: var(--gs-danger); color: var(--gs-danger); }

.cart-summary {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    padding: 1.25rem 1.4rem;
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
}
.cart-summary__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.cart-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    color: var(--gs-text-muted);
    font-size: 0.9rem;
}
.cart-summary__value { color: var(--gs-text); font-weight: 600; font-family: var(--font-mono); }
.cart-summary__row--total {
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--gs-border-2);
    color: var(--gs-text);
}
.cart-summary__row--total .cart-summary__label { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; }
.cart-summary__value--total { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; color: #fff; }
.cart-summary__note { margin: 0.75rem 0 1.1rem; font-size: 0.77rem; color: var(--gs-text-dim); }
.cart-summary__trust {
    font-size: 0.8rem;
    color: var(--gs-text-muted);
    margin-top: 0.6rem;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}
.cart-summary__trust::before { content: "\2713"; color: var(--gs-ok); }
.cart-summary__pay { width: 100%; min-height: 50px; font-size: 1rem; }
.cart-summary__keep {
    display: block;
    text-align: center;
    margin-top: 0.85rem;
    font-size: 0.88rem;
    color: var(--gs-text-muted);
}
.cart-summary__keep:hover { color: var(--gs-accent-2); }

/* ---------------------------------------------------------------------
 * 14. Checkout
 * ------------------------------------------------------------------- */
.checkout { display: flex; flex-direction: column; gap: 1.5rem; }
.checkout__title { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
.checkout__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}
.checkout__form { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.checkout__fieldset {
    border: 0;
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
    background: var(--gs-surface);
    padding: 1.25rem 1.4rem;
}
.checkout__legend {
    padding: 0 0.5rem;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gs-text);
}
.checkout__alert {
    padding: 0.85rem 1rem;
    border-radius: var(--gs-radius-sm);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fda4a4;
    font-size: 0.9rem;
}
.checkout__trust {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--gs-text-muted);
}
.checkout__trust li { display: flex; gap: 0.35rem; align-items: center; }
.checkout__trust li::before { content: "\2713"; color: var(--gs-ok); font-weight: 700; }

.metodo-pago__list { display: flex; flex-direction: column; gap: 0.6rem; }
.metodo-pago__option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--gs-surface-2);
    border: 1px solid var(--gs-border-2);
    border-radius: var(--gs-radius-sm);
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.metodo-pago__option:hover { border-color: var(--gs-accent); }
.metodo-pago__option:has(input:checked) {
    border-color: var(--gs-accent);
    background: rgba(78, 99, 238, 0.1);
    box-shadow: 0 0 0 1px var(--gs-glow-soft);
}
.metodo-pago__option input[type="radio"] { width: auto; accent-color: var(--gs-accent); }
.metodo-pago__label { font-weight: 600; flex: 1; }
.metodo-pago__total { font-family: var(--font-head); font-weight: 800; color: var(--gs-accent-2); }
.metodo-pago__nota { font-size: 0.8rem; color: var(--gs-text-dim); margin-top: 0.5rem; }
.metodo-pago__delta { display: inline-block; margin-left: 0.5rem; font-size: 0.78rem; font-weight: 600; }
.metodo-pago__delta--save { color: var(--gs-ok); }
.metodo-pago__delta--add { color: var(--gs-text-dim); }

.checkout__resumen {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    padding: 1.25rem 1.4rem;
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
}
.checkout__resumen-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.checkout__items { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.checkout__item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--gs-border);
    font-size: 0.88rem;
}
.checkout__item-nombre { color: var(--gs-text); font-weight: 500; }
.checkout__item-cant { color: var(--gs-text-muted); font-size: 0.8rem; grid-column: 1; }
.checkout__item-sub { color: var(--gs-text); font-weight: 700; text-align: right; grid-row: 1 / span 2; align-self: center; font-family: var(--font-mono); }
.checkout__total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--gs-border-2);
    font-size: 1.05rem;
    font-weight: 700;
}
.checkout__total-row strong,
.checkout__total-row .checkout__total-amount { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: #fff; }
.checkout__total-nota { margin-top: 0.6rem; font-size: 0.77rem; color: var(--gs-text-dim); }
.checkout__submit { width: 100%; min-height: 52px; font-size: 1.05rem; margin-top: 1rem; }

/* ---------------------------------------------------------------------
 * 15. Pago (transferencia / mercadopago / tuu)
 * ------------------------------------------------------------------- */
.pago {
    max-width: 720px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.pago__title { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; text-align: center; }
.pago__subtitle { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--gs-text); }
.pago__lead { color: var(--gs-text-muted); text-align: center; line-height: 1.6; }
.pago__resumen,
.pago__banco,
.pago__items-box {
    padding: 1.25rem 1.4rem;
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
}
.pago--transferencia .pago__banco { box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35); }
.pago--mercadopago .pago__subtitle,
.pago--tuu .pago__subtitle { color: var(--gs-cyan); }
.pago__banco-datos { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.pago__banco-nota { margin-top: 0.85rem; font-size: 0.84rem; color: var(--gs-text-muted); }
.pago__dato {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--gs-border);
}
.pago__dato:last-child { border-bottom: 0; }
.pago__dato-label { color: var(--gs-text-muted); font-size: 0.88rem; }
.pago__dato-valor { font-weight: 700; color: var(--gs-text); text-align: right; font-family: var(--font-mono); }
.pago__dato-valor--total { font-family: var(--font-head); font-size: 1.25rem; color: #fff; }
.pago__items { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.pago__item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.1rem 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gs-border);
    font-size: 0.9rem;
}
.pago__item-nombre { color: var(--gs-text); }
.pago__item-cant { color: var(--gs-text-muted); font-size: 0.8rem; }
.pago__item-sub { font-weight: 700; text-align: right; grid-row: 1 / span 2; align-self: center; font-family: var(--font-mono); }
.pago__acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ---------------------------------------------------------------------
 * 16. Auth (login / registro)
 * ------------------------------------------------------------------- */
.auth {
    min-height: 60vh;
    display: grid;
    place-items: center;
    padding-block: clamp(1.5rem, 5vw, 3rem);
}
.auth__card {
    width: 100%;
    max-width: 440px;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    background: var(--gs-grad-herocard);
    box-shadow: inset 0 0 0 1px var(--gs-border-2), var(--shadow-md);
    border-radius: var(--gs-radius-lg);
}
.auth__heading { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; margin-bottom: 0.4rem; }
.auth__lead { color: var(--gs-text-muted); margin-bottom: 1.5rem; }

.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.auth-form__label { font-size: 0.84rem; font-weight: 600; color: var(--gs-text-muted); }
.auth-form__hint { font-size: 0.77rem; color: var(--gs-text-dim); }
.auth-form__opt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--gs-text-muted);
}
.auth-form__opt input { width: auto; accent-color: var(--gs-accent); }
.auth-form__submit { width: 100%; min-height: 48px; font-size: 1rem; margin-top: 0.25rem; }

.auth__alt {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gs-border);
    text-align: center;
    color: var(--gs-text-muted);
    font-size: 0.88rem;
}
.auth__link { font-weight: 600; }

/* ---------------------------------------------------------------------
 * 17. Cuenta
 * ------------------------------------------------------------------- */
.cuenta { display: flex; flex-direction: column; gap: 1.5rem; }
.cuenta__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}
.cuenta__heading { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
.cuenta__logout { margin-left: auto; }
.cuenta__logout button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: transparent;
    border: 1px solid var(--gs-border-2);
    border-radius: var(--gs-input-radius);
    color: var(--gs-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color var(--t-fast), color var(--t-fast);
}
.cuenta__logout button:hover { border-color: var(--gs-danger); color: var(--gs-danger); }
.cuenta__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.cuenta-datos {
    padding: 1.25rem 1.4rem;
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
}
.cuenta-datos__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.cuenta-datos__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem 1.5rem;
    margin: 0;
}
.cuenta-datos__dt { font-size: 0.8rem; color: var(--gs-text-muted); font-weight: 600; }
.cuenta-datos__dd { margin: 0 0 0.6rem; color: var(--gs-text); }
.cuenta-datos__muted { color: var(--gs-text-dim); }

.cuenta-pedidos {
    background: var(--gs-surface);
    box-shadow: inset 0 0 0 1px var(--gs-border);
    border-radius: var(--gs-radius);
    overflow: hidden;
}
.cuenta-pedidos__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; padding: 1.25rem 1.4rem 0.75rem; }
.cuenta-pedidos__tablewrap { overflow-x: auto; }
.cuenta-pedidos__table { width: 100%; border-collapse: collapse; min-width: 480px; }
.cuenta-pedidos__table th,
.cuenta-pedidos__cell {
    padding: 0.75rem 1.4rem;
    text-align: left;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--gs-border);
    white-space: nowrap;
}
.cuenta-pedidos__table th { color: var(--gs-text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.cuenta-pedidos__row:hover { background: var(--gs-surface-2); }
.cuenta-pedidos__row:last-child .cuenta-pedidos__cell { border-bottom: 0; }
.cuenta-pedidos__codigo { font-family: var(--font-mono); font-weight: 700; color: var(--gs-accent-2); }
.cuenta-pedidos__empty { padding: 2rem 1.4rem; text-align: center; }
.cuenta-pedidos__empty-text { color: var(--gs-text-muted); }

.estado,
[class*="estado--"] {
    display: inline-flex;
    padding: 0.15rem 0.6rem;
    border-radius: var(--gs-radius-pill);
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--gs-surface-3);
    color: var(--gs-text-muted);
}
.estado--pendiente { background: rgba(245, 158, 11, 0.15); color: var(--gs-warn); }
.estado--pagado,
.estado--completado { background: rgba(34, 197, 94, 0.15); color: var(--gs-ok); }
.estado--cancelado { background: rgba(239, 68, 68, 0.15); color: #fda4a4; }

/* ---------------------------------------------------------------------
 * 18. Flash / avisos
 * ------------------------------------------------------------------- */
.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1rem;
}
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--gs-radius-sm);
    border: 1px solid var(--gs-border-2);
    background: var(--gs-surface-2);
    animation: slideDown var(--t);
}
.flash__msg { font-size: 0.9rem; }
.flash__close {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    margin: -0.5rem -0.5rem -0.5rem 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.3rem;
    line-height: 1;
    opacity: 0.7;
    padding: 0;
}
.flash__close:hover { opacity: 1; }
.flash--success { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); color: #86efac; }
.flash--error   { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.1); color: #fda4a4; }
.flash--warning { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); color: #fcd34d; }
.flash--info    { border-color: rgba(78, 99, 238, 0.4); background: rgba(78, 99, 238, 0.1); color: #b8c1ff; }

/* ---------------------------------------------------------------------
 * 19. Footer
 * ------------------------------------------------------------------- */
.site-footer {
    flex-shrink: 0;
    margin-top: clamp(3rem, 8vw, 5rem);
    background: var(--gs-surface);
    border-top: 1px solid var(--gs-border);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: clamp(2rem, 5vw, 3rem);
}
.site-footer__brand { display: flex; flex-direction: column; gap: 0.75rem; max-width: 320px; }
.site-footer__logo { height: 36px; width: auto; }
.site-footer__claim { color: var(--gs-text-muted); font-size: 0.9rem; }
.site-footer__title {
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gs-text);
    margin-bottom: 0.9rem;
}
.site-footer__list { display: flex; flex-direction: column; gap: 0.55rem; color: var(--gs-text-muted); font-size: 0.9rem; }
.site-footer__link { color: var(--gs-text-muted); }
.site-footer__link:hover { color: var(--gs-accent-2); }
.site-footer__bottom {
    padding-block: 1.25rem;
    border-top: 1px solid var(--gs-border);
}
.site-footer__copy { color: var(--gs-text-dim); font-size: 0.8rem; text-align: center; }

/* ---------------------------------------------------------------------
 * 20. Utilidades
 * ------------------------------------------------------------------- */
.is-loading { opacity: 0.6; pointer-events: none; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Compat clases utilitarias hermanas mencionadas en el contrato */
.gs-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gs-price { font-family: var(--font-head); font-weight: 800; color: #fff; }

/* ---------------------------------------------------------------------
 * 20b. Componentes nuevos del contrato + interacción gateada
 * ------------------------------------------------------------------- */

/* Skip link de accesibilidad */
.skip-link {
    position: absolute;
    left: 8px;
    top: -48px;
    z-index: 1000;
    background: var(--gs-surface-2);
    color: var(--gs-text);
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--gs-border-2);
    transition: top 0.15s;
}
.skip-link:focus { top: 8px; }

/* Icono de búsqueda inline (header.php reemplaza el glifo por un <svg>) */
.search__btn svg { width: 18px; height: 18px; }

/* Toggle de filtros (catálogo móvil) */
.shop-filters-toggle { display: none; }

/* Efectos de hover gateados: solo en dispositivos con puntero con hover real.
 * Evita estados "pegados" tras tocar en móvil. */
@media (hover: hover) {
    .btn:hover { transform: translateY(-1px); }
    .btn--primary:hover {
        box-shadow: 0 10px 24px -6px rgba(78, 99, 238, 0.5);
        filter: brightness(1.05);
    }
    .btn--primary:hover::before { transform: translateX(120%) skewX(-18deg); }
    .btn--accent2:hover { filter: brightness(1.06); }

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow:
            inset 0 0 0 1px rgba(78, 99, 238, 0.38),
            0 24px 56px -16px rgba(78, 99, 238, 0.45);
    }
    .product-card:hover .product-card__img img,
    .product-card:hover .product-card__media img { transform: scale(1.05); filter: brightness(1.06); }

    .cat-card:hover {
        transform: translateY(-4px);
        color: var(--gs-text);
        box-shadow:
            inset 0 0 0 1px rgba(78, 99, 238, 0.38),
            0 20px 44px -16px rgba(78, 99, 238, 0.4);
    }
    .cat-card:hover::after { opacity: 1; }
    .cat-card:hover .cat-card__ico { color: var(--gs-cyan); }

    .hm-hero-card:hover {
        transform: translateY(-3px);
        color: inherit;
        box-shadow:
            0 38px 90px -20px rgba(0, 0, 0, 0.75),
            0 0 0 1px rgba(78, 99, 238, 0.2) inset;
    }
    .hm-hero-card:hover .hm-hero-card__media img { transform: scale(1.03); }

    .producto-galeria__thumb:hover { border-color: var(--gs-accent); transform: translateY(-2px); }
}

/* iOS: evita el auto-zoom al enfocar inputs (fuente >=16px en táctil) */
@media (max-width: 1023px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    textarea,
    select,
    .search__input,
    .stepper__input,
    .cart-stepper__input { font-size: 16px; }

    .shop-filters-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    #shop-filters { display: none; }
    #shop-filters.is-open { display: block; }
}

/* Topbar: permite envolver en pantallas muy angostas */
@media (max-width: 559px) {
    .topbar__inner { flex-wrap: wrap; row-gap: 0.15rem; font-size: 0.74rem; }
}

/* ---------------------------------------------------------------------
 * 21. Breakpoints
 * ------------------------------------------------------------------- */

/* >= 560px */
@media (min-width: 560px) {
    .account-link__text,
    .cart-link__text { display: inline; }
    .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .cuenta-datos__list { grid-template-columns: auto 1fr; align-items: baseline; }
    .cuenta-datos__dt { text-align: right; }
    .home-features { grid-template-columns: repeat(3, 1fr); }

    .hm-promo-inner {
        grid-template-columns: auto 1fr auto;
        gap: 1.75rem;
        text-align: left;
    }
    .hm-promo-pill { justify-self: start; }
    .hm-promo-actions { align-items: flex-end; }
}

/* >= 760px */
@media (min-width: 760px) {
    .search { display: flex; }
    .cart-item {
        grid-template-columns: 96px 1fr auto auto;
        grid-template-areas: "img info qty sub";
        align-items: center;
        gap: 1rem 1.25rem;
        position: relative;
    }
    .cart-item__img { width: 96px; height: 96px; }
    .cart-item__subtotal {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.1rem;
        padding-top: 0;
        border-top: 0;
        min-width: 110px;
    }
    .cart-item__remove {
        grid-area: unset;
        position: absolute;
        top: 0.75rem; right: 0.75rem;
    }
    .cart-item__remove-btn { width: auto; border: 0; background: transparent; padding: 0.35rem; }
    .producto__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* >= 980px — hero split en dos columnas */
@media (min-width: 980px) {
    .hm-hero__inner {
        grid-template-columns: 1fr 480px;
        gap: 3.5rem;
    }
    .hm-hero-showcase { margin-inline: 0; }
}

/* >= 1024px — categorías en header, sidebars de tienda/carrito/checkout */
@media (min-width: 1024px) {
    .menu-toggle { display: none; }
    .mobile-nav { display: none !important; }
    .nav-cats { display: block; }

    .shop-layout { grid-template-columns: 260px minmax(0, 1fr); }
    .cart__layout { grid-template-columns: minmax(0, 1fr) 340px; }
    .checkout__layout { grid-template-columns: minmax(0, 1fr) 360px; }
    .cuenta__layout { grid-template-columns: 320px minmax(0, 1fr); }
}

/* Accesibilidad: respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================================
 * 18. Rediseño visual v3 — "light product stage" + profundidad de cards
 *     (override al final para ganar la cascada sin tocar bloques previos)
 *     Decisión de marca (owner): imágenes de producto sobre tile claro
 *     uniforme; UI oscura alrededor. Arregla la grilla incoherente de
 *     fotos retail con fondo blanco mezcladas con PNG transparentes.
 * ------------------------------------------------------------------- */
:root {
    --gs-tile:      linear-gradient(157deg, #f7f8fa 0%, #eceef3 55%, #e4e7ee 100%);
    --gs-tile-ring: inset 0 1px 0 rgba(255,255,255,.85), inset 0 0 0 1px rgba(10,14,19,.10);
}

/* ---- Tile claro uniforme en TODA superficie de imagen de producto ---- */
.product-card__img,
.product-card__media {
    background: var(--gs-tile);
    box-shadow: var(--gs-tile-ring);
    padding: 12px;
}
.product-card__img img,
.product-card__media img {
    object-fit: contain;
}

.hm-hero-card__media {
    background: var(--gs-tile);
    box-shadow: var(--gs-tile-ring);
}
.hm-hero-card__media img { padding: 1.4rem; }

.producto-galeria__main {
    background: var(--gs-tile);
    box-shadow: var(--gs-tile-ring);
}
.producto-galeria__img { padding: 1.5rem; }
.producto-galeria__thumb {
    background: var(--gs-tile);
    border-color: rgba(10,14,19,.12);
}
.producto-galeria__thumb img { object-fit: contain; padding: 6px; }
.producto-galeria__thumb.is-active { border-color: var(--gs-accent); }

.cart-item__img {
    background: var(--gs-tile);
    box-shadow: var(--gs-tile-ring);
    border-radius: 12px;
    overflow: hidden;
}
.cart-item__img img { object-fit: contain; padding: 8px; }

/* ---- Cards de producto: profundidad real + hover con glow de marca ---- */
.product-card {
    background: linear-gradient(180deg, #131a26 0%, #0b1018 100%);
    box-shadow: inset 0 0 0 1px var(--gs-border), 0 10px 24px -18px rgba(0,0,0,.8);
    transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover:hover) {
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow:
            inset 0 0 0 1px rgba(120,140,255,.30),
            0 22px 46px -24px rgba(78,99,238,.60),
            0 0 0 1px rgba(78,99,238,.10);
    }
    .product-card:hover .product-card__img img,
    .product-card:hover .product-card__media img { transform: scale(1.05); }
}
.product-card__title { color: var(--gs-text); letter-spacing: -.01em; }
.price--now { font-size: 1.18rem; }

/* ---- Tiles de categoría: chip con peso + atmósfera + hover vivo ---- */
.cat-card {
    min-height: 122px;
    padding: 1.15rem 1.2rem;
    background: linear-gradient(160deg, #161d2b 0%, #0c1119 100%);
    box-shadow: inset 0 0 0 1px var(--gs-border);
}
.cat-card::after {
    background: radial-gradient(120% 100% at 100% 0%, rgba(78,99,238,.22), transparent 55%);
}
.cat-card__name { font-size: 1.06rem; letter-spacing: -.01em; }
.cat-card__ico {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: linear-gradient(150deg, rgba(78,99,238,.30), rgba(168,85,247,.18));
    border: 1px solid rgba(120,140,255,.35);
    color: #c7cfff;
    box-shadow: 0 8px 20px -10px rgba(78,99,238,.65);
}
.cat-card__ico svg { width: 24px; height: 24px; }
@media (hover:hover) {
    .cat-card { transition: transform .22s ease, box-shadow .22s ease; }
    .cat-card:hover {
        transform: translateY(-3px);
        box-shadow: inset 0 0 0 1px rgba(120,140,255,.42), 0 18px 40px -22px rgba(78,99,238,.55);
    }
    .cat-card:hover::after { opacity: 1; }
    .cat-card:hover .cat-card__ico {
        color: #fff;
        background: linear-gradient(150deg, rgba(78,99,238,.55), rgba(34,211,238,.32));
        border-color: var(--gs-cyan);
    }
}
