/* ==========================================================================
   NEXO STORE — Sistema de diseño (storefront)
   --------------------------------------------------------------------------
   CAMBIA EL THEME AQUÍ:
   1. data-palette="indigo | emerald | ocean | sunset"  → paleta de color
   2. data-theme="light | dark"                          → modo claro/oscuro
   Se aplican sobre <html>. Los selectores [data-*] sobreescriben las
   variables y todo el resto del CSS reacciona automáticamente.
   ========================================================================== */

/* ---------- TOKENS BASE (paleta índigo · modo claro) ---------- */
:root {
    /* Escala del color primario (indigo) */
    --p-50:  #eef2ff;
    --p-100: #e0e7ff;
    --p-200: #c7d2fe;
    --p-300: #a5b4fc;
    --p-400: #818cf8;
    --p-500: #6366f1;
    --p-600: #00d0e8;/*resaltdo y logo switch*/
    --p-700: #002888;
    --p-800: #3730a3;
    --p-900: #312e81;

    --accent: #7c3aed;
    --grad-a: #002888;
    --grad-b: #00d0e8;
    --grad-c: #0ea5e9;

    /* Paleta semántica */
    --color-primary:        var(--p-600);
    --color-primary-hover:  var(--p-700);
    --color-primary-soft:   var(--p-50);
    --color-primary-contrast: #ffffff;
    --color-accent:         var(--accent);
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger:  #ef4444;

    /* Superficies */
    --color-bg:       #f8fafc;
    --color-surface:  #ffffff;
    --color-surface-2:#f1f5f9;
    --color-surface-3:#e9eef5;
    --color-text:        #0f172a;
    --color-text-muted:  #64748b;
    --color-text-soft:   #94a3b8;
    --color-border:      #e2e8f0;
    --color-border-strong:#cbd5e1;

    /* Formas y sombras */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .05);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12), 0 4px 8px rgba(15, 23, 42, .06);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, .18);
    --shadow-brand: 0 8px 22px rgba(79, 70, 229, .35);

    /* Tipografía */
    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-heading: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
    --text-xs: .75rem;
    --text-sm: .875rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.75rem;
    --text-3xl: 2.5rem;
    --text-4xl: 3.25rem;

    /* Layout */
    --container: 1240px;
    --header-h: 76px;
    --gutter: 1.25rem;

    /* Movimiento */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --fast: .18s var(--ease);
    --med:  .3s var(--ease);
    --slow: .55s var(--ease);
}

/* ---------- PALETAS (cambia el theme cambiando data-palette) ---------- */
[data-palette="emerald"] {
    --p-50:#ecfdf5; --p-100:#d1fae5; --p-200:#a7f3d0; --p-300:#6ee7b7;
    --p-400:#34d399; --p-500:#10b981; --p-600:#059669; --p-700:#047857; --p-800:#065f46; --p-900:#064e3b;
    --accent:#14b8a6;
    --grad-a:#059669; --grad-b:#14b8a6; --grad-c:#84cc16;
    --shadow-brand: 0 8px 22px rgba(5, 150, 105, .35);
}

[data-palette="ocean"] {
    --p-50:#f0f9ff; --p-100:#e0f2fe; --p-200:#bae6fd; --p-300:#7dd3fc;
    --p-400:#38bdf8; --p-500:#0ea5e9; --p-600:#0284c7; --p-700:#0369a1; --p-800:#075985; --p-900:#0c4a6e;
    --accent:#6366f1;
    --grad-a:#0ea5e9; --grad-b:#6366f1; --grad-c:#8b5cf6;
    --shadow-brand: 0 8px 22px rgba(2, 132, 199, .35);
}

[data-palette="sunset"] {
    --p-50:#fff7ed; --p-100:#ffedd5; --p-200:#fed7aa; --p-300:#fdba74;
    --p-400:#fb923c; --p-500:#f97316; --p-600:#ea580c; --p-700:#c2410c; --p-800:#9a3412; --p-900:#7c2d12;
    --accent:#e11d48;
    --grad-a:#f97316; --grad-b:#e11d48; --grad-c:#f59e0b;
    --shadow-brand: 0 8px 22px rgba(234, 88, 12, .35);
}

/* ---------- MODO OSCURO ---------- */
[data-theme="dark"] {
    --color-bg:        #0b1020;
    --color-surface:   #121a2e;
    --color-surface-2: #18223a;
    --color-surface-3:#223050;
    --color-text:        #e7ecf5;
    --color-text-muted:  #9aa8c0;
    --color-text-soft:   #6b7a93;
    --color-border:      #243049;
    --color-border-strong:#33425f;

    --color-primary-soft: rgba(99, 102, 241, .16);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .35);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55), 0 4px 8px rgba(0, 0, 0, .35);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, .6);
}

[data-theme="dark"][data-palette="emerald"] { --color-primary-soft: rgba(16, 185, 129, .16); }
[data-theme="dark"][data-palette="ocean"]   { --color-primary-soft: rgba(14, 165, 233, .16); }
[data-theme="dark"][data-palette="sunset"]  { --color-primary-soft: rgba(249, 115, 22, .16); }

/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--med), color var(--med);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.02em;
}

p { margin: 0 0 1em; }

a { color: var(--color-primary); text-decoration: none; }

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; }

::selection { background: var(--p-500); color: #fff; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: 5rem; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: .75rem;
}
.kicker::before {
    content: '';
    width: 22px; height: 2px;
    border-radius: 2px;
    background: var(--grad-a);
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}
.section__head h2 { font-size: var(--text-3xl); margin-bottom: 0; }
.section__sub { color: var(--color-text-muted); max-width: 34rem; margin: 0; }

/* Reveal on scroll (JS añade .has-js y .is-visible) */
html:not(.has-js) .reveal { opacity: 1 !important; transform: none !important; }
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .68rem 1.35rem;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--fast), box-shadow var(--fast), background-color var(--fast), color var(--fast), border-color var(--fast);
}
.btn svg { width: 1.15em; height: 1.15em; }

.btn--primary {
    color: var(--color-primary-contrast);
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    box-shadow: var(--shadow-brand);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .22); }

.btn--ghost { background: transparent; color: var(--color-text); }
.btn--ghost:hover { background: var(--color-surface-2); }

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary-soft); }

.btn--sm { padding: .45rem .9rem; font-size: var(--text-xs); }
.btn--lg { padding: .9rem 1.8rem; font-size: var(--text-md); border-radius: var(--radius-md); }
.btn--block { width: 100%; }
.btn--round {
    width: 42px; height: 42px;
    padding: 0;
    border-radius: 50%;
    flex: none;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border: 1px solid var(--color-border);
}
.btn--round:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   BARRA DE ANUNCIO
   ========================================================================== */
.announce {
    background: linear-gradient(90deg, var(--p-700), var(--p-500));
    color: #fff;
    font-size: var(--text-xs);
    letter-spacing: .04em;
}
.announce__inner {
    display: flex;
    justify-content: center;
    padding-block: .5rem;
}
.announce p { margin: 0; font-weight: 600; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--color-surface) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--med);
}
.header.is-scrolled { box-shadow: var(--shadow-md); }

.header__inner {
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.header__burger { display: none; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-text);
}
.brand__mark {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    box-shadow: var(--shadow-brand);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__logo { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; flex: none; }
.brand__text { letter-spacing: -.02em; }
.brand__text em { font-style: normal; color: var(--color-primary); }

.nav { display: flex; gap: .35rem; }
.nav__link {
    padding: .55rem .8rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--fast), background-color var(--fast);
}
.nav__link:hover { color: var(--color-text); background: var(--color-surface-2); }
.nav__link.is-active { color: var(--color-primary); background: var(--color-primary-soft); }

.header__search {
    display: flex;
    align-items: center;
    gap: .6rem;
    max-width: 340px;
    width: 100%;
    justify-self: end;
    padding: .55rem .9rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    transition: border-color var(--fast), box-shadow var(--fast), background-color var(--med);
}
.header__search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
    background: var(--color-surface);
}
.header__search svg { width: 17px; height: 17px; color: var(--color-text-soft); flex: none; }
.header__search input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
    font-size: var(--text-sm);
    width: 100%;
}
.header__search input::placeholder { color: var(--color-text-soft); }

.header__actions { display: flex; align-items: center; gap: .35rem; }

.icon-btn {
    position: relative;
    width: 42px; height: 42px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background-color var(--fast), color var(--fast);
}
.icon-btn:hover { background: var(--color-surface-2); color: var(--color-text); }
.icon-btn svg { width: 21px; height: 21px; }

.badge-dot {
    position: absolute;
    top: 3px; right: 2px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: var(--color-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid var(--color-surface);
}

/* Currency switcher */
.currency-switcher {
    display: flex;
    align-items: center;
    gap: .15rem;
    padding: .18rem;
    border-radius: 999px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}
.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    padding: .28rem .55rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--color-muted);
    font-family: inherit;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background var(--fast), color var(--fast);
}
.cs-btn:hover { color: var(--color-text); }
.cs-btn.is-active {
    background: var(--color-primary);
    color: var(--color-on-primary);
}
.cs-btn__sym { font-weight: 700; }
.cs-btn__code { opacity: .78; }

/* Tema switcher */
.theme-switcher { display: flex; align-items: center; gap: .15rem; }
.theme-switcher .i-moon { display: none; }
[data-theme="dark"] .theme-switcher .i-sun { display: none; }
[data-theme="dark"] .theme-switcher .i-moon { display: block; }

.theme-switcher__palette {
    display: flex;
    gap: .3rem;
    padding: .2rem .15rem;
}
.swatch {
    width: 22px; height: 22px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast);
}
.swatch:hover { transform: scale(1.2); }
.swatch span {
    display: block; width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--c);
}
[data-palette="indigo"]  .swatch[data-palette-btn="indigo"],
[data-palette="emerald"] .swatch[data-palette-btn="emerald"],
[data-palette="ocean"]   .swatch[data-palette-btn="ocean"],
[data-palette="sunset"]  .swatch[data-palette-btn="sunset"] {
    border-color: var(--color-text);
    box-shadow: 0 0 0 2px var(--color-surface);
}

/* ==========================================================================
   DRAWERS (menú móvil + carrito)
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }

.drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .5);
    opacity: 0;
    transition: opacity var(--med);
    backdrop-filter: blur(2px);
}
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
    position: absolute;
    top: 0;
    height: 100%;
    width: min(400px, 92vw);
    background: var(--color-surface);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transition: transform var(--slow);
}
.drawer--menu .drawer__panel { left: 0; transform: translateX(-105%); border-radius: 0 18px 18px 0; }
.drawer--cart  .drawer__panel { right: 0; transform: translateX(105%); border-radius: 18px 0 0 18px; }
.drawer--wishlist .drawer__panel { right: 0; transform: translateX(105%); border-radius: 18px 0 0 18px; }
.drawer.is-open .drawer__panel { transform: none; }

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}
.drawer__head h3 { font-size: var(--text-lg); margin: 0; }
.drawer__head .cart-head-count { color: var(--color-text-muted); font-weight: 500; }

.drawer__nav { display: flex; flex-direction: column; padding: .75rem; gap: .25rem; overflow-y: auto; }
.drawer__nav a {
    padding: .85rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text);
}
.drawer__nav a:hover { background: var(--color-primary-soft); color: var(--color-primary); }

/* ==========================================================================
   CARRITO
   ========================================================================== */
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: .85rem;
    align-items: center;
}
.cart-item__thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
}
.cart-item__thumb svg { width: 30px; height: 30px; }
.cart-item__img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cart-item__info strong { display: block; font-size: var(--text-sm); line-height: 1.3; }
.cart-item__info small { color: var(--color-text-muted); font-size: var(--text-xs); }
.cart-item__price { font-weight: 700; font-size: var(--text-sm); white-space: nowrap; }

.qty {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .45rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
}
.qty button {
    width: 26px; height: 26px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 6px;
}
.qty button:hover { background: var(--color-surface-3); color: var(--color-text); }
.qty span { min-width: 26px; text-align: center; font-size: var(--text-sm); font-weight: 600; }
.cart-item__remove {
    width: 30px; height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--color-text-soft);
    cursor: pointer;
    border-radius: 6px;
}
.cart-item__remove:hover { color: var(--color-danger); background: color-mix(in srgb, var(--color-danger) 10%, transparent); }
.cart-item__remove svg { width: 16px; height: 16px; }

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
}
.cart-empty svg { width: 54px; height: 54px; color: var(--color-text-soft); }

.cart-foot {
    padding: 1.1rem 1.25rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .85rem;
}
.cart-total strong { font-size: var(--text-xl); font-family: var(--font-heading); }
.cart-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin: .6rem 0 0;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}
.cart-note svg { width: 14px; height: 14px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5.5rem;
    background:
        radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--grad-c) 22%, transparent), transparent 60%),
        radial-gradient(700px 380px at 0% 110%, color-mix(in srgb, var(--grad-b) 18%, transparent), transparent 60%),
        var(--color-bg);
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--grad-a), var(--grad-b) 55%, var(--grad-c));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__copy p { color: var(--color-text-muted); font-size: var(--text-lg); max-width: 30rem; }
.hero__cta { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 1.5rem; }

.hero__stats {
    display: flex;
    gap: 2.2rem;
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--color-border);
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-heading); font-size: var(--text-xl); }
.stat span { color: var(--color-text-muted); font-size: var(--text-xs); }

.hero__visual {
    position: relative;
    height: 440px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.hero__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(color-mix(in srgb, var(--grad-b) 8%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--grad-b) 8%, transparent) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0;
    transition: opacity .6s var(--ease);
}
.hero__visual:hover::before { opacity: 1; }
.hero__visual::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, var(--grad-b) 30%, var(--grad-c) 70%, transparent 100%);
    box-shadow: 0 0 12px 2px color-mix(in srgb, var(--grad-b) 50%, transparent);
    animation: scanMove 4s linear infinite;
    opacity: .5;
}
@keyframes scanMove {
    0%   { top: -2%; }
    100% { top: 100%; }
}
.hero__visual img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform .6s var(--ease), filter .6s var(--ease);
}
.hero__visual:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}
.hero__corner {
    position: absolute;
    width: 28px;
    height: 28px;
    z-index: 3;
    pointer-events: none;
    opacity: .7;
    transition: opacity .4s var(--ease);
}
.hero__visual:hover .hero__corner { opacity: 1; }
.hero__corner::before,
.hero__corner::after {
    content: '';
    position: absolute;
    background: var(--grad-b);
    border-radius: 1px;
}
.hero__corner--tl { top: 12px; left: 12px; }
.hero__corner--tl::before { top: 0; left: 0; width: 100%; height: 2px; }
.hero__corner--tl::after  { top: 0; left: 0; width: 2px; height: 100%; }
.hero__corner--tr { top: 12px; right: 12px; }
.hero__corner--tr::before { top: 0; right: 0; width: 100%; height: 2px; }
.hero__corner--tr::after  { top: 0; right: 0; width: 2px; height: 100%; }
.hero__corner--bl { bottom: 12px; left: 12px; }
.hero__corner--bl::before { bottom: 0; left: 0; width: 100%; height: 2px; }
.hero__corner--bl::after  { bottom: 0; left: 0; width: 2px; height: 100%; }
.hero__corner--br { bottom: 12px; right: 12px; }
.hero__corner--br::before { bottom: 0; right: 0; width: 100%; height: 2px; }
.hero__corner--br::after  { bottom: 0; right: 0; width: 2px; height: 100%; }
.hero__glow {
    position: absolute;
    inset: 8% 6%;
    border-radius: 50%;
    background: conic-gradient(from 140deg, var(--grad-a), var(--grad-b), var(--grad-c), var(--grad-a));
    filter: blur(70px);
    opacity: .45;
    animation: glowPulse 7s var(--ease) infinite;
}
@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: .45; }
    50% { transform: scale(1.08); opacity: .6; }
}

.hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem 1.3rem;
    background: color-mix(in srgb, var(--color-surface) 86%, transparent);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.hero-card__icon {
    width: 52px; height: 52px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    background: var(--color-primary-soft);
}
.hero-card__icon svg { width: 28px; height: 28px; }
.hero-card strong { display: block; font-family: var(--font-heading); font-size: var(--text-sm); }
.hero-card small { color: var(--color-text-muted); font-size: var(--text-xs); }

.hero-card--main {
    top: 14%;
    right: 6%;
    animation-delay: .2s;
}
.hero-card--main .hero-card__price {
    margin-left: .4rem;
    padding: .35rem .7rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-primary);
    background: var(--color-primary-soft);
    white-space: nowrap;
}
.hero-card--sm {
    bottom: 16%;
    left: 2%;
    animation-delay: 1.4s;
}

.hero-chip {
    position: absolute;
    padding: .55rem .9rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 600;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    animation: float 7s ease-in-out infinite;
}
.hero-chip--rating { top: 6%; left: 8%; animation-delay: .8s; display: flex; align-items: center; gap: .5rem; }
.hero-chip--rating strong { font-family: var(--font-heading); font-size: var(--text-md); }
.hero-chip--rating span { color: #f59e0b; letter-spacing: 1px; }
.hero-chip--stock { bottom: 6%; right: 12%; animation-delay: 2s; display: flex; align-items: center; gap: .45rem; color: var(--color-success); }
.hero-chip--stock .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-success) 20%, transparent);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-success) 22%, transparent); }
    50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--color-success) 8%, transparent); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ==========================================================================
   FRANJA DE BENEFICIOS
   ========================================================================== */
.features { padding-block: 1.5rem 3rem; }
.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.feature {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--med), box-shadow var(--med), border-color var(--med);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border)); }
.feature__icon {
    width: 44px; height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    background: var(--color-primary-soft);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--text-md); margin-bottom: .15rem; }
.feature p { margin: 0; color: var(--color-text-muted); font-size: var(--text-xs); }

/* ==========================================================================
   FILTROS / CHIPS
   ========================================================================== */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 2rem;
}
.chip {
    padding: .5rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--fast);
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chip.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-primary-contrast);
    box-shadow: var(--shadow-brand);
}

.no-results {
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem 0;
    font-size: var(--text-lg);
}

/* ==========================================================================
   PRODUCTOS
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
}
.product-grid .card.is-hidden { display: none; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--med), box-shadow var(--med), border-color var(--med);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
}

.card__visual {
    position: relative;
    aspect-ratio: 4 / 3.4;
    display: grid;
    place-items: center;
    overflow: hidden;
    --pv: var(--p-600);
    --pb: var(--p-50);
    --pg: linear-gradient(135deg, var(--p-50), var(--p-200));
}
.p-indigo  { --pv:#4f46e5; --pg:linear-gradient(135deg, #eef2ff, #c7d2fe); }
.p-ocean   { --pv:#0284c7; --pg:linear-gradient(135deg, #f0f9ff, #bae6fd); }
.p-violet  { --pv:#7c3aed; --pg:linear-gradient(135deg, #f5f3ff, #ddd6fe); }
.p-emerald { --pv:#059669; --pg:linear-gradient(135deg, #ecfdf5, #a7f3d0); }
.p-sunset  { --pv:#ea580c; --pg:linear-gradient(135deg, #fff7ed, #fed7aa); }

.card__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(320px 200px at 80% 0%, rgba(255, 255, 255, .5), transparent 60%);
    opacity: .6;
    mix-blend-mode: soft-light;
}

.card__icon {
    width: 84px;
    height: 84px;
    color: var(--pv);
    filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--pv) 35%, transparent));
    transition: transform var(--slow);
}
.card:hover .card__icon { transform: scale(1.12) rotate(-4deg); }

.card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--slow);
}
.card:hover .card__img { transform: scale(1.06); }

.card__badge {
    position: absolute;
    top: .8rem;
    left: .8rem;
    padding: .28rem .7rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, var(--grad-b), var(--grad-c));
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.card__stock {
    position: absolute;
    bottom: .8rem;
    left: .8rem;
    padding: .28rem .7rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}
.card__stock--out {
    color: #fff;
    background: linear-gradient(120deg, var(--color-danger), color-mix(in srgb, var(--color-danger) 75%, #000));
}
.card__stock--low {
    color: #3b2505;
    background: linear-gradient(120deg, #fbbf24, #f59e0b);
}
.card.is-out { opacity: .55; }
.card.is-out .card__wish,
.card.is-out .card__quick,
.card.is-out .btn[data-addcart] { opacity: .5; pointer-events: none; }

.card__wish {
    position: absolute;
    top: .7rem;
    right: .7rem;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-surface) 90%, transparent);
    color: var(--color-text-muted);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--fast), color var(--fast), background-color var(--fast);
}
.card__wish svg { width: 18px; height: 18px; }
.card__wish:hover { color: var(--color-danger); transform: scale(1.12); }
.card__wish.is-on { color: var(--color-danger); background: color-mix(in srgb, var(--color-danger) 12%, var(--color-surface)); }
.card__wish.is-on svg { fill: currentColor; }

.card__quick {
    position: absolute;
    inset: auto 0 0 0;
    padding: .9rem;
    display: flex;
    justify-content: center;
    background: linear-gradient(transparent, color-mix(in srgb, var(--color-surface) 92%, transparent));
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--med), transform var(--med);
}
.card:hover .card__quick { opacity: 1; transform: none; }

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.15rem 1.15rem;
}
.card__cat { font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: .08em; }
.card__title {
    font-size: var(--text-md);
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0;
    line-height: 1.35;
    margin: .3rem 0 .5rem;
}

.card__rating { display: flex; align-items: center; gap: .45rem; margin-bottom: .85rem; }
.stars { color: #cbd5e1; font-size: .85rem; letter-spacing: 1px; }
.stars .is-on { color: #f59e0b; }
.stars--lg { font-size: 1.05rem; margin-bottom: .5rem; }
.card__rating-num { color: var(--color-text-muted); font-size: var(--text-xs); }

.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; }
.card__price { display: flex; flex-direction: column; line-height: 1.15; }
.card__price del { color: var(--color-text-soft); font-size: var(--text-xs); }
.card__price strong { font-family: var(--font-heading); font-size: var(--text-lg); }

/* ==========================================================================
   BANNER OFERTAS
   ========================================================================== */
.offer__inner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3.5rem 4rem;
    border-radius: var(--radius-xl);
    color: #fff;
    background: linear-gradient(120deg, var(--p-700), var(--p-500) 55%, var(--p-600));
    box-shadow: var(--shadow-xl);
}
.offer__inner::before {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    right: -80px; top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
}
.offer__inner::after {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    left: -60px; bottom: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, .14), transparent 65%);
}
.offer__copy { position: relative; z-index: 1; }
.offer__kicker { color: rgba(255, 255, 255, .8); }
.offer__kicker::before { background: rgba(255, 255, 255, .8); }
.offer__copy h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); color: #fff; }
.offer__copy h2 em { font-style: normal; color: #fde68a; }
.offer__copy p { color: rgba(255, 255, 255, .85); max-width: 30rem; }
.offer .btn--primary { color: var(--p-700); background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.offer .btn--primary:hover { transform: translateY(-2px); }

.offer__badge {
    position: relative;
    z-index: 1;
    flex: none;
    width: 150px; height: 150px;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    border: 3px dashed rgba(255, 255, 255, .6);
    animation: spin 24s linear infinite;
}
.offer__badge strong { font-family: var(--font-heading); font-size: 2.6rem; line-height: 1; }
.offer__badge span { font-size: var(--text-sm); letter-spacing: .3em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}
.tcard {
    margin: 0;
    padding: 1.6rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--med), box-shadow var(--med);
}
.tcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tcard blockquote {
    margin: 0 0 1.3rem;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
}
.tcard figcaption { display: flex; align-items: center; gap: .8rem; }
.tcard__avatar {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: var(--text-xs);
    font-weight: 700;
    color: #fff;
    background: var(--a);
}
.tcard figcaption strong { display: block; font-size: var(--text-sm); }
.tcard figcaption small { color: var(--color-text-muted); }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter {
    padding-block: 3.5rem;
    background: var(--color-surface-2);
    border-block: 1px solid var(--color-border);
}
.newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}
.newsletter__copy h2 { font-size: var(--text-2xl); margin-bottom: .3rem; }
.newsletter__copy p { color: var(--color-text-muted); margin: 0; }
.newsletter__form {
    display: flex;
    gap: .6rem;
    flex: 1;
    max-width: 480px;
}
.newsletter__form input {
    flex: 1;
    min-width: 0;
    padding: .8rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--text-sm);
    outline: 0;
    transition: border-color var(--fast), box-shadow var(--fast);
}
.newsletter__form input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--color-surface);
    color: var(--color-text-muted);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-block: 4rem 2.5rem;
}
.footer__brand p { font-size: var(--text-sm); max-width: 20rem; margin-top: 1rem; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer__social a {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--fast);
}
.footer__social a svg { width: 17px; height: 17px; }
.footer__social a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; transform: translateY(-3px); }

.footer__col h4 { color: var(--color-text); font-size: var(--text-md); margin-bottom: 1rem; }
.footer__col { display: flex; flex-direction: column; gap: .6rem; }
.footer__col a { color: var(--color-text-muted); font-size: var(--text-sm); transition: color var(--fast), transform var(--fast); }
.footer__col a:hover { color: var(--color-primary); transform: translateX(3px); }

.footer__bottom { border-top: 1px solid var(--color-border); }
.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: 1.2rem;
}
.footer__bottom p { margin: 0; font-size: var(--text-xs); }
.footer__pay { font-weight: 600; }

/* ==========================================================================
   MODAL QUICK VIEW
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; }
.modal.is-open { pointer-events: auto; }
.modal__scrim {
    position: absolute; inset: 0;
    background: rgba(2, 6, 23, .55);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity var(--med);
}
.modal.is-open .modal__scrim { opacity: 1; }
.modal__dialog {
    position: relative;
    width: min(860px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(24px) scale(.97);
    transition: opacity var(--med), transform var(--med);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
    position: absolute;
    top: 1rem; right: 1rem;
    z-index: 2;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv__visual {
    position: relative;
    min-height: 380px;
    display: grid;
    place-items: center;
    --pv: var(--p-600);
    --pg: linear-gradient(135deg, var(--p-50), var(--p-200));
}
.qv__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(360px 260px at 78% 4%, rgba(255, 255, 255, .55), transparent 60%);
}
.qv__visual svg { width: 130px; height: 130px; color: var(--pv); filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--pv) 35%, transparent)); }
.qv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv__badge {
    position: absolute;
    top: 1.2rem; left: 1.2rem;
    padding: .3rem .8rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, var(--grad-b), var(--grad-c));
}

.qv__body { padding: 2.2rem; display: flex; flex-direction: column; }
.qv__cat { font-size: var(--text-xs); font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: .1em; }
.qv__title { font-size: var(--text-2xl); margin: .4rem 0 .6rem; }
.qv__rating { display: flex; align-items: center; gap: .6rem; font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: 1rem; }
.qv__price { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; }
.qv__price strong { font-family: var(--font-heading); font-size: var(--text-3xl); color: var(--color-primary); }
.qv__price del { color: var(--color-text-soft); font-size: var(--text-md); }
.qv__desc { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.7; margin-bottom: 1.4rem; }
.qv__meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.qv__pill {
    padding: .4rem .85rem;
    border-radius: var(--radius-pill);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}
.qv__cta { display: flex; gap: .8rem; margin-top: auto; }

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toasts {
    position: fixed;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    width: min(420px, 92vw);
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .85rem 1.1rem;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    animation: toastIn .4s var(--ease);
}
.toast.is-out { animation: toastOut .35s var(--ease) forwards; }
.toast__icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.toast--success .toast__icon { background: color-mix(in srgb, var(--color-success) 14%, transparent); color: var(--color-success); }
.toast--info .toast__icon { background: color-mix(in srgb, var(--color-primary) 14%, transparent); color: var(--color-primary); }
.toast--danger .toast__icon { background: color-mix(in srgb, var(--color-danger) 14%, transparent); color: var(--color-danger); }
.toast__icon svg { width: 17px; height: 17px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 70;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius-md);
    color: #fff;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    box-shadow: var(--shadow-brand);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--med), transform var(--med), visibility var(--med);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .header__inner { grid-template-columns: auto 1fr auto; gap: 1rem; }
    .nav { display: none; }
    .header__burger { display: inline-grid; }
    .header__search { max-width: none; }
}

@media (max-width: 860px) {
    .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero__visual { height: 380px; max-width: 480px; margin-inline: auto; width: 100%; }
    .hero__corner { width: 22px; height: 22px; }
    .hero__corner--tl, .hero__corner--bl { left: 8px; }
    .hero__corner--tr, .hero__corner--br { right: 8px; }
    .hero__corner--tl, .hero__corner--tr { top: 8px; }
    .hero__corner--bl, .hero__corner--br { bottom: 8px; }
    .newsletter__inner { flex-direction: column; align-items: flex-start; }
    .newsletter__form { max-width: 100%; width: 100%; }
    .testimonials__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .section { padding-block: 3.5rem; }
    .qv { grid-template-columns: 1fr; }
    .qv__visual { min-height: 260px; }
    .offer__inner { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem; }
    .offer__copy p { margin-inline: auto; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .section__head { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

@media (max-width: 560px) {
    :root { --header-h: 64px; }
    .product-grid { grid-template-columns: 1fr; }
    .features__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .hero__stats { gap: 1.4rem; flex-wrap: wrap; }
    .hero { padding: 3rem 0 4rem; }
    .header__search { display: none; }
    .hero__visual { height: 340px; }
    .hero__corner { width: 18px; height: 18px; opacity: .5; }
    .hero-card--main { right: 0; }
    .footer__bottom-inner { justify-content: center; text-align: center; }
    .cs-btn { padding: .28rem .4rem; }
    .cs-btn__code { display: none; }
}

/* ==========================================================================
   CATÁLOGO + PAGINACIÓN
   ========================================================================== */
.catalog__bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.catalog__search {
    position: relative;
    flex: 1 1 320px;
    max-width: 480px;
}

.catalog__search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-soft);
    pointer-events: none;
}

.catalog__search input {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 2.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--text-md);
    font-family: inherit;
    transition: border-color var(--fast), box-shadow var(--fast);
}

.catalog__search input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.catalog__count {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: 1.5rem;
}

.cchip {
    padding: .5rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--fast);
}

.cchip:hover { border-color: var(--color-primary); color: var(--color-primary); }

.cchip.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-primary-contrast);
    box-shadow: var(--shadow-brand);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding: 0;
    list-style: none;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--fast);
}

.page-link:hover { border-color: var(--color-primary); color: var(--color-primary); }

.page-link.is-current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-primary-contrast);
    box-shadow: var(--shadow-brand);
}

.page-link.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.page-link--arrow { font-size: 1.15rem; line-height: 1; }

/* ==========================================================================
   PÁGINA DE PRODUCTO
   ========================================================================== */
.card__visual-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card__wish,
.card__quick { z-index: 2; }

.card__title-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--fast);
}

.card__title-link:hover { color: var(--color-primary); }

.crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.crumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--fast);
}

.crumb a:hover { color: var(--color-primary); }

.crumb__sep { opacity: .5; }

.pdetail__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.pdetail__visual {
    position: relative;
    aspect-ratio: 4 / 3.4;
    display: grid;
    place-items: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.pdetail__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(360px 240px at 80% 0%, rgba(255, 255, 255, .5), transparent 60%);
    opacity: .6;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.pdetail__icon {
    width: 190px;
    height: 190px;
    color: var(--pv);
    filter: drop-shadow(0 14px 22px color-mix(in srgb, var(--pv) 40%, transparent));
}

.pdetail__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdetail__badge {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    padding: .34rem .85rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, var(--grad-b), var(--grad-c));
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.pdetail__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pdetail__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    line-height: 1.15;
    margin: 0;
}

.pdetail__rating {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.pdetail__price {
    display: flex;
    align-items: baseline;
    gap: .9rem;
}

.pdetail__price del { color: var(--color-text-soft); font-size: var(--text-lg); }

.pdetail__price strong {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pdetail__desc { color: var(--color-text-muted); line-height: 1.7; margin: 0; }

.pdetail__stock {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: var(--text-sm);
}

.pdetail__stock .dot { width: 10px; height: 10px; border-radius: 50%; }

.pdetail__stock--ok { color: #10b981; }
.pdetail__stock--ok .dot { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.pdetail__stock--no { color: #ef4444; }
.pdetail__stock--no .dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }

.pdetail__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--color-surface);
}

.qty-stepper button {
    width: 44px;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--fast), background-color var(--fast);
}

.qty-stepper button:hover { background: var(--color-surface-2); color: var(--color-primary); }

.qty-stepper input {
    width: 56px;
    height: 48px;
    border: 0;
    border-inline: 1px solid var(--color-border);
    text-align: center;
    font-weight: 700;
    font-family: inherit;
    background: transparent;
    color: var(--color-text);
    -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdetail__add {
    flex: 1 1 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.pdetail__add:disabled { opacity: .55; cursor: not-allowed; }

.pdetail__wish {
    width: 52px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-text-muted);
    background: var(--color-surface);
    cursor: pointer;
    transition: color var(--fast), border-color var(--fast), background-color var(--fast);
}

.pdetail__wish:hover { color: var(--color-danger); border-color: var(--color-danger); }
.pdetail__wish.is-on { color: var(--color-danger); background: color-mix(in srgb, var(--color-danger) 10%, var(--color-surface)); }
.pdetail__wish.is-on svg { fill: currentColor; }

.pdetail__pills {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: .25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--color-border);
}

.pill {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.pill svg { width: 20px; height: 20px; color: var(--color-primary); flex: none; }

.related { margin-top: 3.5rem; }
.related .section__head { margin-bottom: 1.75rem; }

.link-more {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
}

.link-more:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .pdetail__grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pdetail__title { font-size: var(--text-2xl); }
    .pdetail__price strong { font-size: var(--text-3xl); }
}

/* ==========================================================================
   CHECKOUT
   ========================================================================== */
.checkout__grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
}

.checkout__form-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.checkout__step-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    margin-bottom: 1.25rem;
}

.checkout__form .checkout__field { margin-bottom: 1.1rem; }

.checkout__account {
    margin: -.35rem 0 1.1rem;
    padding: .7rem .9rem;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface-2));
    border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}
.checkout__account a { color: var(--color-primary); font-weight: 600; }

.checkout__form label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: .45rem;
    color: var(--color-text);
}

.checkout__form input {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    font: inherit;
    transition: border-color var(--fast), box-shadow var(--fast);
}

.checkout__form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.checkout__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout__secure {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: 1.25rem 0;
    padding: .9rem 1rem;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.checkout__secure svg { width: 20px; height: 20px; color: var(--color-primary); flex: none; margin-top: 2px; }

.checkout__secure p { margin: 0; }
.checkout__secure strong { color: var(--color-text); }

.checkout-alert {
    padding: .9rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-bottom: 1.25rem;
}

.checkout-alert--error {
    background: color-mix(in srgb, var(--color-danger) 12%, transparent);
    color: var(--color-danger);
    border: 1px solid color-mix(in srgb, var(--color-danger) 30%, transparent);
}

.checkout__summary {
    position: sticky;
    top: 92px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.checkout__items {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1.25rem;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 0;
    border-bottom: 1px dashed var(--color-border);
    font-size: var(--text-sm);
}

.checkout-item__qty {
    flex: none;
    min-width: 1.7rem;
    font-weight: 700;
    color: var(--color-primary);
}

.checkout-item__name { flex: 1; color: var(--color-text); }

.checkout-item__price { color: var(--color-text-muted); white-space: nowrap; }

.checkout__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-weight: 600;
}

.checkout__total strong { font-family: var(--font-display); font-size: var(--text-2xl); }

.checkout__summary-empty p { margin-bottom: 1rem; color: var(--color-text-muted); }

/* ==========================================================================
   PEDIDO CONFIRMADO
   ========================================================================== */
.order-ok__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.order-ok__icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-lg);
}

.order-ok__icon svg { width: 42px; height: 42px; }

.order-ok__inner h1 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    margin: .5rem 0 1rem;
}

.order-ok__inner > p { color: var(--color-text-muted); max-width: 46ch; margin: 0 0 2rem; }

.order-ok__card {
    width: 100%;
    text-align: left;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.order-ok__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.order-ok__meta span {
    display: block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-text-muted);
    margin-bottom: .3rem;
}

.order-ok__meta strong { font-size: var(--text-sm); }

.order-ok__items {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1rem;
}

.order-ok__item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 0;
    border-bottom: 1px dashed var(--color-border);
    font-size: var(--text-sm);
}

.order-ok__qty {
    flex: none;
    min-width: 1.7rem;
    font-weight: 700;
    color: var(--color-primary);
}

.order-ok__name { flex: 1; color: var(--color-text); }
.order-ok__price { color: var(--color-text-muted); white-space: nowrap; }

.order-ok__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

.order-ok__total strong { font-family: var(--font-display); font-size: var(--text-2xl); }

.order-ok__contact {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.order-ok__contact p { margin: .25rem 0; }

.order-ok__actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.75rem;
}

@media (max-width: 860px) {
    .checkout__grid { grid-template-columns: 1fr; }
    .checkout__summary { position: static; }
    .order-ok__meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__visual::after { animation: none; opacity: 0; }
    .hero__visual::before { transition: none; }
}

