*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#f5f5f7;
  --surface:#fff;
  --text:#1d1d1f;
  --text2:#6e6e73;
  --text3:#6c6c70;
  --border:rgba(0,0,0,.08);
  --border-s:rgba(0,0,0,.15);
  --radius:18px;
  --hh:52px;
  --shadow:0 2px 16px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.04);
  --shadow-up:0 8px 32px rgba(0,0,0,.10),0 2px 8px rgba(0,0,0,.06);
}
/* ── Dark theme ─────────────────────────────────────────────────── */
[data-theme="dark"]{
  --bg:#111112;--surface:#1c1c1e;--text:#f5f5f7;--text2:#98989d;--text3:#969699;
  --border:rgba(255,255,255,.08);--border-s:rgba(255,255,255,.14);
  --shadow:0 2px 16px rgba(0,0,0,.4),0 1px 3px rgba(0,0,0,.3);
  --shadow-up:0 8px 32px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.3);
}
[data-theme="dark"] .site-header{background:rgba(17,17,18,.88)}
[data-theme="dark"] .btn-dark{background:var(--text);color:var(--bg)}
[data-theme="dark"] .product-card{border-color:var(--border)}
[data-theme="dark"] .pd-lightbox{background:rgba(0,0,0,.96)}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;min-height:100vh}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header{position:sticky;top:0;z-index:100;height:var(--hh);
  background:rgba(255,255,255,.88);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);display:flex;align-items:center}
.header-inner{width:100%;max-width:980px;margin:0 auto;padding:0 24px;
  display:flex;align-items:center;gap:28px}
.header-logo{display:flex;align-items:center;gap:8px;font-size:17px;
  font-weight:700;color:var(--text);letter-spacing:-.3px;flex-shrink:0}
.header-logo img{height:26px;width:auto}
.header-logo span{display:none}
.header-nav{display:flex;gap:22px;margin-left:auto;align-items:center}
.header-nav a{font-size:13px;font-weight:500;color:var(--text2);transition:color .15s}
.header-nav a:hover,.header-nav a.active{color:var(--text)}
.cart-btn{display:none;align-items:center;gap:6px;background:none;border:none;
  font-size:13px;font-weight:500;color:var(--text2);cursor:pointer;transition:color .15s;padding:0}
.cart-btn.has-items{display:flex}
.cart-btn:hover{color:var(--text)}
.cart-count{background:var(--text);color:#fff;border-radius:50%;
  min-width:18px;height:18px;display:none;align-items:center;justify-content:center;
  font-size:10px;font-weight:700;padding:0 4px}
.cart-count.visible{display:flex}
@media(max-width:600px){
  .header-inner{padding:0 18px;gap:12px}
  .header-logo{gap:6px}
  .header-logo img{height:20px}
  .header-logo span{display:none}
  .header-nav{gap:20px}
  .header-nav a[href="contacto"],.header-nav a[href="contacto.html"]{display:none}
  .user-menu-name{display:none}
}

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn-pill{display:inline-flex;align-items:center;gap:6px;padding:9px 22px;
  border-radius:30px;border:1.5px solid var(--border-s);font-size:14px;
  font-weight:500;color:var(--text);background:transparent;cursor:pointer;
  transition:all .18s;white-space:nowrap;text-decoration:none}
.btn-pill:hover{background:var(--text);color:#fff;border-color:var(--text);
  transform:translateY(-1px);box-shadow:0 4px 14px rgba(0,0,0,.12)}
.btn-dark{display:inline-flex;align-items:center;justify-content:center;
  padding:13px 28px;border-radius:12px;background:var(--text);color:#fff;
  border:none;font-size:15px;font-weight:600;cursor:pointer;
  transition:all .18s;letter-spacing:-.1px;text-decoration:none}
.btn-dark:hover:not(:disabled){background:#3a3a3c;transform:translateY(-1px);
  box-shadow:0 4px 16px rgba(0,0,0,.15)}
.btn-dark:disabled{opacity:.4;cursor:not-allowed}
.btn-dark.full{width:100%}
.btn-ghost{display:inline-flex;align-items:center;justify-content:center;
  padding:12px 22px;border-radius:12px;background:transparent;
  border:1.5px solid var(--border-s);font-size:14px;font-weight:500;
  color:var(--text2);cursor:pointer;transition:all .18s}
.btn-ghost:hover{border-color:var(--text);color:var(--text)}
.btn-ghost.full{width:100%}

/* ── Hero split (home) ──────────────────────────────────────────────── */
.hs{background:var(--bg);overflow:hidden}
.hs--rev{background:var(--surface)}
.hs-inner{max-width:980px;margin:0 auto;padding:84px 24px;display:flex;align-items:center;gap:64px}
.hs--rev .hs-inner{flex-direction:row-reverse}
.hs-text{flex:1;min-width:0}
.hs-eye{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--text3);margin-bottom:14px}
.hs-title{font-size:clamp(36px,5.5vw,58px);font-weight:700;letter-spacing:-.04em;line-height:1.05;margin-bottom:16px}
.hs-sub{font-size:clamp(14px,1.8vw,17px);color:var(--text2);line-height:1.65;margin-bottom:30px}
.hs-visual{flex:1;display:flex;justify-content:center;align-items:center;min-height:260px}
.hs-img{width:100%;max-width:400px;max-height:360px;object-fit:contain;aspect-ratio:4/3;
  filter:drop-shadow(0 20px 48px rgba(0,0,0,.10))}
@media(max-width:660px){
  .hs-inner{flex-direction:column-reverse !important;padding:36px 20px 48px;gap:20px;text-align:center;align-items:center}
  .hs-visual{min-height:auto}
  .hs-img{max-width:220px}
}

/* ── Banner slider ───────────────────────────────────────────────────── */
.site-banner{position:relative;overflow:hidden;background:#000;line-height:0}
.banner-viewport{overflow:hidden;min-height:200px}
.banner-track{display:flex;transition:transform .55s cubic-bezier(.4,0,.2,1)}
.banner-slide{min-width:100%;max-height:460px;width:100%;object-fit:cover}
.banner-dots{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);
  display:flex;gap:7px;z-index:2}
.banner-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.45);
  border:none;cursor:pointer;padding:0;transition:background .2s}
.banner-dot.active{background:#fff}
.banner-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  background:rgba(0,0,0,.32);color:#fff;border:none;width:40px;height:40px;
  border-radius:50%;cursor:pointer;font-size:22px;line-height:40px;text-align:center;
  transition:background .2s}
.banner-nav:hover{background:rgba(0,0,0,.6)}
.banner-prev{left:14px}.banner-next{right:14px}
@media(max-width:500px){.banner-nav{display:none}}

/* ── Catalog layout ──────────────────────────────────────────────────── */
.catalog-wrap{max-width:1200px;margin:0 auto;padding:36px 22px 80px;
  display:grid;grid-template-columns:220px 1fr;gap:40px;align-items:start}
@media(max-width:780px){.catalog-wrap{grid-template-columns:1fr;padding-top:20px}}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.sidebar{position:sticky;top:calc(var(--hh) + 18px)}
.sidebar-head{font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.07em;color:var(--text3);margin-bottom:10px}
.cat-list,.cat-children{list-style:none}
.cat-btn{width:100%;text-align:left;background:none;border:none;
  padding:7px 10px;font-size:14px;font-weight:500;color:var(--text2);
  cursor:pointer;border-radius:10px;transition:all .14s;
  display:flex;align-items:center;justify-content:space-between;gap:6px}
.cat-btn:hover{background:rgba(0,0,0,.05);color:var(--text)}
.cat-btn.active{background:var(--text);color:#fff}
.cat-chevron{font-size:11px;transition:transform .2s;flex-shrink:0}
.cat-btn.expanded .cat-chevron{transform:rotate(90deg)}
.cat-children{padding-left:12px;overflow:hidden;max-height:0;transition:max-height .35s ease}
.cat-children.open{max-height:3000px}
.cat-child-btn.expanded .cat-chevron{transform:rotate(90deg)}
.cat-child-btn{width:100%;text-align:left;background:none;border:none;
  padding:6px 10px;font-size:13px;color:var(--text2);cursor:pointer;
  border-radius:8px;transition:all .14s}
.cat-child-btn:hover{background:rgba(0,0,0,.05);color:var(--text)}
.cat-child-btn.active{color:var(--text);font-weight:600}

/* Mobile sidebar */
.filter-toggle{display:none;align-items:center;gap:8px;padding:8px 16px;
  border-radius:20px;border:1.5px solid var(--border-s);font-size:13px;
  font-weight:500;background:var(--surface);cursor:pointer;color:var(--text);margin-bottom:14px}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:190}
@media(max-width:780px){
  .filter-toggle{display:flex}
  .sidebar{position:fixed;top:0;left:0;bottom:0;width:260px;background:var(--surface);
    z-index:200;padding:24px 16px;overflow-y:auto;
    box-shadow:4px 0 24px rgba(0,0,0,.12);
    transform:translateX(-100%);transition:transform .28s cubic-bezier(.4,0,.2,1)}
  .sidebar.open{transform:translateX(0)}
  .sidebar-overlay.open{display:block}
}

/* ── Catalog header bar ──────────────────────────────────────────────── */
.catalog-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.catalog-title{font-size:22px;font-weight:700;letter-spacing:-.3px;margin-right:auto}
.catalog-count{font-size:13px;color:var(--text3)}
.sort-select{font-size:13px;padding:6px 10px;border:1.5px solid var(--border);border-radius:8px;
  background:var(--card);color:var(--text);cursor:pointer;outline:none}
.sort-select:focus{border-color:var(--accent)}
.search-wrap{display:flex;align-items:center;gap:8px;background:var(--surface);
  border:1.5px solid var(--border);border-radius:10px;padding:7px 12px;transition:border .15s}
.search-wrap:focus-within{border-color:var(--text)}
.search-wrap svg{flex-shrink:0;color:var(--text3)}
.search-wrap input{border:none;outline:none;font-size:14px;background:transparent;
  color:var(--text);width:150px}
.search-wrap input::placeholder{color:var(--text3)}
@media(max-width:520px){.search-wrap input{width:100px}}

/* ── Product grid ────────────────────────────────────────────────────── */
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px;min-height:60vh}
@media(max-width:600px){
  .products-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .product-card-img{padding:12px}
  .product-card-body{padding:8px 10px 10px}
  .product-card-name{font-size:12px}
}
.products-loader{display:flex;justify-content:center;padding:28px}
.spinner{width:26px;height:26px;border:3px solid var(--border);
  border-top-color:var(--text);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.products-end{text-align:center;padding:28px;color:var(--text3);font-size:13px}
.products-empty{text-align:center;padding:60px 20px;color:var(--text3);font-size:14px;
  grid-column:1/-1}

/* ── Product card ────────────────────────────────────────────────────── */
.product-card{background:var(--surface);border-radius:var(--radius);overflow:hidden;
  cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:var(--shadow);
  border:1px solid var(--border);text-decoration:none;color:inherit;display:block}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-up)}
.product-card-img{width:100%;aspect-ratio:1;object-fit:contain;padding:18px;background:var(--bg)}
.product-card-img-ph{width:100%;aspect-ratio:1;display:flex;align-items:center;
  justify-content:center;font-size:36px;background:var(--bg)}
.product-card-body{padding:10px 13px 13px}
.product-card-name{font-size:12.5px;font-weight:500;line-height:1.35;color:var(--text);
  margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-card-price{font-size:15px;font-weight:700;color:var(--text)}
.badge-agotado{display:inline-block;background:#f2f2f7;color:var(--text3);
  font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  padding:2px 7px;border-radius:6px}

/* ── Product detail — rediseño ──────────────────────────────────────── */
.pd-crumb{max-width:980px;margin:0 auto;padding:20px 22px 0;
  display:flex;align-items:center;gap:5px;flex-wrap:wrap;
  font-size:12px;color:var(--text3)}
.pd-crumb a:hover{color:var(--text);text-decoration:underline}
.pd-crumb-sep{color:var(--text3)}

.pd-grid{max-width:980px;margin:0 auto;padding:24px 22px 48px;
  display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:start}
@media(max-width:720px){.pd-grid{grid-template-columns:1fr;gap:24px;padding:16px 16px 32px}}

.pd-gallery{position:sticky;top:calc(var(--hh)+16px)}
.pd-main-wrap{position:relative;border-radius:var(--radius);overflow:hidden;
  background:var(--surface);border:1px solid var(--border);
  aspect-ratio:1;display:flex;align-items:center;justify-content:center;
  margin-bottom:10px;cursor:zoom-in}
.pd-main-wrap:hover .pd-zoom-label{opacity:1}
.pd-zoom-label{position:absolute;bottom:12px;right:12px;background:rgba(0,0,0,.45);
  color:#fff;font-size:10px;font-weight:600;padding:4px 9px;border-radius:20px;
  opacity:0;transition:opacity .2s;pointer-events:none;letter-spacing:.03em}
.pd-main-img{width:90%;height:90%;object-fit:contain;transition:transform .3s ease}
.pd-main-wrap:hover .pd-main-img{transform:scale(1.04)}
.pd-main-ph{font-size:64px;color:var(--text3)}
.pd-thumbs{display:flex;gap:8px;flex-wrap:wrap}
.pd-thumb{width:60px;height:60px;object-fit:contain;border-radius:10px;
  border:1.5px solid var(--border);padding:6px;background:var(--surface);
  cursor:pointer;transition:border-color .14s;flex-shrink:0}
.pd-thumb:hover,.pd-thumb.active{border-color:var(--text)}

.pd-info{display:flex;flex-direction:column;gap:0}
.pd-name{font-size:clamp(24px,4vw,32px);font-weight:700;letter-spacing:-.04em;
  line-height:1.1;margin-bottom:14px}
.pd-price{font-size:32px;font-weight:800;letter-spacing:-.04em;color:var(--text);margin-bottom:8px}
.pd-price-wrap{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.pd-price-original{font-size:20px;color:#e11d48;text-decoration:line-through;font-weight:500;letter-spacing:-.01em;line-height:1.3;opacity:.85}
.pd-price-wrap .pd-price{font-size:17px;color:#16a34a;font-weight:700;letter-spacing:-.01em;margin-bottom:0;line-height:1.3}
.pd-usd-hint{font-size:13px;color:var(--text3);font-weight:500;margin-top:2px;display:block}
.pd-discount-pct{font-size:13px;font-weight:700;background:#dcfce7;color:#166534;
  border-radius:6px;padding:2px 7px}
.pd-agotado-badge{display:inline-block;background:#f2f2f7;color:var(--text3);
  font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  padding:3px 10px;border-radius:8px;margin-bottom:14px}
.pd-stock-low{display:inline-flex;align-items:center;gap:8px;
  background:linear-gradient(135deg,#fff7ed,#ffedd5);
  color:#c2410c;font-size:13px;font-weight:700;
  padding:9px 14px;border-radius:10px;margin-bottom:14px;
  border:1.5px solid #fed7aa;
  animation:stockPulse 2.2s ease-in-out infinite}
@keyframes stockPulse{0%,100%{box-shadow:0 0 0 0 rgba(249,115,22,.25)}60%{box-shadow:0 0 0 7px rgba(249,115,22,0)}}
[data-theme="dark"] .pd-stock-low{background:linear-gradient(135deg,#431407,#7c2d12);color:#fb923c;border-color:rgba(251,146,60,.35)}
.badge-poco-stock{display:inline-flex;align-items:center;gap:4px;
  background:#fff7ed;color:#c2410c;font-size:10px;font-weight:700;
  letter-spacing:.02em;padding:2px 8px;border-radius:20px;
  border:1px solid #fed7aa;margin-top:5px}
[data-theme="dark"] .badge-poco-stock{background:#431407;color:#fb923c;border-color:rgba(251,146,60,.35)}
.pd-stock-ref{font-size:11px;color:var(--text3);font-weight:500;letter-spacing:.03em;margin-bottom:6px;margin-top:-4px}
.pd-actions{display:flex;flex-direction:column;gap:8px;margin-bottom:22px}
.pd-trust-mini{display:flex;flex-wrap:wrap;gap:12px;
  padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);
  margin-bottom:0}
.pd-trust-mini-item{display:flex;align-items:center;gap:6px;
  font-size:12px;color:var(--text2);font-weight:500;text-decoration:none;
  background:none;border:none;cursor:pointer;padding:0;font-family:inherit}
.pd-trust-mini-item:hover{color:var(--accent)}
.pd-short-desc{font-size:14px;color:var(--text2);line-height:1.7;
  margin-top:18px}

/* Tabs section */
.pd-tabs-section{background:var(--bg);border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);padding:0}
.pd-tabs-inner{max-width:980px;margin:0 auto;padding:0 22px}
.pd-tabs{display:flex;gap:0;border-bottom:1px solid var(--border)}
.pd-tab{background:none;border:none;padding:14px 20px;font-size:14px;font-weight:500;
  color:var(--text2);cursor:pointer;transition:all .14s;
  border-bottom:2px solid transparent;margin-bottom:-1px}
.pd-tab:hover{color:var(--text)}
.pd-tab.active{color:var(--text);border-bottom-color:var(--text)}
.pd-tab-body{padding:28px 0 36px;font-size:14.5px;color:var(--text2);line-height:1.8}
.pd-tab-body h2,.pd-tab-body h3{font-size:16px;color:var(--text);font-weight:600;margin:22px 0 8px}
.pd-tab-body h2:first-child,.pd-tab-body h3:first-child{margin-top:0}
.pd-tab-body ul,.pd-tab-body ol{padding-left:20px;margin-bottom:12px}
.pd-tab-body li{margin-bottom:5px}
.pd-tab-body p{margin-bottom:10px}
.pd-tab-body strong{color:var(--text)}

.pd-specs-table{width:100%;border-collapse:collapse}
.pd-specs-table tr{border-bottom:1px solid var(--border)}
.pd-specs-table td{padding:10px 0;font-size:14px}
.pd-specs-table td:first-child{color:var(--text2);width:40%;font-weight:500}
.pd-specs-table td:last-child{color:var(--text);font-weight:500}

/* WhatsApp CTA below description */
.pd-wa-section{margin-top:22px;padding-top:20px;border-top:1px solid var(--border)}
.pd-wa-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;
  background:#25d366;color:#fff;border:none;border-radius:30px;font-size:14px;
  font-weight:600;cursor:pointer;transition:opacity .15s}
.pd-wa-btn:hover{opacity:.88}

/* Inline product sections inside info column */
.pd-info-section{margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}
.pd-section-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  color:var(--text3);margin-bottom:10px}
.pd-desc-body{font-size:14.5px;color:var(--text2);line-height:1.8}
.pd-desc-body h2,.pd-desc-body h3{font-size:16px;color:var(--text);font-weight:600;margin:22px 0 8px}
.pd-desc-body h2:first-child,.pd-desc-body h3:first-child{margin-top:0}
.pd-desc-body ul,.pd-desc-body ol{padding-left:20px;margin-bottom:12px}
.pd-desc-body li{margin-bottom:5px}
.pd-desc-body p{margin-bottom:10px}
.pd-desc-body strong{color:var(--text)}

/* Trust section */
.pd-trust-section{background:var(--surface);padding:52px 22px}
.pd-trust-inner{max-width:980px;margin:0 auto}
.pd-trust-title{font-size:22px;font-weight:700;letter-spacing:-.3px;
  margin-bottom:28px;text-align:center}
.pd-trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:700px){.pd-trust-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:400px){.pd-trust-grid{grid-template-columns:1fr}}
.pd-trust-item{text-align:center;padding:20px 12px;
  background:var(--bg);border-radius:var(--radius)}
.pd-trust-icon{font-size:28px;display:block;margin-bottom:10px}
.pd-trust-item strong{display:block;font-size:13px;font-weight:700;
  margin-bottom:5px;color:var(--text)}
.pd-trust-item p{font-size:12px;color:var(--text2);line-height:1.5}

/* Related */
.pd-related{max-width:980px;margin:0 auto;padding:48px 22px 72px}
.pd-related-title{font-size:19px;font-weight:700;letter-spacing:-.3px;margin-bottom:18px}

/* Lightbox */
.pd-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:500;
  display:none;align-items:center;justify-content:center;cursor:zoom-out}
.pd-lightbox.open{display:flex}
.pd-lightbox img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:8px}
.pd-lightbox-close{position:absolute;top:16px;right:20px;background:none;border:none;
  color:#fff;font-size:28px;cursor:pointer;opacity:.7;transition:opacity .14s}
.pd-lightbox-close:hover{opacity:1}

/* ── Cart drawer ─────────────────────────────────────────────────────── */
.cart-overlay{position:fixed;inset:0;background:rgba(0,0,0,.32);z-index:300;
  opacity:0;pointer-events:none;transition:opacity .25s}
.cart-overlay.open{opacity:1;pointer-events:all}
.cart-drawer{position:fixed;top:0;right:0;bottom:0;width:100%;max-width:390px;
  background:var(--surface);z-index:301;
  transform:translateX(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;box-shadow:-6px 0 28px rgba(0,0,0,.10)}
.cart-drawer.open{transform:translateX(0)}
.cart-header{padding:18px 20px 14px;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between}
.cart-header h2{font-size:17px;font-weight:700}
.cart-close{background:none;border:none;font-size:22px;cursor:pointer;
  color:var(--text2);line-height:1;padding:4px;transition:color .14s}
.cart-close:hover{color:var(--text)}
.cart-items{flex:1;overflow-y:auto;padding:14px 20px}
.cart-empty-msg{text-align:center;color:var(--text3);padding:48px 0;font-size:14px}
.cart-item{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--border)}
.cart-item:last-child{border-bottom:none}
.cart-item-img{width:62px;height:62px;object-fit:contain;background:var(--bg);
  border-radius:10px;padding:6px;flex-shrink:0}
.cart-item-info{flex:1;min-width:0}
.cart-item-name{font-size:13px;font-weight:500;margin-bottom:3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cart-item-price{font-size:12px;color:var(--text2);margin-bottom:8px}
.cart-qty{display:flex;align-items:center;gap:9px}
.qty-btn{width:24px;height:24px;border-radius:50%;background:var(--bg);
  border:none;cursor:pointer;font-size:14px;font-weight:700;color:var(--text);
  display:flex;align-items:center;justify-content:center;transition:background .14s}
.qty-btn:hover{background:var(--border-s)}
.qty-val{font-size:13px;font-weight:600;min-width:16px;text-align:center}
.cart-remove{background:none;border:none;color:var(--text3);cursor:pointer;
  font-size:16px;line-height:1;padding:4px;margin-left:auto;transition:color .14s}
.cart-remove:hover{color:var(--text)}
.cart-footer{padding:14px 20px 24px;border-top:1px solid var(--border)}
.cart-total{display:flex;justify-content:space-between;align-items:center;
  font-size:16px;font-weight:700;margin-bottom:12px}

/* ── Checkout ────────────────────────────────────────────────────────── */
.checkout-wrap{max-width:500px;margin:0 auto;padding:44px 22px 80px}
.checkout-title{font-size:28px;font-weight:700;letter-spacing:-.04em;margin-bottom:32px}
.section-label{font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.07em;color:var(--text3);margin-bottom:12px;display:block}
.checkout-item{display:flex;gap:12px;align-items:center;padding:11px 0;
  border-bottom:1px solid var(--border)}
.checkout-item:last-child{border-bottom:none}
.checkout-item-img{width:46px;height:46px;object-fit:contain;
  background:var(--bg);border-radius:8px;padding:4px;flex-shrink:0}
.checkout-item-name{flex:1;font-size:13px;font-weight:500}
.checkout-item-price{font-size:14px;font-weight:700}
.checkout-total{display:flex;justify-content:space-between;
  font-size:16px;font-weight:700;padding:14px 0 20px}
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;font-weight:600;color:var(--text2);margin-bottom:6px}
.field input:not([type=checkbox]){width:100%;background:var(--surface);border:1.5px solid var(--border);
  border-radius:10px;padding:11px 14px;font-size:15px;color:var(--text);
  outline:none;transition:border .15s;-webkit-appearance:none}
.field input[type=checkbox]{-webkit-appearance:auto;appearance:auto;width:16px;height:16px;flex-shrink:0;cursor:pointer}
.field input:focus{border-color:var(--text)}
.field input::placeholder{color:var(--text3)}
.checkout-note{font-size:12px;color:var(--text3);line-height:1.6;text-align:center;margin-top:10px}
.error-msg{background:#fff2f1;border:1px solid rgba(255,59,48,.2);
  border-radius:10px;color:#cc2b23;font-size:13px;
  padding:10px 14px;margin-bottom:14px;display:none}
.error-msg.show{display:block}

/* ── Contacto ────────────────────────────────────────────────────────── */
.contact-wrap{max-width:900px;margin:0 auto;padding:60px 22px 80px;
  display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}
@media(max-width:640px){.contact-wrap{grid-template-columns:1fr;gap:36px}}
.contact-title{font-size:clamp(38px,7vw,58px);font-weight:700;letter-spacing:-.04em;margin-bottom:8px}
.contact-sub{font-size:15px;color:var(--text2);margin-bottom:32px}
.contact-info-block{margin-bottom:22px}
.contact-info-label{font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.07em;color:var(--text3);margin-bottom:5px}
.contact-info-value{font-size:15px;font-weight:500;line-height:1.5}
.contact-info-value a{color:var(--text)}
.radio-group{display:flex;flex-direction:column;gap:9px;margin-top:6px}
.radio-opt{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px;font-weight:400}
.radio-opt input{accent-color:var(--text);width:16px;height:16px}

/* ── Success ─────────────────────────────────────────────────────────── */
.success-wrap{max-width:440px;margin:80px auto 80px;padding:0 22px;text-align:center}
.success-icon{font-size:64px;margin-bottom:18px;line-height:1}
.success-title{font-size:28px;font-weight:700;letter-spacing:-.04em;margin-bottom:10px}
.success-sub{font-size:15px;color:var(--text2);line-height:1.65;margin-bottom:24px}
.success-box{background:var(--surface);border:1px solid var(--border);border-radius:14px;
  padding:16px 18px;margin-bottom:22px;text-align:left}
.success-box-label{font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.05em;color:var(--text3);margin-bottom:4px}
.success-box-val{font-size:15px;font-weight:600}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer{background:#1d1d1f;color:#a1a1a6;padding:28px 22px;text-align:center}
.footer-links{display:flex;justify-content:center;gap:28px;flex-wrap:wrap;margin-bottom:16px}
.footer-links a{font-size:13px;color:#a1a1a6;display:flex;align-items:center;gap:6px;transition:color .15s}
.footer-links a:hover{color:#fff}
.footer-copy{font-size:12px}

/* ── Product card discount ───────────────────────────────────────────── */
.product-card-price-row{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin:0}
.product-card-price-row .product-card-price{margin:0;color:#1a7a4a;font-size:13px;font-weight:700}
.product-card-price-original{font-size:16px;color:#ff3b30;text-decoration:line-through;font-weight:700}

/* ── Auth pages ──────────────────────────────────────────────────────────── */
.auth-wrap{min-height:calc(100vh - var(--hh) - 60px);display:flex;align-items:center;justify-content:center;padding:40px 20px}
.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;
  padding:40px 36px;width:100%;max-width:400px;box-shadow:var(--shadow-up)}
@media(max-width:480px){.auth-card{padding:28px 20px;border-radius:14px}}
.auth-title{font-size:28px;font-weight:700;letter-spacing:-.04em;margin-bottom:6px}
.auth-sub{font-size:14px;color:var(--text2);margin-bottom:24px;line-height:1.5}
.auth-switch{text-align:center;font-size:13px;color:var(--text2);margin-top:16px}
.auth-switch a{color:var(--text);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.auth-invite-badge{display:inline-flex;align-items:center;background:#f0fdf4;color:#166534;
  font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  padding:4px 10px;border-radius:20px;border:1px solid #bbf7d0;margin-bottom:16px}

/* ── User header button ──────────────────────────────────────────────────── */
.user-nav-slot{display:flex;align-items:center}
.user-signin-btn{font-size:13px;font-weight:600;color:var(--text);
  padding:6px 14px;border-radius:20px;border:1.5px solid var(--border-s);
  transition:all .15s;white-space:nowrap}
.user-signin-btn:hover{color:#000;border-color:#000}
[data-theme="dark"] .user-signin-btn:hover{color:#fff;border-color:#fff}
.user-menu-wrap{position:relative}
.user-menu-btn{display:flex;align-items:center;gap:7px;background:none;border:none;
  cursor:pointer;font-size:13px;font-weight:500;color:var(--text2);padding:4px 0;
  transition:color .15s}
.user-menu-btn:hover{color:var(--text)}
.user-avatar{width:26px;height:26px;border-radius:50%;background:var(--text);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0}
.user-menu-name{font-size:13px;font-weight:500}
.user-dropdown{position:absolute;top:calc(100% + 10px);right:0;min-width:200px;
  background:var(--surface);border:1px solid var(--border);border-radius:12px;
  box-shadow:var(--shadow-up);padding:8px;z-index:200;
  opacity:0;pointer-events:none;transform:translateY(-6px);
  transition:opacity .15s,transform .15s}
.user-menu-wrap.open .user-dropdown{opacity:1;pointer-events:all;transform:translateY(0)}
.user-dropdown-info{padding:8px 10px 10px;border-bottom:1px solid var(--border);margin-bottom:6px}
.user-dropdown-info strong{display:block;font-size:13px;font-weight:600;color:var(--text)}
.user-dropdown-info span{display:block;font-size:11px;color:var(--text3);margin-top:2px}
.user-dropdown-btn{width:100%;text-align:left;background:none;border:none;
  padding:8px 10px;font-size:13px;color:var(--text2);cursor:pointer;border-radius:8px;
  transition:background .12s,color .12s;font-family:inherit}
.user-dropdown-btn:hover{background:var(--bg);color:var(--text)}

/* ── User special price badges ───────────────────────────────────────── */
.badge-user-price{font-size:10px;font-weight:700;background:#dbeafe;color:#1d4ed8;
  border-radius:20px;padding:1px 7px;letter-spacing:.02em;align-self:center}
[data-theme="dark"] .badge-user-price{background:#1e3a5f;color:#93c5fd}
.badge-mayorista{display:inline-block;font-size:10px;font-weight:700;
  background:#f0fdf4;color:#15803d;border-radius:20px;padding:2px 8px;
  border:1px solid #bbf7d0;margin-top:5px;letter-spacing:.02em}
[data-theme="dark"] .badge-mayorista{background:#052e16;color:#4ade80;border-color:rgba(74,222,128,.3)}
.pd-mayorista-tip{font-size:12px;color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0;
  border-radius:8px;padding:6px 10px;margin-top:8px;font-weight:500}
[data-theme="dark"] .pd-mayorista-tip{background:#052e16;color:#4ade80;border-color:rgba(74,222,128,.3)}

/* ── Promo code (checkout) ───────────────────────────────────────────── */
.promo-code-wrap{margin:12px 0 16px}
.promo-summary{font-size:12px;color:var(--text2);cursor:pointer;font-weight:500;
  list-style:none;padding:6px 0;user-select:none;display:inline-block}
.promo-summary::-webkit-details-marker{display:none}
.promo-summary::before{content:'+ '}
details[open] .promo-summary::before{content:'− '}
.promo-inner{padding:0 0 6px}
.btn-sm-outline{padding:7px 14px;border-radius:8px;font-size:13px;font-weight:600;
  background:transparent;border:1.5px solid var(--border-s);color:var(--text);
  cursor:pointer;transition:all .15s;white-space:nowrap;font-family:inherit}
.btn-sm-outline:hover{background:var(--text);color:#fff;border-color:var(--text)}

/* ── Anim ────────────────────────────────────────────────────────────── */
.page-enter{animation:pgIn .3s ease}
@keyframes pgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* ── AI Chat Widget ──────────────────────────────────────────────────── */
#ai-chat-wrap{position:fixed;bottom:24px;right:24px;z-index:9000;
  width:54px;height:54px;overflow:visible}
.ai-chat-fab{width:54px;height:54px;border-radius:50%;background:#007aff;border:none;
  cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;
  box-shadow:0 4px 18px rgba(0,122,255,.45);transition:transform .15s,box-shadow .15s;
  position:relative;z-index:9001;touch-action:manipulation}
.ai-chat-fab:hover{transform:scale(1.07);box-shadow:0 6px 24px rgba(0,122,255,.55)}
.ai-chat-panel{position:absolute;bottom:calc(100% + 12px);right:0;
  width:340px;max-height:0;overflow:hidden;opacity:0;transform:translateY(6px);
  pointer-events:none;transition:opacity .18s ease,transform .18s ease;
  background:var(--surface);border-radius:18px;
  box-shadow:0 8px 40px rgba(0,0,0,.18),0 2px 8px rgba(0,0,0,.1);
  border:1px solid var(--border);display:flex;flex-direction:column}
.ai-chat-panel.open{max-height:500px;opacity:1;transform:translateY(0);pointer-events:auto}
.ai-chat-bubble{position:absolute;bottom:calc(100% + 12px);right:0;background:#fff;color:#111;
  font-size:13px;line-height:1.4;padding:10px 14px;border-radius:16px 16px 4px 16px;
  box-shadow:0 4px 16px rgba(0,0,0,.15);white-space:pre-line;cursor:pointer;
  width:240px;opacity:0;transform:translateY(6px);pointer-events:none;
  transition:opacity .25s,transform .25s}
.ai-chat-bubble.visible{opacity:1;transform:translateY(0);pointer-events:auto}
.ai-chat-header{display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;border-bottom:1px solid var(--border);flex-shrink:0}
.ai-chat-title{display:flex;align-items:center;gap:10px;color:var(--text)}
.ai-chat-avatar{position:relative;flex-shrink:0;width:36px;height:36px;display:block}
.ai-chat-avatar svg,.ai-chat-avatar img{border-radius:50%;display:block;width:36px;height:36px;object-fit:contain}
.ai-online-dot{position:absolute;bottom:1px;right:1px;width:9px;height:9px;
  background:#22c55e;border-radius:50%;border:2px solid var(--card,#fff)}
.ai-chat-title-info{display:flex;flex-direction:column;gap:1px}
.ai-chat-name{font-size:14px;font-weight:700;line-height:1.2}
.ai-chat-status{font-size:11px;color:#22c55e;font-weight:500}
.ai-chat-close{background:none;border:none;cursor:pointer;color:var(--text3);
  font-size:16px;padding:2px 6px;line-height:1;border-radius:6px;transition:background .12s}
.ai-chat-close:hover{background:var(--bg);color:var(--text)}
.ai-chat-messages{flex:1;overflow-y:auto;padding:14px 12px;
  display:flex;flex-direction:column;gap:8px;min-height:0;
  scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.ai-msg{display:flex;max-width:88%}
.ai-msg-user{align-self:flex-end}
.ai-msg-bot{align-self:flex-start}
.ai-msg-bubble{padding:9px 13px;border-radius:16px;font-size:13px;line-height:1.45;word-break:break-word}
.ai-msg-user .ai-msg-bubble{background:#007aff;color:#fff;border-bottom-right-radius:4px}
.ai-msg-bot .ai-msg-bubble{background:var(--bg);color:var(--text);border-bottom-left-radius:4px;border:1px solid var(--border)}
.ai-chat-footer{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;
  border-top:1px solid var(--border);flex-shrink:0}
.ai-chat-input{flex:1;border:1px solid var(--border);border-radius:10px;
  background:var(--bg);color:var(--text);font-size:13px;font-family:inherit;
  padding:8px 12px;resize:none;outline:none;max-height:120px;line-height:1.4;
  transition:border-color .15s}
.ai-chat-input:focus{border-color:rgba(0,122,255,.5)}
.ai-chat-input::placeholder{color:var(--text3)}

/* ── Card add-to-cart row ───────────────────────────────────────────────────── */
.card-add-row{display:flex;align-items:center;
  margin-top:10px;padding-top:10px;border-top:1px solid var(--border)}
.card-qty-ctrl{display:flex;align-items:center;background:var(--bg);
  border-radius:20px 0 0 20px;border:1px solid var(--border);
  border-right:none;overflow:hidden}
.card-qty-btn{background:none;border:none;width:28px;height:30px;font-size:15px;
  cursor:pointer;color:var(--text2);display:flex;align-items:center;justify-content:center;
  transition:color .12s;flex-shrink:0}
.card-qty-btn:hover{color:var(--text)}
.card-qty-val{min-width:22px;text-align:center;font-size:13px;font-weight:600;
  color:var(--text);line-height:30px}
.card-add-btn{height:30px;padding:0 12px;border-radius:0 20px 20px 0;
  background:#22c55e;color:#fff;border:1px solid #22c55e;
  font-size:18px;font-weight:400;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .12s;flex-shrink:0;line-height:1}
.card-add-btn:hover{background:#16a34a;border-color:#16a34a}
.card-add-btn:active{background:#15803d;border-color:#15803d}

/* ── Cart toast ─────────────────────────────────────────────────────────────── */
.cart-toast{position:fixed;z-index:900;
  background:var(--surface);border:1px solid var(--border);border-radius:14px;
  padding:14px 16px;box-shadow:var(--shadow-up);
  display:flex;flex-direction:column;gap:6px;
  width:230px;
  opacity:0;transform:translateY(-6px);pointer-events:none;
  transition:opacity .2s,transform .2s}
.cart-toast.visible{opacity:1;transform:translateY(0);pointer-events:auto}
.cart-toast::before{content:'';position:absolute;top:-7px;right:var(--arrow-r,13px);
  border:7px solid transparent;border-bottom-color:var(--border);border-top:none}
.cart-toast::after{content:'';position:absolute;top:-5px;right:calc(var(--arrow-r,13px) + 1px);
  border:6px solid transparent;border-bottom-color:var(--surface);border-top:none}
.cart-toast-item{font-size:13px;font-weight:600;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cart-toast-msg{font-size:12px;color:var(--text2)}
.cart-toast-btn{margin-top:4px;background:var(--text);color:var(--bg);border:none;
  border-radius:8px;padding:8px 12px;font-size:13px;font-weight:600;
  cursor:pointer;text-align:center;transition:opacity .12s;width:100%}
.cart-toast-btn:hover{opacity:.85}
.ai-chat-send{width:36px;height:36px;border-radius:10px;background:#007aff;border:none;
  cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:background .15s;touch-action:manipulation}
.ai-chat-send:hover{background:#0066d6}
.ai-link{color:#007aff;text-decoration:underline;text-underline-offset:2px}
.ai-link:hover{opacity:.75}
.ai-typing-dots{display:flex;align-items:center;gap:4px;padding:10px 14px}
.ai-typing-dots span{width:6px;height:6px;background:var(--text3);border-radius:50%;
  animation:aiDot 1.2s infinite ease-in-out}
.ai-typing-dots span:nth-child(2){animation-delay:.2s}
.ai-typing-dots span:nth-child(3){animation-delay:.4s}
@keyframes aiDot{0%,60%,100%{opacity:.3;transform:scale(.8)}30%{opacity:1;transform:scale(1)}}
@media(max-width:600px){
  #ai-chat-wrap{right:16px}
  .ai-chat-panel{width:calc(100vw - 32px);right:0;max-height:calc(100vh - 140px)}
  .ai-chat-bubble{width:200px;font-size:12px;right:0}
  .ai-chat-input{font-size:16px} /* iOS Safari hace zoom automático si font-size < 16px */
}
