/* ============================================================
   CABUB CAJAS MISTERIOSAS — Estilos
   Dirección "sello premium": tinta + porcelana + champán,
   coral SOLO en el botón de compra. Acento por categoría.
   ============================================================ */
:root{
  --tinta:#1C1714; --porcelana:#F6F1EC;
  --bg:#F6F1EC; --surface:#FFFFFF; --surface-2:#FBF7F2;
  --fg:#1C1714; --muted:#6B6560; --border:#E7DFD5;
  --champan:#C7A265; --champan-d:#8A6A24;
  --malva:#BC6C86; --coral:#F1592B; --coral-d:#D8431E;
  --shadow:0 10px 30px rgba(28,23,20,.08);
  --shadow-sm:0 4px 14px rgba(28,23,20,.07);
  --acc:#C7A265; --acc-text:#8A6A24; --acc-tint:rgba(199,162,101,.14);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --bg:#141019; --surface:#201A22; --surface-2:#1A151C;
  --fg:#F2EBE3; --muted:#B4A9B0; --border:#352C38;
  --champan:#D9B477; --champan-d:#E6C690;
  --malva:#D18AA3; --coral:#FF6A3D; --coral-d:#F1592B;
  --shadow:0 14px 34px rgba(0,0,0,.45); --shadow-sm:0 6px 18px rgba(0,0,0,.4);
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#141019; --surface:#201A22; --surface-2:#1A151C;
  --fg:#F2EBE3; --muted:#B4A9B0; --border:#352C38;
  --champan:#D9B477; --champan-d:#E6C690;
  --malva:#D18AA3; --coral:#FF6A3D; --coral-d:#F1592B;
  --shadow:0 14px 34px rgba(0,0,0,.45); --shadow-sm:0 6px 18px rgba(0,0,0,.4);
  color-scheme:dark;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0; background:var(--bg); color:var(--fg);
  font-family:'IBM Plex Sans',system-ui,-apple-system,sans-serif; line-height:1.55;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;}
img{max-width:100%; display:block}
h1,h2,h3{text-wrap:balance; margin:0}
h1,h2,h3,.brand-word,.btn,.eyebrow,.box-name,.step-n,.stat-n,.co-h,.drawer-head h3{font-family:'Manrope',system-ui,sans-serif}
a{color:inherit}
button{font-family:inherit}

.wrap{width:100%; max-width:1120px; margin:0 auto;
  padding-left:max(18px,env(safe-area-inset-left,0px));
  padding-right:max(18px,env(safe-area-inset-right,0px));}

.eyebrow{display:inline-block; font-weight:800; font-size:11px; letter-spacing:1.4px;
  text-transform:uppercase; color:var(--acc-text); background:var(--acc-tint);
  padding:5px 12px; border-radius:20px;}

/* botones */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:9px;
  background:var(--coral); color:#fff; text-decoration:none; border:0; cursor:pointer;
  font-weight:800; font-size:15px; padding:13px 24px; border-radius:11px;
  transition:transform .15s, background .15s; box-shadow:0 6px 18px rgba(241,89,43,.28);}
.btn:hover{background:var(--coral-d); transform:translateY(-2px)}
.btn:disabled{opacity:.55; cursor:not-allowed; transform:none}
.btn svg{width:18px;height:18px}
.btn-full{width:100%}
.btn-ghost{background:transparent; color:var(--fg); border:1.5px solid var(--border); box-shadow:none; font-weight:700}
.btn-ghost:hover{background:var(--surface-2); border-color:var(--acc); color:var(--acc-text); transform:none}
.icon-btn{background:none; border:0; color:var(--muted); cursor:pointer; width:38px;height:38px; border-radius:9px; display:grid; place-items:center}
.icon-btn:hover{background:var(--surface-2); color:var(--fg)}
.icon-btn svg{width:20px;height:20px}

/* promo */
.promo{background:var(--tinta); color:var(--porcelana)}
.promo .wrap{display:flex; align-items:center; justify-content:center; gap:10px; padding-block:8px; font-size:12.5px; font-weight:500; text-align:center}
.promo b{color:var(--champan); font-weight:800}

/* header */
header.site{position:sticky; top:0; z-index:50;
  background:color-mix(in srgb,var(--surface) 90%, transparent);
  backdrop-filter:saturate(1.3) blur(10px); border-bottom:1px solid var(--border)}
header.site .wrap{display:flex; align-items:center; justify-content:space-between; padding-block:12px; gap:14px}
.brand{display:inline-flex; align-items:center; gap:11px; text-decoration:none}
.brand svg{width:42px;height:42px; flex:0 0 auto}
.brand-word{font-weight:800; letter-spacing:-.5px; font-size:22px; line-height:1; color:var(--fg); display:flex; flex-direction:column}
.brand-word small{font-weight:800; letter-spacing:2.5px; font-size:9px; margin-top:3px; color:var(--champan-d)}
.nav{display:flex; align-items:center; gap:20px}
.nav>a{text-decoration:none; font-weight:600; font-size:14.5px; color:var(--muted); transition:color .15s}
.nav>a:hover{color:var(--fg)}
.theme-btn{background:none; border:1px solid var(--border); color:var(--muted); width:36px;height:36px; border-radius:9px; cursor:pointer; display:grid; place-items:center}
.theme-btn svg{width:17px;height:17px}
.nav-cart{position:relative; background:var(--tinta); color:#fff; border:0; cursor:pointer; width:40px;height:40px; border-radius:10px; display:grid; place-items:center}
.nav-cart svg{width:20px;height:20px}
.cart-count{position:absolute; top:-6px; right:-6px; background:var(--coral); color:#fff; font-family:'Manrope'; font-weight:800; font-size:11px; min-width:19px; height:19px; padding:0 5px; border-radius:10px; display:grid; place-items:center; border:2px solid var(--surface)}
.cart-count.hide{display:none}
@media (max-width:720px){ .nav>a{display:none} }

/* hero */
.hero{padding-block:clamp(30px,5vw,58px)}
.hero .wrap{display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(24px,4vw,56px); align-items:center}
.hero-tit{font-weight:800; font-size:clamp(30px,5vw,52px); line-height:1.05; letter-spacing:-1px; margin:16px 0 14px}
.hero-tit span{color:var(--champan-d)}
.hero-sub{font-size:clamp(15px,1.6vw,18px); color:var(--muted); max-width:46ch; margin-bottom:26px}
.hero-cta{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.hero-guar{margin-top:22px; display:inline-flex; align-items:center; gap:10px; font-size:13px; color:var(--muted); background:var(--surface); border:1px solid var(--border); padding:9px 14px; border-radius:11px; box-shadow:var(--shadow-sm)}
.hero-guar b{color:var(--fg); font-family:'Manrope'}
.hero-guar .dot{width:8px;height:8px; border-radius:50%; background:var(--champan); flex:0 0 auto}
.hero-art{position:relative; display:grid; place-items:center; min-height:260px}
.hero-art .halo{position:absolute; width:78%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,var(--acc-tint),transparent 68%); filter:blur(4px)}
.sealed{width:min(360px,80%); height:auto; filter:drop-shadow(0 24px 40px rgba(28,23,20,.22)); animation:float 6s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.float-chip{position:absolute; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:8px 13px; font-size:12px; font-weight:600; box-shadow:var(--shadow-sm); display:flex; align-items:center; gap:7px}
.float-chip svg{width:15px;height:15px; color:var(--champan-d)}
.fc-1{top:6%; left:-4%}.fc-2{bottom:10%; right:-2%}
@media (max-width:760px){
  .hero .wrap{grid-template-columns:1fr; text-align:center}
  .hero-sub{margin-inline:auto}.hero-cta{justify-content:center}
  .hero-art{order:-1}.fc-1,.fc-2{display:none}
}
@media (prefers-reduced-motion:reduce){ .sealed{animation:none} }

/* secciones */
section{padding-block:clamp(34px,5vw,60px)}
.sec-head{text-align:center; max-width:620px; margin:0 auto clamp(26px,4vw,40px)}
.sec-head h2{font-size:clamp(24px,3.4vw,36px); letter-spacing:-.6px; margin:12px 0 10px}
.sec-head p{color:var(--muted); font-size:15.5px; margin:0}
.band{background:var(--surface-2); border-block:1px solid var(--border)}

/* grid de cajas */
.box-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(248px,1fr)); gap:20px}
.box-card{position:relative; background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:26px 22px 22px; overflow:hidden; transition:transform .18s, box-shadow .18s, border-color .18s}
.box-card::before{content:""; position:absolute; inset:0 0 auto; height:5px; background:var(--acc)}
.box-card:hover{transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--acc)}
.box-top{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px}
.box-ic{width:56px;height:56px; border-radius:15px; background:var(--acc-tint); color:var(--acc-text); display:grid; place-items:center; flex:0 0 auto}
.box-ic svg{width:28px;height:28px}
.box-rare{font-size:10px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; color:var(--acc-text); background:var(--acc-tint); padding:4px 9px; border-radius:20px; white-space:nowrap}
.box-name{font-weight:800; font-size:19px; letter-spacing:-.3px; margin-bottom:4px}
.box-desc{font-size:13.5px; color:var(--muted); margin-bottom:16px; min-height:40px}
.box-tags{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:18px}
.box-tags span{font-size:11.5px; color:var(--muted); background:var(--surface-2); border:1px solid var(--border); padding:3px 9px; border-radius:7px}
.box-foot{display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:16px; border-top:1px dashed var(--border)}
.box-price{display:flex; flex-direction:column}
.box-price b{font-family:'Manrope'; font-weight:800; font-size:22px}
.box-price small{font-size:11px; color:var(--acc-text); font-weight:600}
.box-btn{background:var(--acc-tint); color:var(--acc-text); border:0; cursor:pointer; font-family:'Manrope'; font-weight:800; font-size:13px; padding:10px 15px; border-radius:10px; display:inline-flex; align-items:center; gap:6px; transition:background .15s, color .15s}
.box-btn:hover{background:var(--acc); color:#fff}
.box-btn svg{width:15px;height:15px}

/* pasos */
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.step{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:24px 20px}
.step-n{width:40px;height:40px; border-radius:11px; background:var(--tinta); color:var(--porcelana); display:grid; place-items:center; font-weight:800; font-size:17px; margin-bottom:14px}
.step h3{font-size:17px; margin-bottom:7px}
.step p{color:var(--muted); font-size:14px; margin:0}
@media (max-width:720px){ .steps{grid-template-columns:1fr} }

/* stats */
.stats{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; text-align:center}
.stat{background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:22px 14px}
.stat-n{font-weight:800; font-size:clamp(22px,3vw,30px); color:var(--champan-d); line-height:1}
.stat p{margin:8px 0 0; font-size:12.5px; color:var(--muted)}
@media (max-width:620px){ .stats{grid-template-columns:repeat(2,1fr)} }

/* reseñas */
.reviews{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px}
.review{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:22px}
.review .stars{color:var(--champan); letter-spacing:2px; font-size:14px; margin-bottom:10px}
.review p{font-size:14.5px; margin:0 0 14px}
.review .who{display:flex; align-items:center; gap:10px}
.review .av{width:38px;height:38px; border-radius:50%; background:var(--acc-tint); color:var(--acc-text); display:grid; place-items:center; font-family:'Manrope'; font-weight:800; font-size:15px}
.review .who b{font-family:'Manrope'; font-size:14px}.review .who small{display:block; color:var(--muted); font-size:12px}
.note{max-width:1120px; margin:14px auto 0; padding-inline:max(18px,env(safe-area-inset-left,0px)); font-size:12px; color:var(--muted); font-style:italic; text-align:center}

/* cta final */
.cta-final{background:var(--tinta); color:var(--porcelana); border-radius:22px; padding:clamp(32px,5vw,52px); text-align:center; overflow:hidden; position:relative}
.cta-final::after{content:""; position:absolute; width:340px; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,rgba(199,162,101,.3),transparent 70%); top:-120px; right:-80px}
.cta-final h2{font-size:clamp(24px,3.4vw,34px); margin-bottom:12px; position:relative}
.cta-final p{color:#D8CFC4; max-width:48ch; margin:0 auto 24px; position:relative}
.cta-final .btn{position:relative}

/* footer */
footer{border-top:1px solid var(--border); padding-block:30px; color:var(--muted); font-size:13px}
footer .wrap{display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between}
footer .pays{display:flex; gap:10px; align-items:center}
footer .pays span{background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:5px 11px; font-weight:700; font-family:'Manrope'; font-size:12px; color:var(--fg)}

/* ===================== CARRITO (drawer) ===================== */
.drawer-ov{position:fixed; inset:0; background:rgba(28,23,20,.5); z-index:70; backdrop-filter:blur(2px)}
.drawer{position:fixed; top:0; right:0; height:100%; width:min(420px,100%); background:var(--surface); z-index:71;
  display:flex; flex-direction:column; transform:translateX(100%); transition:transform .25s ease; box-shadow:-10px 0 40px rgba(0,0,0,.18);
  padding-right:env(safe-area-inset-right,0px)}
.drawer.open{transform:translateX(0)}
.drawer-head{display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--border)}
.drawer-head h3{font-size:19px}
.drawer-body{flex:1; overflow-y:auto; padding:16px 20px; display:flex; flex-direction:column; gap:12px}
.ci{display:flex; gap:12px; align-items:flex-start; background:var(--surface-2); border:1px solid var(--border); border-radius:14px; padding:12px}
.ci-ic{width:44px;height:44px; border-radius:11px; display:grid; place-items:center; flex:0 0 auto; background:var(--acc-tint); color:var(--acc-text)}
.ci-ic svg{width:22px;height:22px}
.ci-mid{flex:1; min-width:0}
.ci-nom{font-family:'Manrope'; font-weight:700; font-size:14px}
.ci-precio{font-size:12.5px; color:var(--muted)}
.ci-qty{display:inline-flex; align-items:center; gap:0; margin-top:8px; border:1px solid var(--border); border-radius:9px; overflow:hidden; background:var(--surface)}
.ci-qty button{width:30px;height:30px; border:0; background:none; color:var(--fg); cursor:pointer; display:grid; place-items:center}
.ci-qty button:hover{background:var(--surface-2)}
.ci-qty button svg{width:15px;height:15px}
.ci-qty span{min-width:30px; text-align:center; font-family:'Manrope'; font-weight:700; font-size:14px}
.ci-right{display:flex; flex-direction:column; align-items:flex-end; gap:8px}
.ci-tot{font-family:'Manrope'; font-weight:800; font-size:14px; white-space:nowrap}
.ci-del{border:0; background:none; color:var(--muted); cursor:pointer; padding:2px}
.ci-del:hover{color:var(--coral)}
.ci-del svg{width:17px;height:17px}
.drawer-empty{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:var(--muted); text-align:center; padding:30px}
.drawer-empty svg{color:var(--border)}
.drawer-foot{border-top:1px solid var(--border); padding:16px 20px calc(16px + env(safe-area-inset-bottom,0px)); display:flex; flex-direction:column; gap:12px}
.drawer-line{display:flex; align-items:center; justify-content:space-between; font-size:15px}
.drawer-line strong{font-family:'Manrope'; font-weight:800; font-size:20px}
.drawer-aviso{background:var(--acc-tint); color:var(--acc-text); border-radius:10px; padding:10px 12px; font-size:12.5px; font-weight:600; text-align:center}
.drawer-aviso.ok{--acc-tint:rgba(123,161,122,.16); color:#395E38}

/* ===================== CHECKOUT ===================== */
.co-ov{position:fixed; inset:0; background:rgba(28,23,20,.55); z-index:80; backdrop-filter:blur(3px)}
.co{position:fixed; z-index:81; top:50%; left:50%; transform:translate(-50%,-48%); opacity:0; pointer-events:none;
  width:min(520px,calc(100% - 28px)); max-height:min(90vh,760px); overflow-y:auto;
  background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:26px 24px calc(26px + env(safe-area-inset-bottom,0px));
  box-shadow:var(--shadow); transition:opacity .2s, transform .2s}
.co.open{opacity:1; pointer-events:auto; transform:translate(-50%,-50%)}
.co-x{position:absolute; top:14px; right:14px; background:var(--surface-2); border:0; color:var(--muted); cursor:pointer; width:34px;height:34px; border-radius:9px; display:grid; place-items:center}
.co-x:hover{color:var(--fg)}.co-x svg{width:18px;height:18px}
.co-steps{display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:20px; color:var(--muted); font-size:12px; font-weight:700; font-family:'Manrope'}
.co-steps span{opacity:.5}.co-steps span.on{opacity:1; color:var(--champan-d)}
.co-steps i{width:22px; height:1.5px; background:var(--border)}
.co-h{font-size:19px; margin-bottom:12px}
.co-sub{color:var(--muted); font-size:13.5px; margin:0 0 16px}
.co-resumen{background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:12px 14px; margin-bottom:18px; display:flex; flex-direction:column; gap:6px}
.co-resumen .rl{display:flex; justify-content:space-between; font-size:13px}
.co-resumen .rl span{color:var(--muted)}
.field{margin-bottom:12px}
.field label{display:block; font-size:12.5px; font-weight:600; color:var(--muted); margin-bottom:5px}
.field input,.field select,.field textarea{width:100%; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:11px 12px; font-family:inherit; font-size:14.5px; color:var(--fg); transition:border-color .15s}
.field input:focus,.field select:focus,.field textarea:focus{outline:none; border-color:var(--champan)}
.field textarea{resize:vertical}
.co-error{color:var(--coral); font-size:12.5px; margin:6px 0 0; min-height:0}
.co-tot{background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:14px; margin:16px 0; display:flex; flex-direction:column; gap:7px}
.co-tot>div{display:flex; justify-content:space-between; font-size:14px}
.co-tot>div span{color:var(--muted)}
.co-tot b{font-family:'Manrope'; font-weight:700}
.co-tot-big{padding-top:8px; border-top:1px solid var(--border); font-size:16px!important}
.co-tot-big b{font-weight:800; font-size:19px}
/* pago */
.co-pay-total{text-align:center; background:var(--acc-tint); color:var(--acc-text); border-radius:12px; padding:12px; font-weight:600; margin-bottom:18px}
.co-pay-total strong{font-family:'Manrope'; font-weight:800; font-size:22px; display:block; margin-top:2px}
.co-pay-grid{display:grid; grid-template-columns:1fr auto; gap:16px; align-items:start; margin-bottom:8px}
.co-pay-keys{display:flex; flex-direction:column; gap:12px; min-width:0}
.co-key{background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:12px 14px}
.co-key-top{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px}
.co-key-top b{font-family:'Manrope'; font-size:14px}
.co-key-top span{font-size:11px; color:var(--muted)}
.co-key-val{display:flex; align-items:center; gap:8px}
.co-key-val code{font-family:'Manrope'; font-weight:800; font-size:17px; letter-spacing:.5px; color:var(--fg); word-break:break-all}
.co-copy{background:var(--surface); border:1px solid var(--border); color:var(--muted); cursor:pointer; width:32px;height:32px; border-radius:8px; display:grid; place-items:center; flex:0 0 auto}
.co-copy:hover{color:var(--champan-d); border-color:var(--champan)}
.co-copy svg{width:16px;height:16px}
.co-key small{display:block; margin-top:6px; font-size:11.5px; color:var(--muted)}
.co-pay-qr{width:120px; flex:0 0 auto}
.co-pay-qr img{width:120px; height:120px; object-fit:cover; border-radius:12px; border:1px solid var(--border)}
.co-pay-qr.hide{display:none}
@media (max-width:460px){ .co-pay-grid{grid-template-columns:1fr}.co-pay-qr{width:100%; max-width:160px; margin:0 auto} .co-pay-qr img{width:100%;height:auto} }
.co-volver{display:block; width:100%; background:none; border:0; color:var(--muted); cursor:pointer; font-size:13px; margin-top:12px; padding:6px}
.co-volver:hover{color:var(--fg)}
/* listo */
.co-listo{text-align:center}
.co-listo-check{width:64px;height:64px; border-radius:50%; background:#7BA17A; display:grid; place-items:center; margin:4px auto 16px; animation:pop .3s ease}
@keyframes pop{0%{transform:scale(.6);opacity:0}100%{transform:scale(1);opacity:1}}
.co-listo h3{font-size:22px; margin-bottom:8px}
.co-listo-sub{color:var(--muted); font-size:14px; margin:0 0 16px}
.co-listo-sub strong{color:var(--fg); font-family:'Manrope'}
.co-listo-total{display:flex; align-items:center; justify-content:space-between; background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:14px 18px; margin-bottom:16px}
.co-listo-total strong{font-family:'Manrope'; font-weight:800; font-size:22px}
.co-listo-msg{font-size:14px; color:var(--muted); margin:0 0 10px}
.co-listo-tip{font-size:12.5px; color:var(--muted); background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:10px; margin:0 0 18px}
.co-enviar{margin-bottom:10px}

/* toast */
.toast{position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%) translateY(20px); z-index:90;
  background:var(--tinta); color:var(--porcelana); border-radius:12px; padding:12px 14px; display:flex; align-items:center; gap:10px;
  font-size:14px; box-shadow:var(--shadow); opacity:0; transition:opacity .2s, transform .2s; max-width:calc(100% - 32px)}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0)}
.toast svg{width:18px;height:18px; color:#7BA17A; flex:0 0 auto}
.toast button{background:none; border:0; color:var(--champan); font-weight:800; font-family:'Manrope'; cursor:pointer; font-size:13px}
