/* ==========================================================================
   Tienda Kaiphone: carrito, catálogo, ficha de producto, checkout y pedido.
   Se carga después de style.css y reutiliza sus variables de marca.
   ========================================================================== */

[hidden]{ display:none !important; }
.hp{ position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }
.muted{ color:var(--grey); }

/* ---------- Botones extra ---------- */
.btn-dark{ background:var(--ink); color:var(--paper); border-radius:14px; justify-content:center; }
.btn-dark:hover{ background:var(--orange); color:var(--ink); }
.btn-block{ width:100%; justify-content:center; border-radius:14px; }
.btn-primary.btn-block{ font-size:15.5px; }
.btn-link{ background:none; border:none; color:var(--grey); font:500 13.5px 'Inter',sans-serif; cursor:pointer; padding:10px; width:100%; }
.btn-link:hover{ color:var(--ink); }
.btn[disabled]{ opacity:.6; cursor:wait; transform:none; }

/* ---------- Menú: carrito + hamburguesa ---------- */
.head-actions{ display:flex; align-items:center; gap:6px; }
header nav{ margin-left:auto; margin-right:22px; }
.cart-btn, .menu-btn{
  position:relative; width:42px; height:42px; border-radius:50%; border:none; background:transparent;
  color:inherit; display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:background .2s ease;
}
.cart-btn:hover, .menu-btn:hover{ background:rgba(127,127,127,.15); }
.cart-btn svg, .menu-btn svg{ width:23px; height:23px; }
.cart-count{
  position:absolute; top:3px; right:1px; min-width:19px; height:19px; padding:0 5px; border-radius:10px;
  background:var(--orange); color:var(--ink); font:700 11px/19px 'Inter',sans-serif; text-align:center;
  animation:pop .35s cubic-bezier(.3,1.6,.5,1);
}
@keyframes pop{ from{ transform:scale(.4); } to{ transform:scale(1); } }
.menu-btn{ display:none; }
header.solid{ background:rgba(255,255,255,.92); backdrop-filter:saturate(1.4) blur(14px); border-bottom:1px solid var(--line-dark); padding-top:14px; padding-bottom:14px; }
header nav a.is-active{ opacity:1; color:var(--orange-dim); }
body.inner{ padding-top:72px; background:#fbfaf7; }
@media (max-width:840px){
  .menu-btn{ display:flex; }
  header.menu-open nav{
    display:flex; flex-direction:column; gap:0; position:absolute; top:100%; left:12px; right:12px; margin:8px 0 0;
    background:var(--paper); color:var(--ink); border-radius:18px; padding:8px; box-shadow:0 20px 50px rgba(0,0,0,.22);
  }
  header.menu-open nav a{ padding:14px 16px; border-radius:12px; font-size:16px; opacity:1; }
  header.menu-open nav a:hover{ background:var(--stone); }
}

/* ---------- Tarjetas de producto (agregados de tienda) ---------- */
.phone-card .shot{ display:block; }
.phone-card h3 a:hover{ color:var(--orange-dim); }
.stock-flag{
  position:absolute; left:12px; top:12px; z-index:2; font-size:11.5px; font-weight:700; padding:6px 12px; border-radius:20px;
}
.stock-flag.out{ background:var(--ink); color:var(--paper); }
.stock-flag.low{ background:var(--orange); color:var(--ink); }
.phone-card.is-soldout .shot img{ filter:grayscale(1); opacity:.6; }
.price-alt{ font-size:12.5px; font-weight:600; color:var(--orange-dim); margin-top:2px; }
.card-actions{ display:flex; flex-direction:column; gap:4px; margin-top:18px; }
.card-actions .btn{ margin-top:0 !important; width:100%; }
.btn-add.added{ background:var(--orange) !important; color:var(--ink) !important; }
.btn-soft{ background:var(--stone) !important; color:var(--ink) !important; }
.card-wa{ text-align:center; font-size:12.5px; color:var(--grey); padding:8px; }
.card-wa:hover{ color:var(--orange-dim); }
.stock-more{ display:flex; justify-content:center; margin-top:46px; }
.stock-more .btn{ padding:16px 30px; }

/* ---------- Carrito lateral ---------- */
.cart-drawer{ position:fixed; inset:0; z-index:300; visibility:hidden; pointer-events:none; }
.cart-drawer.open{ visibility:visible; pointer-events:auto; }
.cart-backdrop{ position:absolute; inset:0; background:rgba(8,8,8,.5); opacity:0; transition:opacity .3s ease; }
.cart-drawer.open .cart-backdrop{ opacity:1; }
.cart-panel{
  position:absolute; top:0; right:0; bottom:0; width:min(420px, 100%); background:var(--paper); color:var(--ink);
  display:flex; flex-direction:column; transform:translateX(100%); transition:transform .38s cubic-bezier(.2,.8,.2,1);
  box-shadow:-20px 0 60px rgba(0,0,0,.2);
}
.cart-drawer.open .cart-panel{ transform:translateX(0); }
body.cart-lock{ overflow:hidden; }
.cart-head{ display:flex; justify-content:space-between; align-items:center; padding:22px 24px; border-bottom:1px solid var(--line-dark); }
.cart-head h3{ font-size:20px; }
.cart-x{ background:none; border:none; font-size:30px; line-height:1; cursor:pointer; color:var(--grey); padding:0 4px; }
.cart-x:hover{ color:var(--ink); }
.cart-items{ flex:1; overflow-y:auto; padding:8px 24px; }
.ci{ display:grid; grid-template-columns:72px 1fr auto; gap:14px; padding:16px 0; border-bottom:1px solid var(--line-dark); align-items:start; }
.ci img{ width:72px; height:72px; object-fit:cover; border-radius:14px; background:#eae7e0; }
.ci-info strong{ display:block; font-family:'Plus Jakarta Sans',sans-serif; font-size:15px; }
.ci-info span{ display:block; font-size:12.5px; color:var(--grey); margin-top:2px; }
.ci-row{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; gap:10px; }
.ci-row b{ font-size:14.5px; }
.ci-del{ background:none; border:none; color:var(--grey); font-size:22px; cursor:pointer; line-height:1; padding:0 2px; }
.ci-del:hover{ color:#b3261e; }
.qty{ display:inline-flex; align-items:center; border:1px solid var(--line-dark); border-radius:30px; overflow:hidden; }
.qty button{ width:32px; height:32px; border:none; background:transparent; font-size:17px; cursor:pointer; color:var(--ink); }
.qty button:hover:not(:disabled){ background:var(--stone); }
.qty button:disabled{ opacity:.3; cursor:not-allowed; }
.qty span{ min-width:26px; text-align:center; font-weight:600; font-size:14px; }
.qty-lg button{ width:46px; height:52px; font-size:20px; }
.qty-lg span{ min-width:32px; font-size:16px; }
.cart-empty{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; color:var(--grey); padding:40px; }
.cart-foot{ padding:20px 24px 24px; border-top:1px solid var(--line-dark); background:#fbfaf7; }
.cart-sub{ display:flex; justify-content:space-between; align-items:baseline; font-size:15px; }
.cart-sub strong{ font-family:'Plus Jakarta Sans',sans-serif; font-size:24px; }
.cart-note{ font-size:12.5px; color:var(--grey); margin:6px 0 16px; }

.toast{
  position:fixed; left:50%; bottom:28px; transform:translate(-50%, 20px); z-index:400; opacity:0; pointer-events:none;
  background:var(--ink); color:var(--paper); padding:13px 22px; border-radius:30px; font-size:14px; font-weight:500;
  transition:opacity .25s ease, transform .25s ease; box-shadow:0 12px 30px rgba(0,0,0,.25);
}
.toast.show{ opacity:1; transform:translate(-50%, 0); }

/* ---------- Página de tienda ---------- */
.shop-hero{ background:var(--ink); color:var(--paper); padding:70px 0 60px; margin-top:-72px; padding-top:142px; position:relative; overflow:hidden; }
.shop-hero::after{ content:''; position:absolute; right:-120px; top:-120px; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle, rgba(253,106,31,.25), transparent 70%); }
.shop-hero h1{ font-size:clamp(36px,5vw,60px); }
.shop-hero p{ color:rgba(255,255,255,.65); max-width:560px; margin-top:14px; font-size:16.5px; line-height:1.6; }
.perks{ display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; position:relative; z-index:1; }
.perks span{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:500; padding:9px 15px; border-radius:30px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); }
.perks svg{ width:17px; height:17px; color:var(--orange); }
.shop-body{ padding:40px 0 100px; }
.shop-tools{ display:flex; flex-direction:column; gap:18px; margin-bottom:34px; }
.shop-tools .cat-tabs{ margin-bottom:0; }
.cat-tab small{ font-size:11px; opacity:.55; margin-left:3px; }
.shop-filters{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.search{ flex:1 1 280px; display:flex; align-items:center; gap:10px; background:var(--paper); border:1px solid var(--line-dark); border-radius:30px; padding:0 18px; transition:border-color .2s; }
.search:focus-within{ border-color:var(--ink); }
.search svg{ width:18px; height:18px; color:var(--grey); flex-shrink:0; }
.search input{ border:none; outline:none; background:transparent; padding:13px 0; width:100%; font:15px 'Inter',sans-serif; }
.shop-filters select{ border:1px solid var(--line-dark); border-radius:30px; padding:12px 18px; background:var(--paper); font:500 14px 'Inter',sans-serif; cursor:pointer; }
.toggle{ display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:500; cursor:pointer; padding:0 6px; }
.toggle input{ accent-color:var(--orange); width:17px; height:17px; }
.shop-empty{ text-align:center; padding:60px 20px; }
.shop-empty h3{ font-size:24px; }
.shop-empty p{ color:var(--grey); margin:10px 0 24px; }

/* ---------- Ficha de producto ---------- */
.crumbs{ display:flex; gap:8px; flex-wrap:wrap; font-size:13px; color:var(--grey); padding:26px 0 22px; }
.crumbs a:hover{ color:var(--ink); }
.pdp{ display:grid; grid-template-columns:1.15fr 1fr; gap:56px; align-items:start; }
.pgallery{ position:sticky; top:92px; }
.pg-stage{
  position:relative; aspect-ratio:4/3; background:#eae7e0; border-radius:26px; overflow:hidden; cursor:zoom-in; touch-action:pan-y;
  box-shadow:0 1px 3px rgba(10,10,10,.06), 0 10px 24px rgba(10,10,10,.05);
}
.pg-stage img{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; user-select:none; -webkit-user-drag:none; }
.pg-stage.zoomed{ cursor:zoom-out; }
.pg-stage.zoomed img{ transform:scale(2.1); }
.is-spin .pg-stage{ cursor:grab; }
.is-spin .pg-stage:active{ cursor:grabbing; }
.pg-badge{ position:absolute; top:16px; left:16px; background:linear-gradient(100deg, var(--orange-dim), var(--orange)); color:var(--ink); font-size:11.5px; font-weight:700; padding:6px 12px; border-radius:20px; }
.pg-nav{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%; border:none; background:rgba(255,255,255,.88); font-size:24px; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.12); }
.pg-nav.prev{ left:14px; } .pg-nav.next{ right:14px; }
.pg-thumbs{ display:flex; gap:10px; margin-top:14px; overflow-x:auto; padding-bottom:4px; }
.pg-thumbs button{ flex-shrink:0; width:76px; height:76px; border-radius:14px; overflow:hidden; border:2px solid transparent; padding:0; cursor:pointer; opacity:.55; background:#eae7e0; transition:opacity .2s, border-color .2s; }
.pg-thumbs button.active{ opacity:1; border-color:var(--orange); }
.pg-thumbs img{ width:100%; height:100%; object-fit:cover; }
.pg-hint{ font-size:12.5px; color:var(--grey); margin-top:10px; }
.pinfo .cond{ display:inline-block; font-size:12px; font-weight:600; padding:5px 12px; border-radius:20px; margin-bottom:16px; }
.pinfo h1{ font-size:clamp(32px,4vw,46px); }
.psub{ color:var(--grey); margin-top:8px; font-size:15.5px; }
.pprice{ margin:24px 0 10px; }
.pprice strong{ display:block; font-family:'Plus Jakarta Sans',sans-serif; font-size:38px; font-weight:800; letter-spacing:-.02em; }
.pprice-alt{ display:inline-block; margin-top:4px; font-size:14px; font-weight:600; color:var(--orange-dim); background:rgba(253,106,31,.1); padding:5px 12px; border-radius:20px; }
.popts{ margin-top:26px; }
.popts-label{ display:block; font-size:13px; font-weight:600; margin-bottom:10px; }
.popts-list{ display:flex; flex-wrap:wrap; gap:10px; }
.opt{
  display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:12px 16px; border-radius:14px; cursor:pointer;
  border:1.5px solid var(--line-dark); background:var(--paper); font:600 14px 'Inter',sans-serif; color:var(--ink); transition:border-color .2s, box-shadow .2s;
}
.opt small{ font-weight:500; font-size:12px; color:var(--grey); }
.opt:hover:not(:disabled){ border-color:var(--ink); }
.opt.active{ border-color:var(--orange); box-shadow:0 0 0 3px rgba(253,106,31,.15); }
.opt:disabled{ opacity:.45; cursor:not-allowed; text-decoration:line-through; }
.pstock{ margin:20px 0 14px; font-size:14px; font-weight:600; color:#1f7a3f; }
.pstock.low{ color:var(--orange-dim); }
.pbuy{ display:flex; gap:12px; margin-bottom:12px; }
.pbuy .btn{ flex:1; justify-content:center; }
.pinfo .btn-block + .btn-block{ margin-top:12px; }
.pwa{ margin-top:12px; }
.pperks{ list-style:none; margin-top:30px; border-top:1px solid var(--line-dark); }
.pperks li{ display:flex; flex-direction:column; gap:3px; padding:15px 0; border-bottom:1px solid var(--line-dark); font-size:14px; }
.pperks b{ font-weight:600; }
.pperks span{ color:var(--grey); }
.pperks a{ color:var(--orange-dim); font-weight:600; }
.pdesc{ margin-top:80px; max-width:760px; }
.pdesc h2, .prelated h2{ font-size:28px; margin-bottom:18px; }
.pdesc-body{ font-size:16px; line-height:1.75; color:#3a3936; }
.prelated{ margin:80px 0 100px; }
.prelated .stock-grid, .shop-body .stock-grid{ grid-template-columns:repeat(auto-fill, minmax(270px,1fr)); }

/* ---------- Checkout ---------- */
.co-head{ padding:34px 0 26px; }
.co-head h1{ font-size:clamp(30px,4vw,42px); }
.co-head p{ margin-top:10px; line-height:1.6; }
.co-secure{ display:flex; align-items:center; gap:8px; color:var(--grey); font-size:13.5px; }
.co-secure svg{ width:17px; height:17px; color:#1f7a3f; }
.co-grid{ display:grid; grid-template-columns:1fr 400px; gap:36px; align-items:start; padding-bottom:100px; }
.co-step, .order-card, .co-summary{ background:var(--paper); border-radius:24px; padding:30px; margin-bottom:20px; box-shadow:0 1px 3px rgba(10,10,10,.05), 0 10px 24px rgba(10,10,10,.04); }
.co-step h2, .co-summary h2, .order-card h2{ font-size:20px; display:flex; align-items:center; gap:12px; margin-bottom:22px; }
.co-step h2 span{ width:30px; height:30px; border-radius:50%; background:var(--ink); color:var(--paper); display:flex; align-items:center; justify-content:center; font-size:14px; }
.co-fields{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.fld{ display:flex; flex-direction:column; gap:7px; }
.fld.full{ grid-column:1 / -1; }
.fld span{ font-size:13px; font-weight:500; color:#55534f; }
.fld input, .fld select, .fld textarea{
  width:100%; border:1.5px solid var(--line-dark); border-radius:12px; padding:13px 14px; font:15px 'Inter',sans-serif; background:#fff; color:var(--ink);
  transition:border-color .2s, box-shadow .2s;
}
.fld textarea{ resize:vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus{ outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(253,106,31,.14); }
.co-options{ display:flex; flex-direction:column; gap:10px; }
.co-opt{
  display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:16px; border:1.5px solid var(--line-dark); cursor:pointer;
  transition:border-color .2s, background .2s;
}
.co-opt:hover{ border-color:rgba(10,10,10,.35); }
.co-opt:has(input:checked){ border-color:var(--orange); background:rgba(253,106,31,.05); }
.co-opt input{ accent-color:var(--orange); width:19px; height:19px; flex-shrink:0; }
.co-opt-body{ flex:1; display:flex; flex-direction:column; gap:3px; }
.co-opt-body b{ font-size:15px; font-weight:600; }
.co-opt-body small{ font-size:13px; color:var(--grey); line-height:1.45; }
.co-opt-price{ font-weight:600; font-size:14px; white-space:nowrap; }
.co-opt-tag{ font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:20px; background:var(--stone); white-space:nowrap; }
.co-opt-tag.orange{ background:var(--orange); color:var(--ink); }
.co-address{ margin-top:20px; display:flex; flex-direction:column; gap:16px; }
.co-notes{ margin-top:20px; }
.co-side{ position:sticky; top:92px; }
.co-items{ display:flex; flex-direction:column; gap:14px; margin-bottom:20px; }
.co-item{ display:grid; grid-template-columns:56px 1fr auto; gap:12px; align-items:center; position:relative; }
.co-item img{ width:56px; height:56px; object-fit:cover; border-radius:12px; background:#eae7e0; }
.co-q{ position:absolute; left:42px; top:-6px; min-width:21px; height:21px; border-radius:11px; background:var(--grey); color:#fff; font-size:11.5px; font-weight:700; display:flex; align-items:center; justify-content:center; padding:0 5px; }
.co-item strong{ display:block; font-size:14px; font-weight:600; }
.co-item small{ display:block; font-size:12.5px; color:var(--grey); }
.co-item b{ font-size:14px; }
.co-totals{ border-top:1px solid var(--line-dark); padding-top:16px; display:flex; flex-direction:column; gap:10px; }
.co-totals div{ display:flex; justify-content:space-between; gap:12px; font-size:14.5px; }
.co-totals dt{ color:#55534f; }
.co-totals dd{ font-weight:600; text-align:right; }
.co-total{ border-top:1px solid var(--line-dark); padding-top:14px; margin-top:4px; }
.co-total dt{ color:var(--ink); font-weight:600; font-size:16px; }
.co-total dd{ font-family:'Plus Jakarta Sans',sans-serif; font-size:26px; font-weight:800; }
.co-terms{ display:flex; gap:10px; align-items:flex-start; font-size:12.5px; color:#55534f; line-height:1.5; margin:22px 0 16px; cursor:pointer; }
.co-terms input{ accent-color:var(--orange); width:17px; height:17px; margin-top:1px; flex-shrink:0; }
.co-terms a{ text-decoration:underline; }
.co-help{ text-align:center; font-size:13px; color:var(--grey); margin-top:14px; }
.co-help a{ color:var(--orange-dim); font-weight:600; }
.co-errors, .co-notices{ background:#fdecea; color:#8a1c14; border-radius:16px; padding:16px 20px; margin-bottom:20px; font-size:14px; line-height:1.55; }
.co-notices{ background:#fff4e5; color:#7a4100; margin:0 0 16px; font-size:13px; }
.co-empty{ text-align:center; padding:60px 20px 120px; }
.co-empty p{ color:var(--grey); margin:10px 0 24px; }

/* ---------- Pedido ---------- */
.wrap.narrow{ max-width:720px; }
.order-page{ padding-bottom:90px; }
.order-hero{ text-align:center; padding:40px 0 28px; }
.order-ic{ width:68px; height:68px; border-radius:50%; margin:0 auto 18px; display:flex; align-items:center; justify-content:center; background:var(--ink); color:var(--orange); animation:pop .5s cubic-bezier(.3,1.6,.5,1); }
.order-hero.is-ok .order-ic{ background:#1f7a3f; color:#fff; }
.order-hero.is-cancel .order-ic{ background:#b3261e; color:#fff; }
.order-ic svg{ width:32px; height:32px; }
.order-hero h1{ font-size:clamp(26px,4vw,36px); }
.order-hero p{ color:var(--grey); margin-top:10px; }
.timeline{ list-style:none; display:flex; justify-content:space-between; margin:10px 0 30px; position:relative; }
.timeline::before{ content:''; position:absolute; top:9px; left:10%; right:10%; height:2px; background:var(--line-dark); }
.timeline li{ position:relative; flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; font-size:12px; color:var(--grey); text-align:center; }
.timeline li span{ width:20px; height:20px; border-radius:50%; background:#fbfaf7; border:2px solid var(--line-dark); }
.timeline li.done span{ background:var(--ink); border-color:var(--ink); }
.timeline li.now span{ background:var(--orange); border-color:var(--orange); box-shadow:0 0 0 5px rgba(253,106,31,.2); }
.timeline li.done, .timeline li.now{ color:var(--ink); font-weight:600; }
.order-card p{ font-size:14.5px; line-height:1.6; margin-bottom:16px; }
.order-card .warn{ color:#8a1c14; background:#fdecea; padding:12px 16px; border-radius:12px; }
.pay-box{ border:2px solid var(--orange); }
.bank{ display:flex; flex-direction:column; margin:4px 0 20px; border:1px solid var(--line-dark); border-radius:16px; overflow:hidden; }
.bank div{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:13px 16px; border-bottom:1px solid var(--line-dark); }
.bank div:last-child{ border-bottom:none; }
.bank dt{ font-size:13px; color:var(--grey); }
.bank dd{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:14.5px; text-align:right; word-break:break-all; }
.copy{ border:1px solid var(--line-dark); background:#fff; border-radius:20px; padding:5px 12px; font:600 12px 'Inter',sans-serif; cursor:pointer; white-space:nowrap; }
.copy:hover{ border-color:var(--ink); }
.order-meta{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:22px; padding-top:18px; border-top:1px solid var(--line-dark); }
.order-meta div{ display:flex; flex-direction:column; gap:3px; font-size:14px; }
.order-meta span{ font-size:12px; color:var(--grey); text-transform:uppercase; letter-spacing:.06em; }
.order-meta small{ color:var(--grey); }
.order-foot{ text-align:center; font-size:13px; color:var(--grey); margin-top:8px; }
.order-foot a{ text-decoration:underline; }
.big-code{ font-family:'Plus Jakarta Sans',sans-serif; font-size:20px; color:var(--orange-dim); }
.state-page{ text-align:center; padding:120px 0; }
.state-page p{ color:var(--grey); margin:12px 0 26px; }
.footer-bottom .pay-logos{ color:rgba(255,255,255,.3); }
.footer-social{ margin-top:6px; }

@media (max-width:980px){
  .pdp{ grid-template-columns:1fr; gap:30px; }
  .pgallery{ position:static; }
  .co-grid{ grid-template-columns:1fr; }
  .co-side{ position:static; }
}
@media (max-width:600px){
  body.inner{ padding-top:64px; }
  .co-step, .order-card, .co-summary{ padding:22px 18px; border-radius:20px; }
  .co-fields{ grid-template-columns:1fr; }
  .co-opt{ flex-wrap:wrap; }
  .pbuy{ flex-direction:column; }
  .pbuy .qty{ align-self:flex-start; }
  .order-meta{ grid-template-columns:1fr; }
  .timeline li{ font-size:10.5px; }
  .shop-filters select{ flex:1; }
  .cart-head, .cart-items, .cart-foot{ padding-left:18px; padding-right:18px; }
}

/* ---------- Mejoras de experiencia (oct 2026) ---------- */
/* el botón flotante de WhatsApp no tapa botones de compra ni el carrito abierto */
body.cart-lock #fab{ display:none; }
/* barra fija de compra en la ficha (celular) */
.buybar{
  position:fixed; left:0; right:0; bottom:0; z-index:90; display:none; align-items:center; gap:14px;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px); border-top:1px solid var(--line-dark); box-shadow:0 -8px 24px rgba(0,0,0,.08);
  transform:translateY(110%); transition:transform .3s ease;
}
.buybar.show{ transform:translateY(0); }
.buybar-info{ flex:1; min-width:0; display:flex; flex-direction:column; }
.buybar-info small{ font-size:12px; color:var(--grey); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.buybar-info strong{ font-family:'Plus Jakarta Sans',sans-serif; font-size:20px; }
.buybar .btn{ border-radius:14px; padding:14px 20px; }
/* barra de envío gratis en el carrito */
.free-ship{ margin:10px 0 4px; font-size:13px; }
.free-ship p{ margin-bottom:7px; }
.free-ship span{ display:block; height:6px; border-radius:6px; background:var(--line-dark); overflow:hidden; }
.free-ship i{ display:block; height:100%; width:0; background:var(--orange); border-radius:6px; transition:width .4s ease; }
.free-ship.done i{ background:#1f7a3f; }
.free-ship.done p{ color:#1f7a3f; }
/* resumen desplegable arriba del checkout (sólo celular) */
.co-mini{ display:none; }
p.co-terms{ display:block; }

@media (max-width:840px){
  .pdp-page #fab, .co-page #fab{ display:none; }
  .buybar{ display:flex; }
  .pdp-page footer{ padding-bottom:70px; }
}
@media (max-width:980px){
  .co-mini{
    display:block; background:var(--paper); border-radius:18px; margin-bottom:16px;
    box-shadow:0 1px 3px rgba(10,10,10,.05), 0 10px 24px rgba(10,10,10,.04);
  }
  .co-mini summary{ display:flex; justify-content:space-between; align-items:center; padding:16px 20px; cursor:pointer; list-style:none; font-weight:600; font-size:14.5px; }
  .co-mini summary::-webkit-details-marker{ display:none; }
  .co-mini summary span{ color:var(--orange-dim); }
  .co-mini summary span::after{ content:' ▾'; }
  .co-mini[open] summary span::after{ content:' ▴'; }
  .co-mini summary b{ font-family:'Plus Jakarta Sans',sans-serif; font-size:19px; }
  .co-mini .co-items{ padding:4px 20px 18px; margin:0; }
}
@media (max-width:600px){
  /* la tienda arranca más arriba: menos portada, más productos */
  .shop-hero{ padding-top:100px; padding-bottom:26px; }
  .shop-hero h1{ font-size:32px; }
  .shop-hero p{ display:none; }
  .perks{ flex-wrap:nowrap; overflow-x:auto; margin:18px -16px 0; padding:0 16px; scrollbar-width:none; }
  .perks::-webkit-scrollbar{ display:none; }
  .perks span{ white-space:nowrap; flex-shrink:0; }
  .shop-body{ padding-top:24px; }
}

/* ==========================================================================
   Súper ecommerce: minorista/mayorista, ofertas, cupones, rubros
   ========================================================================== */

/* ---------- Barra de anuncio + menú ---------- */
.annc{
  position:fixed; top:0; left:0; right:0; z-index:60; height:34px; display:flex; align-items:center; justify-content:center;
  background:var(--orange); color:var(--ink); font:600 13px/1 'Inter',sans-serif; padding:0 16px; text-align:center;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
a.annc:hover{ text-decoration:underline; }
html.has-annc header{ top:34px; }
html.has-annc body.inner{ padding-top:106px; }
header{ gap:18px; }
header .brand{ flex-shrink:0; }
header nav{ gap:22px; font-size:13.5px; }
header nav .nav-hot{ color:var(--orange); opacity:1; font-weight:600; }
header.on-light nav .nav-hot{ color:var(--orange-dim); }
.nav-m-only{ display:none; }
.icon-btn{
  position:relative; width:42px; height:42px; border-radius:50%; border:none; background:transparent; color:inherit;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background .2s ease;
}
.icon-btn:hover{ background:rgba(127,127,127,.15); }
.icon-btn svg{ width:22px; height:22px; }
.icon-btn.is-logged::after{ content:''; position:absolute; right:8px; bottom:8px; width:9px; height:9px; border-radius:50%; background:#1f9d55; border:2px solid #fff; }
header.solid{ background:rgba(255,255,255,.95); color:var(--ink); }
.head-search{
  display:none; position:absolute; left:0; right:0; top:100%; padding:12px 28px 16px; gap:10px; align-items:center;
  background:var(--paper); color:var(--ink); border-bottom:1px solid var(--line-dark); box-shadow:0 14px 30px rgba(0,0,0,.08);
}
header.search-open .head-search{ display:flex; }
.head-search svg{ width:20px; height:20px; color:var(--grey); flex-shrink:0; }
.head-search input{ flex:1; min-width:0; border:none; outline:none; font:16px 'Inter',sans-serif; padding:10px 0; background:transparent; }
.head-search .btn{ padding:11px 20px; border-radius:12px; }
@media (max-width:1080px){ header nav{ gap:16px; font-size:13px; } }
@media (max-width:980px){
  .menu-btn{ display:flex; }
  header nav{ display:none; }
  .nav-m-only{ display:block; }
  header.menu-open nav{
    display:flex; flex-direction:column; gap:0; position:absolute; top:100%; left:12px; right:12px; margin:8px 0 0;
    background:var(--paper); color:var(--ink); border-radius:18px; padding:8px; box-shadow:0 20px 50px rgba(0,0,0,.22);
  }
  header.menu-open nav a{ padding:14px 16px; border-radius:12px; font-size:16px; opacity:1; }
  header.menu-open nav a:hover{ background:var(--stone); }
}
@media (max-width:600px){
  .annc{ font-size:12px; height:30px; }
  html.has-annc header{ top:30px; }
  html.has-annc body.inner{ padding-top:94px; }
  .head-search{ padding:10px 16px 14px; }
  header{ gap:6px; }
  .icon-btn{ width:38px; height:38px; }
}

/* ---------- Tarjetas: ofertas y precios ---------- */
.flags{ position:absolute; left:12px; top:12px; z-index:2; display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.flag{ font-size:11.5px; font-weight:700; padding:6px 11px; border-radius:20px; line-height:1; }
.flag-off{ background:#e11d48; color:#fff; font-size:13px; }
.flag-out{ background:var(--ink); color:var(--paper); }
.flag-low{ background:var(--orange); color:var(--ink); }
.cond.repuesto{ background:#eef2ff; color:#3730a3; border:1.3px solid #c7d2fe; }
.pricebox{ margin-top:auto; display:flex; flex-direction:column; gap:2px; }
.p-label{ font-size:12.5px; color:var(--grey); }
.p-label.w{ color:#1a4fa0; font-weight:600; }
.p-row{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.p-main{ font-family:'Plus Jakarta Sans',sans-serif; font-size:24px; font-weight:800; color:var(--ink); letter-spacing:-.01em; }
.p-was{ font-size:14px; color:var(--grey); }
.p-sub{ font-size:12.5px; color:var(--grey); }
.p-sub.o{ color:var(--orange-dim); font-weight:600; }
.p-w{ display:inline-flex; width:fit-content; margin-top:6px; font-size:12px; font-weight:600; color:#1a4fa0; background:#e8f0fe; padding:4px 10px; border-radius:20px; }
.p-w:hover{ background:#d4e3fd; }
.btn-add svg{ width:17px; height:17px; }
.view-w .phone-card .p-main, .is-wholesale .phone-card .p-main{ color:#1a4fa0; }

/* ---------- Tienda: minorista / mayorista ---------- */
.mode-switch-big{ display:inline-flex; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); border-radius:40px; padding:5px; margin-bottom:22px; position:relative; z-index:1; }
.mode-switch-big a{ padding:10px 22px; border-radius:30px; font-weight:600; font-size:14px; color:rgba(255,255,255,.7); transition:background .2s, color .2s; }
.mode-switch-big a.on{ background:var(--paper); color:var(--ink); }
.shop-hero.is-w{ background:linear-gradient(120deg, #0a0a0a 40%, #10213f); }
.shop-hero.is-w::after{ background:radial-gradient(circle, rgba(64,132,255,.28), transparent 70%); }
.shop-hero p b{ color:var(--paper); }
.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; position:relative; z-index:1; }
.hero-ctas .btn{ border-radius:14px; }
.tab-hot{ color:#e11d48 !important; }
.tab-hot.active{ color:var(--paper) !important; }
.sub-chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{ border:1px solid var(--line-dark); background:var(--paper); border-radius:30px; padding:8px 16px; font:500 13px 'Inter',sans-serif; cursor:pointer; color:var(--ink); }
.chip.on{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.shop-count{ font-size:13px; color:var(--grey); margin:-14px 0 16px; }

/* ---------- Ficha: oferta, mayorista, cantidad ---------- */
.offer-strip{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:18px; background:#fff1f3; color:#9f1239; border-radius:14px; padding:10px 14px; font-size:13.5px; }
.offer-strip b{ background:#e11d48; color:#fff; padding:4px 10px; border-radius:20px; font-size:12.5px; }
.offer-strip time{ font-variant-numeric:tabular-nums; font-weight:700; }
.pprice-row{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; }
.pprice-row s{ font-size:18px; color:var(--grey); }
.pprice-tag{ display:block; font-size:13px; font-weight:700; color:#1a4fa0; margin-bottom:2px; }
.is-wholesale .pprice strong{ color:#1a4fa0; }
.pprice-sub{ display:block; font-size:13.5px; color:var(--grey); margin-top:4px; }
.wbox{ display:flex; align-items:center; gap:14px; margin:14px 0 4px; padding:14px 16px; border-radius:16px; background:#eef4ff; color:#10213f; transition:background .2s; }
.wbox:hover{ background:#e1ecff; }
.wbox > span{ width:40px; height:40px; border-radius:12px; background:#1a4fa0; color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.wbox svg{ width:21px; height:21px; }
.wbox b{ display:block; font-size:15px; }
.wbox small{ font-size:12.5px; color:#3b5486; }
.qtybox{ display:flex; gap:10px; align-items:center; margin-top:10px; font-size:13.5px; background:#fff7ed; color:#7a4100; padding:11px 14px; border-radius:14px; }
.qtybox svg{ width:19px; height:19px; flex-shrink:0; }
.pg-stage .flags{ top:16px; left:16px; }

/* ---------- Carrito: metas y precios ---------- */
.mode-pill{ display:inline-block; vertical-align:middle; margin-left:8px; font:700 11px 'Inter',sans-serif; background:#e8f0fe; color:#1a4fa0; padding:4px 10px; border-radius:20px; }
.cart-goals{ padding:0 24px; }
.cart-goals:empty{ display:none; }
.goal{ padding:12px 0 2px; font-size:13px; }
.goal p{ margin-bottom:7px; }
.goal span{ display:block; height:6px; border-radius:6px; background:var(--line-dark); overflow:hidden; }
.goal i{ display:block; height:100%; background:var(--orange); border-radius:6px; transition:width .4s ease; }
.goal.done p{ color:#1f7a3f; }
.goal.done i{ background:#1f7a3f; }
.ci-unit{ font-size:12px; color:var(--grey); margin-top:4px; display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.ci-unit em{ font-style:normal; font-weight:700; font-size:10.5px; padding:2px 7px; border-radius:10px; }
.ci-unit .t-w{ background:#e8f0fe; color:#1a4fa0; }
.ci-unit .t-o{ background:#fff1f3; color:#be123c; }
.cart-lines div{ display:flex; justify-content:space-between; font-size:13px; color:#1f7a3f; margin-bottom:6px; }
.cart-empty svg{ width:44px; height:44px; color:var(--line-dark); }

/* ---------- Checkout: cupón y mayorista ---------- */
.coupon{ display:flex; gap:8px; margin:4px 0 6px; }
.coupon input{ flex:1; min-width:0; border:1.5px dashed rgba(10,10,10,.25); border-radius:12px; padding:11px 13px; font:600 14px 'Inter',sans-serif; text-transform:uppercase; }
.coupon input:focus{ outline:none; border-color:var(--orange); }
.coupon .btn{ padding:11px 16px; border-radius:12px; font-size:13.5px; }
.coupon-msg{ font-size:12.5px; margin:0 0 12px; }
.coupon-msg.ok{ color:#1f7a3f; }
.coupon-msg.bad{ color:#b3261e; }
.co-mode{ font-size:13px; background:#fff7ed; color:#7a4100; border-radius:12px; padding:10px 13px; margin:0 0 14px; }
.co-mode.on{ background:#e8f0fe; color:#10213f; }
.co-discs{ display:flex; flex-direction:column; gap:10px; }
.co-discs dd{ color:#1f7a3f; }

/* ---------- Inicio: promos, rubros, mayoristas ---------- */
.promo-band{ background:var(--stone); padding:36px 0 0; }
.promo-track{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; border-radius:26px; scrollbar-width:none; }
.promo-track::-webkit-scrollbar{ display:none; }
.promo-slide{
  flex:0 0 100%; scroll-snap-align:start; min-height:260px; background-size:cover; background-position:center; position:relative;
  display:flex; align-items:flex-end; color:#fff;
}
.promo-slide::before{ content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.05) 70%); }
.promo-txt{ position:relative; padding:34px 40px; max-width:560px; display:flex; flex-direction:column; gap:8px; }
.promo-txt strong{ font-family:'Plus Jakarta Sans',sans-serif; font-size:clamp(24px,3.4vw,38px); line-height:1.1; }
.promo-txt span{ font-size:15.5px; opacity:.85; }
.promo-txt em{ font-style:normal; font-weight:700; color:var(--orange); }
.promo-dots{ display:flex; justify-content:center; gap:8px; margin-top:14px; }
.promo-dots button{ width:8px; height:8px; border-radius:8px; border:none; background:rgba(10,10,10,.2); cursor:pointer; transition:width .3s, background .3s; padding:0; }
.promo-dots button.on{ width:26px; background:var(--ink); }
.home-shop .sec-head{ margin-bottom:28px; }
.cat-tiles{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:16px; margin-bottom:64px; }
.cat-tile{
  position:relative; display:flex; flex-direction:column; gap:4px; padding:24px; border-radius:22px; background:var(--paper);
  box-shadow:0 1px 3px rgba(10,10,10,.06), 0 10px 24px rgba(10,10,10,.05); transition:transform .25s, box-shadow .25s; overflow:hidden;
}
.cat-tile:hover{ transform:translateY(-4px); box-shadow:0 18px 36px rgba(10,10,10,.12); }
.ct-ic{ width:48px; height:48px; border-radius:14px; background:var(--ink); color:var(--orange); display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.ct-ic svg{ width:24px; height:24px; }
.cat-tile strong{ font-family:'Plus Jakarta Sans',sans-serif; font-size:20px; }
.cat-tile small{ font-size:13px; color:var(--grey); }
.ct-go{ position:absolute; right:22px; top:24px; font-size:20px; color:var(--grey); transition:transform .25s; }
.cat-tile:hover .ct-go{ transform:translateX(4px); color:var(--ink); }
.cat-tile.is-hot{ background:linear-gradient(135deg, #e11d48, var(--orange)); color:#fff; }
.cat-tile.is-hot .ct-ic{ background:rgba(255,255,255,.2); color:#fff; }
.cat-tile.is-hot small, .cat-tile.is-hot .ct-go{ color:rgba(255,255,255,.85); }
.cat-tile.is-dark{ background:var(--ink); color:#fff; }
.cat-tile.is-dark .ct-ic{ background:var(--orange); color:var(--ink); }
.row-head{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin:0 0 22px; }
.row-head h3{ font-size:26px; display:flex; align-items:center; gap:10px; }
.row-head a{ font-size:14px; font-weight:600; color:var(--orange-dim); }
.row-head + .stock-grid{ margin-bottom:56px; }
.hot-dot{ width:11px; height:11px; border-radius:50%; background:#e11d48; box-shadow:0 0 0 5px rgba(225,29,72,.18); }
.home-shop .stock-grid{ grid-template-columns:repeat(auto-fill, minmax(250px,1fr)); }
.wband{ background:linear-gradient(120deg, #0a0a0a 45%, #10213f); color:#fff; padding:80px 0; }
.wband-in{ display:flex; justify-content:space-between; align-items:center; gap:30px; flex-wrap:wrap; }
.wband h2{ font-size:clamp(28px,3.6vw,42px); }
.wband p{ color:rgba(255,255,255,.7); margin-top:12px; max-width:560px; line-height:1.6; }
.wband-ctas{ display:flex; gap:12px; flex-wrap:wrap; }
.wband-ctas .btn{ border-radius:14px; }

/* ---------- Franja de confianza (todas las páginas) ---------- */
.trust-strip{ background:var(--paper); border-top:1px solid var(--line-dark); padding:34px 0; }
.trust-strip .wrap{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.trust-strip .wrap > div{ display:grid; grid-template-columns:40px 1fr; column-gap:12px; align-items:center; }
.trust-strip svg{ grid-row:span 2; width:30px; height:30px; color:var(--orange-dim); }
.trust-strip b{ font-size:14px; }
.trust-strip span{ font-size:12.5px; color:var(--grey); }
.trust-strip a{ text-decoration:underline; }
.footer-grid{ grid-template-columns:1.3fr 1fr 1fr 1fr; }
.footer-col .admin-link{ margin-top:14px; }
@media (max-width:900px){ .trust-strip .wrap{ grid-template-columns:1fr 1fr; } }
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .trust-strip .wrap{ grid-template-columns:1fr; } }

/* ---------- Mayoristas y cuenta ---------- */
.how{ padding:60px 0 20px; }
.how h2{ font-size:30px; margin-bottom:24px; }
.how-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:16px; }
.how-card{ background:var(--paper); border-radius:22px; padding:26px; box-shadow:0 1px 3px rgba(10,10,10,.05), 0 10px 24px rgba(10,10,10,.04); }
.how-n{ width:34px; height:34px; border-radius:50%; background:#1a4fa0; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; margin-bottom:16px; }
.how-card h3{ font-size:18px; margin-bottom:8px; }
.how-card p{ font-size:14.5px; color:#55534f; line-height:1.6; }
.reg{ max-width:760px; padding:30px 0 100px; }
.fld select{ background:#fff; }
.acct-status{ border-left:6px solid var(--grey); }
.acct-status.s-aprobado{ border-left-color:#1f7a3f; }
.acct-status.s-pendiente{ border-left-color:var(--orange); }
.acct-status.s-rechazado{ border-left-color:#b3261e; }
.acct-orders{ display:flex; flex-direction:column; }
.acct-orders a{ display:grid; grid-template-columns:1fr auto auto; gap:14px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line-dark); }
.acct-orders small{ display:block; color:var(--grey); font-size:12.5px; }
.acct-orders .st{ font-size:12px; background:var(--stone); padding:4px 10px; border-radius:20px; }
.acct-logout{ text-align:center; padding-bottom:80px; }
@media (max-width:600px){
  .shop-hero.is-w p{ display:block; }
  .promo-slide{ min-height:200px; }
  .promo-txt{ padding:22px; }
  .cat-tiles{ grid-template-columns:1fr 1fr; gap:10px; margin-bottom:44px; }
  .cat-tile{ padding:16px; border-radius:18px; }
  .cat-tile strong{ font-size:16px; }
  .cat-tile small{ font-size:11.5px; }
  .ct-ic{ width:40px; height:40px; margin-bottom:10px; }
  .ct-go{ display:none; }
  .row-head h3{ font-size:21px; }
  .home-shop .stock-grid, .shop-body .stock-grid, .prelated .stock-grid{ grid-template-columns:1fr 1fr; gap:12px; }
  .phone-card .body{ padding:14px 14px 16px; }
  .phone-card h3{ font-size:16px; }
  .phone-card .storage{ font-size:12px; margin-bottom:10px; }
  .phone-card .cond{ font-size:10.5px; padding:4px 9px; margin-bottom:10px; }
  .p-main{ font-size:18px; }
  .p-was, .p-sub, .p-label{ font-size:11.5px; }
  .p-w{ font-size:11px; padding:3px 8px; }
  .card-actions .btn{ font-size:12.5px; padding:11px 8px; }
  .phone-card{ border-radius:18px; }
  .phone-card .shot{ border-radius:18px 18px 0 0; }
  .flag{ font-size:10.5px; padding:5px 8px; }
  .mode-switch-big a{ padding:9px 18px; font-size:13.5px; }
  .wband{ padding:56px 0; }
}

/* ajustes finos */
.icon-btn.menu-btn{ display:none; }
@media (max-width:980px){ .icon-btn.menu-btn{ display:flex; } }
@media (max-width:600px){ .phone-card .p-sub.o{ display:none; } }
