/* ═══════════════════════════════════════════════════════════
   SBI Store — Estilos completos
   Replica exacta del diseño sbi-mx.mx + tienda
═══════════════════════════════════════════════════════════ */

/* ─── TOKENS (idénticos al sitio principal) ─────────────── */
:root {
  --navy:    #1B2D5B;
  --navy-d:  #0E1B38;
  --navy-l:  #243570;
  --gold:    #C8A84B;
  --gold-l:  #DEC070;
  --gold-bg: #FBF6EC;
  --white:   #FFFFFF;
  --off:     #F6F8FC;
  --g50:     #F0F3FA;
  --g100:    #E4E9F4;
  --g300:    #B2BCCF;
  --g500:    #657390;
  --g700:    #3A4B6A;
  --text:    #1B2D5B;
  --muted:   #586882;
  --bdr:     rgba(27,45,91,.08);
  --bdr-g:   rgba(200,168,75,.25);
  --sh-xs:   0 1px 4px rgba(27,45,91,.06);
  --sh-sm:   0 2px 10px rgba(27,45,91,.08);
  --sh-md:   0 6px 24px rgba(27,45,91,.11);
  --sh-lg:   0 16px 48px rgba(27,45,91,.14);
  --r:       10px;
  --rl:      16px;
  --ease:    cubic-bezier(.22,1,.36,1);
  --ff:      'Inter', sans-serif;
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--g100); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--ff); cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   NAV — idéntico al sitio principal
═══════════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 30px; left: 0; right: 0; z-index: 1000;
  height: 64px;
  padding: 0 clamp(1rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between;
  background: #0f1933;
  border-bottom: 1px solid rgba(255,255,255,.10);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
#nav.sc {
  background: rgba(255,255,255,.97);
  border-bottom-color: var(--bdr);
  box-shadow: var(--sh-sm);
  backdrop-filter: blur(12px);
}
#nav .n-logo { display: flex; align-items: center; gap: .625rem; }
#nav .n-logo img { height: 36px; width: auto; object-fit: contain; }
#nav .n-logo-t { display: flex; flex-direction: column; line-height: 1.2; }
#nav .n-logo-t b { font-size: .85rem; font-weight: 700; color: #fff; transition: color .35s; }
#nav .n-logo-t span { font-size: .58rem; font-weight: 400; letter-spacing: .05em; color: rgba(255,255,255,.55); transition: color .35s; }
#nav.sc .n-logo-t b { color: var(--navy); }
#nav.sc .n-logo-t span { color: #64748b; }

#nav .n-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
#nav .n-links a { font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.85); transition: color .3s; }
#nav .n-links a:hover { color: var(--gold); }
#nav.sc .n-links a { color: var(--navy); }
#nav.sc .n-links a:hover { color: var(--gold); }
#nav .n-links a.active { color: var(--gold); font-weight: 700; }

/* nav CTA button */
.n-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--gold); color: var(--navy-d);
  font-size: .78rem; font-weight: 700;
  padding: .5rem 1.4rem; border-radius: 20px; border: none;
  transition: background .2s, box-shadow .22s, transform .2s;
}
.n-btn:hover { background: var(--gold-l); box-shadow: 0 8px 24px rgba(200,168,75,.4); transform: translateY(-2px); }

/* cart icon in nav */
.n-cart {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.85);
  background: none; border: none; padding: .3rem .6rem;
  border-radius: 8px; transition: color .2s, background .2s;
  position: relative;
}
.n-cart:hover { color: var(--gold); background: rgba(200,168,75,.08); }
#nav.sc .n-cart { color: var(--navy); }
#nav.sc .n-cart:hover { color: var(--gold); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: var(--navy-d);
  font-size: .6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }

/* hamburger */
.hbg { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hbg span { display: block; width: 21px; height: 1.5px; background: #fff; border-radius: 2px; transition: .3s; }
#nav.sc .hbg span { background: var(--navy); }

/* mobile menu */
.mob {
  display: none; position: fixed; top: 94px; inset-inline: 0; bottom: 0;
  background: var(--white); z-index: 999; padding: 1.5rem;
  flex-direction: column; border-top: 1px solid var(--bdr); overflow-y: auto;
}
.mob.open { display: flex; }
.mob a { font-size: .95rem; font-weight: 600; color: var(--navy); padding: .875rem 0; border-bottom: 1px solid var(--g100); display: block; }
.mob .mc { margin-top: 1.25rem; background: var(--navy); color: var(--white); text-align: center; border-radius: 9px; padding: .875rem; border-bottom: none; }
.mob a.active { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   FOOTER — idéntico al sitio principal
═══════════════════════════════════════════════════════════ */
footer {
  background: linear-gradient(135deg, #0E1B38 0%, #1B2D5B 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2rem clamp(1rem, 5vw, 4rem);
}
.ft-in { max-width: 1060px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; }
.ft-brand { display: flex; align-items: center; gap: .625rem; }
.ft-brand img { height: 44px; width: 44px; object-fit: contain; border-radius: 6px; background: #fff; padding: 3px; opacity: .95; }
.ft-brand-t b { display: block; font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.8); }
.ft-brand-t span { font-size: .6rem; color: rgba(255,255,255,.3); letter-spacing: .04em; }
.ft-links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.ft-links a { font-size: .72rem; color: rgba(255,255,255,.3); display: flex; align-items: center; gap: .3rem; transition: color .18s; }
.ft-links a:hover { color: var(--gold); }
.ft-copy { font-size: .65rem; color: rgba(255,255,255,.22); }

/* Bloque legal + métodos de pago */
.ft-bottom {
  max-width: 1060px; margin: 1.5rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.ft-legal { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.ft-legal a { font-size: .68rem; color: rgba(255,255,255,.35); transition: color .18s; }
.ft-legal a:hover { color: var(--gold); }
.ft-pay { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.ft-pay > span:first-child { font-size: .62rem; color: rgba(255,255,255,.28); margin-right: .25rem; }
.pay-badge {
  font-size: .58rem; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px; padding: .22rem .5rem; white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   PÁGINAS LEGALES
═══════════════════════════════════════════════════════════ */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: calc(94px + 3rem) clamp(1rem,5vw,2rem) 4rem; }
.legal-wrap h1 { font-size: 1.75rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin-bottom: .5rem; }
.legal-date { font-size: .75rem; color: var(--muted); margin-bottom: 2.25rem; }
.legal-wrap h2 { font-size: 1.02rem; font-weight: 700; color: var(--navy); margin: 2rem 0 .75rem; }
.legal-wrap p, .legal-wrap li { font-size: .875rem; color: var(--g700); line-height: 1.75; margin-bottom: .75rem; }
.legal-wrap ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-wrap a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); }
.legal-note {
  background: var(--gold-bg); border: 1px solid var(--bdr-g);
  border-radius: 10px; padding: 1rem 1.25rem; font-size: .8rem; margin: 1.5rem 0;
}

/* ═══════════════════════════════════════════════════════════
   FLOATING WHATSAPP
═══════════════════════════════════════════════════════════ */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; align-items: center; gap: .5rem;
  background: #25D366; color: #fff;
  padding: .75rem 1.2rem; border-radius: 50px;
  font-size: .82rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s; white-space: nowrap;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
@media (max-width: 600px) { .wa-fab span { display: none; } .wa-fab { padding: .85rem; } }

/* FAB secundario: navegación sitio ↔ tienda (arriba de WhatsApp) */
.store-fab {
  position: fixed; bottom: 86px; right: 24px; z-index: 9999;
  display: flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--navy-d);
  padding: .75rem 1.2rem; border-radius: 50px; text-decoration: none;
  font-family: var(--ff); font-size: .82rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(200,168,75,.45);
  transition: transform .2s, box-shadow .2s; white-space: nowrap;
}
.store-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 28px rgba(200,168,75,.55); background: var(--gold-l); }
@media (max-width: 600px) { .store-fab span { display: none; } .store-fab { padding: .85rem; bottom: 80px; } }

/* ═══════════════════════════════════════════════════════════
   SHARED UTILITIES
═══════════════════════════════════════════════════════════ */
.sec { padding: clamp(4rem,8vw,7rem) clamp(1rem,5vw,4rem); }
.sec.pt-nav { padding-top: calc(94px + clamp(2rem,4vw,4rem)); }
.ctr { max-width: 1060px; margin: 0 auto; }
.sec-lbl {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .65rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.sec-lbl::before { content: ''; width: 14px; height: 2px; background: var(--gold); border-radius: 2px; }
.sec-h { font-size: clamp(1.6rem,3.8vw,2.6rem); font-weight: 800; color: var(--navy); line-height: 1.12; letter-spacing: -.03em; }
.sec-sub { font-size: .9rem; color: var(--muted); line-height: 1.78; font-weight: 300; max-width: 560px; margin-top: .625rem; }

/* Buttons */
.btn-gold {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--gold); color: var(--navy-d);
  font-weight: 700; font-size: .825rem;
  padding: .75rem 1.6rem; border-radius: 8px; border: none;
  transition: background .18s, box-shadow .22s, transform .18s;
}
.btn-gold:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200,168,75,.32); }
.btn-gold-lg {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--gold); color: var(--navy-d);
  font-weight: 700; font-size: .9rem;
  padding: .85rem 2rem; border-radius: 30px; border: none;
  transition: background .2s, box-shadow .24s, transform .2s;
}
.btn-gold-lg:hover { background: var(--gold-l); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(200,168,75,.42); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; color: rgba(255,255,255,.85);
  font-weight: 500; font-size: .825rem;
  padding: .75rem 1.6rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.18);
  transition: border-color .18s, background .18s;
}
.btn-ghost:hover { border-color: rgba(200,168,75,.6); background: rgba(200,168,75,.07); }
.btn-navy {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--navy); color: var(--white);
  font-weight: 700; font-size: .825rem;
  padding: .75rem 1.75rem; border-radius: 8px; border: none;
  transition: background .18s, box-shadow .22s, transform .18s;
}
.btn-navy:hover { background: var(--navy-l); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(27,45,91,.28); }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--g100) 25%, var(--g50) 50%, var(--g100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══════════════════════════════════════════════════════════
   STORE HERO — banner página principal de tienda
═══════════════════════════════════════════════════════════ */
.store-hero {
  min-height: 70vh; display: flex; align-items: center;
  padding: calc(94px + 4rem) clamp(1rem,5vw,4rem) 5rem;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0E1B38 0%, #1B2D5B 45%, #1a2d54 75%, #0e1b38 100%);
}
.store-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.s-orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px);
}
.s-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(200,168,75,.16) 0%, transparent 70%); top: -150px; right: -100px; animation: drift1 12s ease-in-out infinite; }
.s-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(27,45,91,.5) 0%, transparent 70%); bottom: -80px; left: -60px; animation: drift2 15s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,30px) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-25px) scale(1.05); } }

.store-hero-in { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; width: 100%; }
.store-hero-eye {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-l); margin-bottom: 1.375rem;
}
.store-hero-eye::before { content: ''; width: 18px; height: 1.5px; background: var(--gold); }
.store-hero-title { font-size: clamp(2.2rem,5vw,3.8rem); font-weight: 800; color: #fff; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 1rem; }
.store-hero-title em { font-style: normal; color: var(--gold-l); }
.store-hero-sub { font-size: .95rem; color: rgba(255,255,255,.58); line-height: 1.8; font-weight: 300; max-width: 520px; margin-bottom: 2.25rem; }
.store-hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   COLLECTIONS GRID
═══════════════════════════════════════════════════════════ */
.collections-sec {
  background: var(--off);
  padding: clamp(3rem,6vw,5rem) clamp(1rem,5vw,4rem);
}
.col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; margin-top: 2.5rem;
}
.col-card {
  background: var(--white); border: 1px solid var(--g100); border-radius: var(--rl);
  overflow: hidden; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .25s;
  display: flex; flex-direction: column; text-align: center;
  text-decoration: none;
}
.col-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--bdr-g); }
.col-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--g50); }
.col-card-img-placeholder {
  width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--navy-d), var(--navy));
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.col-card-body { padding: 1rem .875rem 1.125rem; }
.col-card h3 { font-size: .875rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.col-card p { font-size: .72rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   PRODUCT GRID (catálogo y destacados)
═══════════════════════════════════════════════════════════ */
.products-sec { background: var(--white); padding: clamp(3rem,6vw,5rem) clamp(1rem,5vw,4rem); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.125rem; margin-top: 2.5rem;
}
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

.prod-card {
  background: var(--white); border: 1px solid var(--g100); border-radius: var(--rl);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .25s;
  position: relative;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--bdr-g); }
.prod-card-badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  background: var(--gold); color: var(--navy-d);
  font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 20px;
}
.prod-card-badge.sale { background: #e5414b; color: #fff; }
.prod-card-img-wrap {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--g50);
}
.prod-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.prod-card:hover .prod-card-img-wrap img { transform: scale(1.05); }
.prod-card-img-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  background: linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--gold);
}
.prod-card-body { padding: 1rem 1.125rem 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.prod-card-vendor { font-size: .65rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prod-card-title { font-size: .875rem; font-weight: 700; color: var(--navy); line-height: 1.35; flex: 1; }
.prod-card-title a { color: inherit; }
.prod-card-title a:hover { color: var(--gold); }
.prod-card-price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; }
.prod-card-price .price { font-size: 1rem; font-weight: 800; color: var(--navy); }
.prod-card-price .compare { font-size: .78rem; color: var(--muted); text-decoration: line-through; }
.prod-card-actions { margin-top: .75rem; }
.btn-add-cart {
  width: 100%; padding: .65rem; border-radius: 8px;
  background: var(--navy); color: var(--white);
  font-size: .8rem; font-weight: 700; border: none;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.btn-add-cart:hover { background: var(--gold); color: var(--navy-d); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200,168,75,.28); }
.btn-add-cart:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-add-cart.loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: .35rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   CATALOG PAGE (con sidebar)
═══════════════════════════════════════════════════════════ */
.catalog-wrap {
  max-width: 1060px; margin: 0 auto; display: grid;
  grid-template-columns: 220px 1fr; gap: 2rem; align-items: start;
  padding: calc(94px + 2rem) clamp(1rem,5vw,4rem) 4rem;
}
@media (max-width: 768px) { .catalog-wrap { grid-template-columns: 1fr; } }

.catalog-sidebar { position: sticky; top: 80px; }
.sidebar-block { background: var(--white); border: 1px solid var(--g100); border-radius: var(--rl); padding: 1.25rem; margin-bottom: 1rem; }
.sidebar-block h4 { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 1rem; }
.filter-list { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.filter-item {
  padding: .5rem .75rem; border-radius: 8px; cursor: pointer;
  font-size: .8rem; color: var(--muted); font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .15s, color .15s;
}
.filter-item:hover { background: var(--g50); color: var(--navy); }
.filter-item.active { background: var(--navy); color: var(--white); }
.filter-count { font-size: .65rem; background: rgba(255,255,255,.18); padding: .1rem .4rem; border-radius: 99px; }
.filter-item:not(.active) .filter-count { background: var(--g100); color: var(--muted); }

.catalog-main {}
.catalog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem; }
.catalog-title { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.catalog-count { font-size: .78rem; color: var(--muted); }
.search-bar {
  display: flex; align-items: center; gap: .5rem;
  background: var(--white); border: 1.5px solid var(--g100); border-radius: 10px;
  padding: .55rem .875rem; width: 100%; max-width: 360px;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,168,75,.12); }
.search-bar input { flex: 1; border: none; outline: none; font-family: var(--ff); font-size: .82rem; color: var(--navy); background: transparent; }
.search-bar svg { color: var(--g300); flex-shrink: 0; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .catalog-grid { grid-template-columns: 1fr; } }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.page-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--g100);
  background: var(--white); color: var(--navy); font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s; cursor: pointer;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
═══════════════════════════════════════════════════════════ */
.product-page {
  max-width: 1060px; margin: 0 auto;
  padding: calc(94px + 2.5rem) clamp(1rem,5vw,4rem) 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
@media (max-width: 768px) { .product-page { grid-template-columns: 1fr; gap: 2rem; } }

/* Gallery */
.product-gallery { position: sticky; top: 80px; }
.gallery-main {
  aspect-ratio: 1; border-radius: var(--rl); overflow: hidden;
  border: 1px solid var(--g100); background: var(--g50);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .625rem; overflow-x: auto; padding-bottom: .25rem; }
.gallery-thumb {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 8px;
  border: 2px solid transparent; overflow: hidden; cursor: pointer;
  background: var(--g50); transition: border-color .2s;
}
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.product-info {}
.product-breadcrumb { font-size: .72rem; color: var(--muted); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .35rem; }
.product-breadcrumb a { color: var(--muted); transition: color .2s; }
.product-breadcrumb a:hover { color: var(--gold); }
.product-breadcrumb span { color: var(--g300); }
.product-title { font-size: clamp(1.4rem,2.8vw,2rem); font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 1rem; }
.product-price-row { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.25rem; }
.product-price { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.product-compare { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.product-discount { background: #e5414b; color: #fff; font-size: .68rem; font-weight: 800; padding: .2rem .55rem; border-radius: 20px; }
.product-iva { font-size: .72rem; color: var(--muted); margin-bottom: 1.5rem; }

/* Variants */
.variant-group { margin-bottom: 1.25rem; }
.variant-label { font-size: .75rem; font-weight: 700; color: var(--navy); margin-bottom: .625rem; display: flex; gap: .35rem; align-items: center; }
.variant-label span { font-weight: 400; color: var(--muted); }
.variant-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-btn {
  padding: .45rem 1rem; border-radius: 8px; border: 1.5px solid var(--g100);
  font-size: .8rem; font-weight: 600; color: var(--navy); background: var(--white);
  cursor: pointer; transition: all .18s;
}
.variant-btn:hover { border-color: var(--gold); color: var(--gold); }
.variant-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.variant-btn:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* Qty + Add */
.qty-add-row { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; margin-bottom: 1.25rem; }
.qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--g100); border-radius: 10px; overflow: hidden; }
.qty-btn {
  width: 40px; height: 44px; border: none; background: none;
  font-size: 1.2rem; color: var(--navy); transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--g50); }
.qty-val { width: 44px; text-align: center; font-size: .9rem; font-weight: 700; color: var(--navy); padding: 0; border: none; outline: none; border-left: 1.5px solid var(--g100); border-right: 1.5px solid var(--g100); }
.btn-add-cart-lg {
  flex: 1; padding: .85rem 1.5rem; border-radius: 10px;
  background: var(--gold); color: var(--navy-d);
  font-size: .9rem; font-weight: 800; border: none;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .18s, transform .18s, box-shadow .22s;
}
.btn-add-cart-lg:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200,168,75,.35); }
.btn-add-cart-lg:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.product-description { font-size: .875rem; color: var(--muted); line-height: 1.8; font-weight: 300; margin-top: 1.25rem; }
.product-description h2, .product-description h3 { color: var(--navy); font-size: 1rem; font-weight: 700; margin: 1rem 0 .5rem; }
.product-description ul { padding-left: 1.25rem; }
.product-description li { margin-bottom: .3rem; }

/* CTA Instalación */
.install-cta {
  background: linear-gradient(135deg, var(--navy-d), var(--navy));
  border-radius: var(--rl); padding: 1.5rem; margin-top: 1.75rem;
  display: flex; align-items: flex-start; gap: 1rem;
}
.install-cta-ico { font-size: 1.75rem; flex-shrink: 0; }
.install-cta h4 { font-size: .875rem; font-weight: 700; color: #fff; margin-bottom: .35rem; }
.install-cta p { font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.55; }
.install-cta-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; font-weight: 700; color: var(--gold);
  margin-top: .75rem;
}
.install-cta-link:hover { color: var(--gold-l); }

/* ═══════════════════════════════════════════════════════════
   VALUE BANNER
═══════════════════════════════════════════════════════════ */
.value-banner {
  background: linear-gradient(135deg, #0E1B38 0%, #1B2D5B 50%, #0e1b38 100%);
  padding: clamp(3rem,6vw,5rem) clamp(1rem,5vw,4rem);
  position: relative; overflow: hidden; text-align: center;
}
.value-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 50px 50px; pointer-events: none;
}
.value-banner-in { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.value-banner h2 { font-size: clamp(1.5rem,3.5vw,2.4rem); font-weight: 800; color: #fff; margin-bottom: 1rem; line-height: 1.15; }
.value-banner h2 em { font-style: normal; color: var(--gold-l); }
.value-banner p { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.8; margin-bottom: 2rem; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; text-align: left; }
@media (max-width: 640px) { .value-grid { grid-template-columns: 1fr; } }
.value-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--rl); padding: 1.375rem;
  transition: border-color .25s, background .25s;
}
.value-item:hover { border-color: rgba(200,168,75,.3); background: rgba(255,255,255,.06); }
.value-item-ico { font-size: 1.5rem; margin-bottom: .75rem; }
.value-item h4 { font-size: .825rem; font-weight: 700; color: #fff; margin-bottom: .35rem; }
.value-item p { font-size: .75rem; color: rgba(255,255,255,.45); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   CART PAGE
═══════════════════════════════════════════════════════════ */
.cart-page {
  max-width: 1060px; margin: 0 auto;
  padding: calc(94px + 2rem) clamp(1rem,5vw,4rem) 4rem;
  display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start;
}
@media (max-width: 960px) { .cart-page { grid-template-columns: 1fr; } }

.cart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.cart-title { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.cart-clear { font-size: .78rem; color: var(--muted); background: none; border: none; padding: .3rem .5rem; cursor: pointer; transition: color .2s; }
.cart-clear:hover { color: #e5414b; }

.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; align-items: start;
  background: var(--white); border: 1px solid var(--g100); border-radius: var(--rl); padding: 1rem;
  transition: border-color .2s;
}
.cart-item:hover { border-color: var(--bdr-g); }
.cart-item-img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; background: var(--g50); flex-shrink: 0; }
.cart-item-img-placeholder { width: 80px; height: 80px; border-radius: 8px; background: linear-gradient(135deg, var(--navy-d), var(--navy)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.cart-item-info {}
.cart-item-vendor { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .2rem; }
.cart-item-name { font-size: .875rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; line-height: 1.35; }
.cart-item-variant { font-size: .72rem; color: var(--muted); }
.cart-item-price { font-size: .875rem; font-weight: 700; color: var(--navy); }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.cart-qty { display: flex; align-items: center; border: 1.5px solid var(--g100); border-radius: 8px; overflow: hidden; }
.cart-qty-btn { width: 30px; height: 30px; border: none; background: none; font-size: 1rem; color: var(--navy); transition: background .15s; display: flex; align-items: center; justify-content: center; }
.cart-qty-btn:hover { background: var(--g50); }
.cart-qty-val { width: 32px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--navy); border-left: 1.5px solid var(--g100); border-right: 1.5px solid var(--g100); padding: .25rem 0; }
.cart-remove { background: none; border: none; font-size: .7rem; color: var(--muted); cursor: pointer; transition: color .2s; padding: .25rem; }
.cart-remove:hover { color: #e5414b; }

/* Cart empty state */
.cart-empty { text-align: center; padding: 4rem 2rem; }
.cart-empty-ico { font-size: 3.5rem; margin-bottom: 1.25rem; }
.cart-empty h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.cart-empty p { font-size: .875rem; color: var(--muted); margin-bottom: 1.75rem; }

/* Cart summary */
.cart-summary {
  background: var(--white); border: 1px solid var(--g100); border-radius: var(--rl);
  padding: 1.5rem; position: sticky; top: 80px;
}
.cart-summary h3 { font-size: .875rem; font-weight: 700; color: var(--navy); margin-bottom: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .875rem; }
.summary-label { font-size: .82rem; color: var(--muted); }
.summary-val { font-size: .82rem; font-weight: 600; color: var(--navy); }
.summary-divider { border: none; border-top: 1px solid var(--g100); margin: 1rem 0; }
.summary-total-label { font-size: .9rem; font-weight: 700; color: var(--navy); }
.summary-total-val { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.btn-checkout {
  width: 100%; padding: 1rem; border-radius: 10px; border: none;
  background: var(--gold); color: var(--navy-d);
  font-size: .9rem; font-weight: 800; margin-top: 1.25rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .18s, transform .18s, box-shadow .22s;
}
.btn-checkout:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200,168,75,.35); }
.btn-checkout:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-continue { width: 100%; padding: .75rem; border-radius: 10px; border: 1.5px solid var(--g100); background: none; color: var(--navy); font-size: .82rem; font-weight: 600; margin-top: .625rem; transition: border-color .18s, background .18s; }
.btn-continue:hover { border-color: var(--navy); background: var(--g50); }

.summary-note { font-size: .68rem; color: var(--muted); text-align: center; margin-top: 1rem; line-height: 1.6; }
.secure-icons { display: flex; justify-content: center; gap: .75rem; margin-top: .875rem; flex-wrap: wrap; }
.secure-icon { font-size: .65rem; color: var(--muted); display: flex; align-items: center; gap: .25rem; }

/* Toast notificación */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 10000; background: var(--navy); color: #fff;
  padding: .875rem 1.5rem; border-radius: 10px;
  font-size: .82rem; font-weight: 600;
  box-shadow: var(--sh-lg); opacity: 0;
  transition: opacity .3s, transform .3s var(--ease);
  pointer-events: none; white-space: nowrap;
  display: flex; align-items: center; gap: .5rem;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #1a5c36; }
.toast.error   { background: #7c1d1d; }

/* ═══════════════════════════════════════════════════════════
   RELATED PRODUCTS
═══════════════════════════════════════════════════════════ */
.related-sec { background: var(--off); padding: clamp(3rem,6vw,5rem) clamp(1rem,5vw,4rem); }
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem;
}
@media (max-width: 900px)  { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .related-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE COMMON
═══════════════════════════════════════════════════════════ */
#nav .n-logo { flex-shrink: 0; }
#nav .n-logo-t b, #nav .n-logo-t span { white-space: nowrap; }
@media (max-width: 860px) {
  #nav .n-links { display: none; }
  .hbg { display: flex; }
}

/* Page transition fade */
.page-fade { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════
   BARRA DE ANUNCIOS
═══════════════════════════════════════════════════════════ */
.announce {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: 30px; display: flex; align-items: center; justify-content: center;
  gap: .6rem; padding: 0 1rem;
  background: #0A1428; border-bottom: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.72); font-size: .66rem; font-weight: 500;
  letter-spacing: .05em; white-space: nowrap; overflow: hidden;
}
.announce-sep { color: var(--gold); }
@media (max-width: 760px) { .announce span:nth-child(n+4) { display: none; } }
@media (max-width: 470px) { .announce span:nth-child(n+2) { display: none; } }

/* ═══════════════════════════════════════════════════════════
   NEWSLETTER FOOTER
═══════════════════════════════════════════════════════════ */
.ft-news {
  max-width: 1060px; margin: 1.5rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.ft-news-t b { display: block; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.85); }
.ft-news-t span { font-size: .68rem; color: rgba(255,255,255,.35); }
.nl-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.nl-form input {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-family: var(--ff); font-size: .78rem;
  padding: .55rem .9rem; border-radius: 8px; width: 220px; outline: none;
  transition: border-color .2s;
}
.nl-form input::placeholder { color: rgba(255,255,255,.3); }
.nl-form input:focus { border-color: var(--gold); }
.nl-btn {
  background: var(--gold); color: var(--navy-d); border: none;
  font-family: var(--ff); font-weight: 700; font-size: .75rem;
  padding: .58rem 1.1rem; border-radius: 8px; cursor: pointer; transition: background .2s;
}
.nl-btn:hover { background: var(--gold-l); }
.nl-btn:disabled { opacity: .6; cursor: wait; }
.nl-msg { font-size: .7rem; display: block; width: 100%; min-height: 1em; }
.nl-msg.ok { color: #7ddf9a; }
.nl-msg.err { color: #ff9d9d; }
