/* tienda.css — «Tienda WxK» (tienda.html): ropa y accesorios con tres niveles por categoría.
   Tokens de css/tokens.css; la barra, el pie y los botones repiten el lenguaje de la portada (index.html).
   El cajón del carrito vive en css/carrito.css. */

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{ background:var(--ink); color:var(--bone); font-family:Inter,system-ui,sans-serif; -webkit-font-smoothing:antialiased; line-height:1.55; min-height:100svh; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; }
.display{ font-family:'Big Shoulders Display',sans-serif; line-height:.92; letter-spacing:-.01em; }
.volt{ color:var(--volt); }
.wrap{ max-width:1080px; margin:0 auto; padding:0 16px; position:relative; z-index:2; }
@media(min-width:600px){ .wrap{ padding:0 24px; } }
.sr{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }
.skip{ position:absolute; left:12px; top:-60px; z-index:30; background:var(--volt); color:var(--on-volt); font-weight:700; font-size:13px; padding:10px 16px; border-radius:var(--r-md); transition:top .15s; }
.skip:focus{ top:10px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible{ outline:2px solid var(--volt); outline-offset:3px; }

/* ── barra ── */
nav.topnav{ position:sticky; top:0; z-index:10; background:rgba(14,15,18,.82); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
nav.topnav .wrap{ display:flex; align-items:center; justify-content:space-between; height:72px; gap:12px; }
.brand{ font-family:'Big Shoulders Display'; font-weight:800; font-size:42px; letter-spacing:.02em; flex-shrink:0; display:inline-flex; align-items:center; }
.brand .zorro{ width:48px; height:48px; margin-right:10px; transition:transform .35s var(--ease-spring); }
@media(hover:hover){ .brand:hover .zorro{ transform:rotate(-10deg) scale(1.1); } }
.brand i{ font-style:normal; color:var(--volt); }
.nav-links{ display:flex; gap:20px; align-items:center; font-size:13px; }
.nav-links a{ color:var(--mut-aa); white-space:nowrap; }
.nav-links a:hover, .nav-links a[aria-current]{ color:var(--bone); }
.nav-links a[aria-current]{ box-shadow:0 2px 0 var(--volt); padding-bottom:2px; }
.btn{ display:inline-block; background:var(--volt); color:var(--on-volt)!important; font-weight:700; padding:9px 18px; border-radius:var(--r-sm); font-size:13px; transition:transform .12s; white-space:nowrap; border:0; cursor:pointer; font-family:inherit; }
.btn:hover{ transform:translateY(-1px); }
.btn.ghost{ background:transparent; color:var(--bone)!important; border:1px solid var(--line-ui); }
@media(max-width:640px){
  .nav-links .hide-sm{ display:none; }
  nav.topnav .wrap{ height:64px; }
  .brand{ font-size:34px; } .brand .zorro{ width:40px; height:40px; margin-right:8px; }
}
@media(max-width:380px){ .nav-links{ gap:14px; } .brand{ font-size:30px; } .brand .zorro{ width:34px; height:34px; margin-right:5px; }
  .nav-links a:not(.btn){ display:none; } }

/* ── héroe pequeño ── */
.t-hero{ position:relative; padding:clamp(64px,9vh,92px) 0 22px; }   /* arriba queda libre el lugar de la tarjeta de ruta del fondo */
.kicker{ color:var(--mut-aa); font-size:12px; letter-spacing:.32em; text-transform:uppercase; margin-bottom:14px; }
.t-hero h1{ font-weight:800; font-size:clamp(40px,6.4vw,76px); line-height:.95; text-wrap:balance; max-width:14em; }
.t-sub{ color:var(--mut-aa); font-size:clamp(15px,1.4vw + 8px,17px); max-width:620px; margin:16px 0 0; }
.t-pts{ list-style:none; display:flex; flex-wrap:wrap; gap:8px 10px; margin-top:20px; }
.t-pts li{ display:inline-flex; align-items:center; gap:8px; min-height:34px; padding:6px 14px 6px 10px; border:1px solid var(--line); border-radius:var(--r-pill); background:var(--card-bg); font-size:12.5px; color:var(--bone); }
.t-pts svg{ flex:none; width:16px; height:16px; fill:none; stroke:var(--volt); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.kicker, .t-hero h1, .t-sub, .cat-head h2, .cat-sub, .t-leyenda, .foot-links, footer .wrap > div{ text-shadow:0 0 7px var(--ink), 0 0 2px var(--ink); }

@media(max-width:600px){
  .t-hero{ padding:58px 0 8px; }
  .t-hero h1{ font-size:clamp(38px,11.5vw,48px); }
  .t-sub{ margin-top:12px; font-size:14.5px; }
  .t-pts{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin:16px -16px 0; padding:0 16px 2px; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
  .t-pts::-webkit-scrollbar{ display:none; }
  .t-pts li{ flex:none; white-space:nowrap; scroll-snap-align:start; }
}

/* ── pestañas por grupo + categorías ── */
.subnav{ position:relative; z-index:9; padding:12px 0 6px; }
.subnav-in{ display:flex; flex-direction:column; gap:10px; }
.t-tabs{ display:flex; gap:8px; flex-wrap:wrap; }
.t-tabs button{ min-height:42px; padding:0 18px; border-radius:var(--r-pill); border:1px solid var(--line); background:var(--ink2); color:var(--mut-aa); font:inherit; font-size:13.5px; font-weight:600; cursor:pointer; transition:color .15s, border-color .15s, background .15s; }
.t-tabs button:hover{ color:var(--bone); border-color:var(--mut); }
.t-tabs button[aria-pressed="true"]{ background:var(--volt); border-color:var(--volt); color:var(--on-volt); }
.t-chips{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; padding:2px 0 4px; scroll-snap-type:x proximity;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent); mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent); }
.t-chips::-webkit-scrollbar{ display:none; }
.t-chips a{ flex:none; scroll-snap-align:start; display:inline-flex; align-items:center; min-height:40px; padding:0 14px; border-radius:var(--r-pill); border:1px solid var(--line); background:transparent; color:var(--mut-aa); font-size:12.5px; white-space:nowrap; transition:color .15s, border-color .15s, background .15s; }
.t-chips a:hover{ color:var(--bone); border-color:var(--mut); }
.t-chips a.on{ color:var(--volt); border-color:rgba(var(--volt-rgb),.55); background:rgba(var(--volt-rgb),.08); }
@media(min-width:768px){
  .subnav{ position:sticky; top:72px; z-index:9; padding:10px 0 10px; background:rgba(14,15,18,.92); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
  .subnav-in{ flex-direction:row; align-items:center; gap:16px; }
  .t-chips{ flex:1; min-width:0; }
  .t-chips a{ min-height:36px; }
}

/* ── categorías ── */
#catalogo{ padding:8px 0 56px; position:relative; z-index:2; }
.cat{ padding:34px 0 8px; scroll-margin-top:84px; }
@media(min-width:768px){ .cat{ scroll-margin-top:150px; } }
.cat-head{ display:flex; align-items:end; justify-content:space-between; gap:12px 20px; flex-wrap:wrap; margin-bottom:16px; }
.cat-head h2{ font-weight:700; font-size:clamp(30px,4.6vw,48px); }
.cat-sub{ color:var(--mut-aa); font-size:13.5px; margin-top:6px; max-width:560px; }
.cat-flag{ display:inline-flex; align-items:center; gap:6px; margin-right:8px; padding:2px 10px; border-radius:var(--r-pill); border:1px solid rgba(var(--volt-rgb),.45); color:var(--volt); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; vertical-align:2px; }
.cat-sub a{ color:var(--volt); text-decoration:underline; text-underline-offset:2px; }
.t-link{ display:inline-flex; align-items:center; min-height:44px; background:none; border:0; padding:0; color:var(--volt); font:inherit; font-size:13px; font-weight:600; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.cat.flash .cat-head h2{ animation:flashT 1.6s ease-out; }
@keyframes flashT{ 0%,40%{ color:var(--volt); } 100%{ color:inherit; } }
.t-tabla{ margin:0 0 16px; background:var(--card-bg); border:1px solid var(--line); border-radius:var(--r-md); padding:0 16px; width:fit-content; max-width:100%; }
.t-tabla[open]{ width:100%; padding-bottom:4px; }
.t-tabla summary{ list-style:none; cursor:pointer; min-height:44px; display:flex; align-items:center; font-size:13px; font-weight:600; color:var(--volt); }
.t-tabla summary::-webkit-details-marker{ display:none; }
.t-tabla summary::after{ content:'+'; margin-left:8px; }
.t-tabla[open] summary::after{ content:'−'; }
.t-tabla .tt-wrap{ overflow-x:auto; padding-bottom:12px; }
.t-tabla table{ border-collapse:collapse; font-size:12.5px; min-width:100%; }
.t-tabla th, .t-tabla td{ text-align:left; padding:6px 12px 6px 0; border-bottom:1px solid var(--line); white-space:nowrap; font-variant-numeric:tabular-nums; }
.t-tabla th{ color:var(--mut-aa); font-weight:600; }
.t-tabla p{ font-size:13px; color:var(--mut-aa); padding-bottom:12px; white-space:pre-line; }

/* tres niveles: rejilla de 3 desde 720 px; en celular, carrusel con la tarjeta siguiente asomando */
.tiers{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
@media(max-width:719px){
  .tiers{ display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-left:16px; margin:0 -16px; padding:2px 16px 12px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .tiers::-webkit-scrollbar{ display:none; }
  .tiers > .tcard{ flex:0 0 82%; max-width:340px; scroll-snap-align:start; }
  .tiers > .tcard:only-child{ flex-basis:100%; max-width:none; }
}

.tcard{ background:var(--card-bg); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; display:flex; flex-direction:column; min-width:0;
  transition:transform .18s, border-color .18s, box-shadow .18s; }
@media(hover:hover){ .tcard:hover{ transform:translateY(-3px); border-color:rgba(var(--volt-rgb),.4); box-shadow:var(--shadow-lift); } }
.tcard:focus-within{ border-color:rgba(var(--volt-rgb),.5); }
.timg{ aspect-ratio:1; position:relative; overflow:hidden; background:radial-gradient(ellipse 72% 62% at 50% 46%, var(--halo-1) 0%, var(--halo-2) 52%, var(--ink3) 100%); display:grid; place-items:center; }
.timg img{ width:100%; height:100%; object-fit:contain; display:block; }
.timg.noimg{ color:var(--mut); }
.timg.noimg svg{ width:44px; height:44px; fill:none; stroke:currentColor; stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; opacity:.55; }
.ttier{ position:absolute; top:10px; left:10px; z-index:1; padding:3px 10px; border-radius:var(--r-xs); font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  background:rgba(14,15,18,.88); border:1px solid var(--line); color:var(--mut-hi); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.ttier.medio{ color:var(--volt); border-color:rgba(var(--volt-rgb),.5); }
.ttier.pro{ background:var(--volt); color:var(--on-volt); border-color:var(--volt); }
.tbody{ padding:14px 14px 14px; display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; }
.tbrand{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--mut-aa); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tname{ font-weight:700; font-size:14px; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; min-height:2.6em; }
.tmeta{ display:flex; flex-wrap:wrap; gap:2px 12px; margin-top:4px; font-size:11.5px; color:var(--mut-aa); }
.tmeta span{ display:inline-flex; align-items:center; gap:5px; }
.tmeta svg{ width:13px; height:13px; fill:none; stroke:var(--volt); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.tprice{ margin-top:8px; font:700 21px/1.1 'JetBrains Mono',monospace; font-variant-numeric:tabular-nums; }
.tprice small{ font:500 11.5px Inter,sans-serif; color:var(--mut-aa); margin-right:6px; letter-spacing:0; }
.tprice em{ font:400 11px Inter,sans-serif; color:var(--mut-aa); font-style:normal; margin-left:6px; }
.tprice.na{ font:500 13px Inter,sans-serif; color:var(--mut-aa); }

.ctl{ display:grid; gap:8px; margin-top:12px; }
.tsel{ display:block; position:relative; }
.tsel select{ width:100%; height:46px; padding:0 40px 0 14px; appearance:none; -webkit-appearance:none; background:var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c6f24e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border:1px solid var(--line-ui); border-radius:var(--r-md); color:var(--bone); font:inherit; font-size:13.5px; text-overflow:ellipsis; cursor:pointer; }
.tsel select:invalid, .tsel select.vacio{ color:var(--mut-aa); }
.tsel select option{ color:var(--bone); background:var(--ink2); }
.tsel.need select{ border-color:var(--err); }
.tcheck{ display:flex; align-items:flex-start; gap:10px; min-height:44px; padding:6px 0; font-size:12.5px; line-height:1.4; color:var(--mut-hi); cursor:pointer; }
.tcheck input{ flex:none; width:20px; height:20px; margin-top:0; accent-color:var(--volt); cursor:pointer; }
.tcheck a{ color:var(--volt); text-decoration:underline; text-underline-offset:2px; }
.tcheck.need{ color:var(--err); }
.tcheck.need input{ outline:2px solid var(--err); outline-offset:2px; }
.tsel.need, .tcheck.need{ animation:sacude .38s; }
@keyframes sacude{ 0%,100%{ transform:translateX(0) } 20%{ transform:translateX(-6px) } 40%{ transform:translateX(5px) } 60%{ transform:translateX(-4px) } 80%{ transform:translateX(3px) } }
.tadd{ display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; padding:0 16px; border:0; border-radius:var(--r-md); background:var(--volt); color:var(--on-volt);
  font:700 14px Inter,sans-serif; cursor:pointer; transition:transform .12s, background .15s, opacity .15s; }
.tadd:hover:not(:disabled){ transform:translateY(-1px); background:var(--volt-hi); }
.tadd:disabled{ opacity:.55; cursor:default; }
.tadd.added{ background:transparent; color:var(--volt); box-shadow:inset 0 0 0 1.5px var(--volt); }
.tadd svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.tmsg{ min-height:0; font-size:12px; line-height:1.4; color:var(--mut-hi); }
.tmsg:empty{ display:none; }
.tmsg.err{ color:var(--err); }
.tmsg .t-link{ min-height:32px; font-size:12px; }

.talt-toggle{ display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:48px; margin-top:6px; padding:0 2px; background:none; border:0; border-top:1px solid var(--line); color:var(--mut-hi); font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.talt-toggle:hover{ color:var(--bone); }
.talt-toggle svg{ width:14px; height:14px; fill:none; stroke:var(--volt); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s; }
.talt-toggle[aria-expanded="true"] svg{ transform:rotate(180deg); }
.talts{ display:grid; gap:0; }
.talts[hidden]{ display:none; }
.alt{ padding:14px 0; border-top:1px dashed var(--line); display:grid; gap:8px; }
.alt-top{ display:grid; grid-template-columns:72px 1fr; gap:12px; align-items:start; }
.alt .timg{ width:72px; height:72px; aspect-ratio:auto; border-radius:var(--r-sm); }
.alt .tname{ font-size:13px; min-height:0; }
.alt .tprice{ font-size:16px; margin-top:4px; }
.alt .tmeta{ margin-top:2px; }
.alt .tadd{ min-height:44px; background:transparent; color:var(--volt); box-shadow:inset 0 0 0 1.5px var(--volt); }
.alt .tadd:hover:not(:disabled){ background:rgba(var(--volt-rgb),.12); }
.alt .tadd.added{ background:rgba(var(--volt-rgb),.14); }
.alt .tsel select{ height:44px; font-size:13px; }

.t-leyenda{ color:var(--mut-aa); font-size:12.5px; margin:14px 0 0; max-width:640px; }

/* cargando / vacío / cerrado */
.sk{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding-top:30px; }
.sk i{ display:block; aspect-ratio:3/4; border-radius:var(--r-lg); background:linear-gradient(100deg,var(--ink2) 30%,#1e2127 50%,var(--ink2) 70%) 0 0/300% 100%; border:1px solid var(--line); animation:brilla 1.4s linear infinite; }
@keyframes brilla{ to{ background-position:-300% 0; } }
@media(max-width:719px){ .sk{ grid-template-columns:1fr; } .sk i:nth-child(n+2){ display:none; } .sk i{ aspect-ratio:4/3; } }
.t-estado{ margin:28px auto 0; max-width:560px; text-align:center; padding:44px 24px 40px; background:var(--card-bg); border:1px solid var(--line); border-radius:var(--r-xl); }
.t-estado img{ width:84px; height:84px; margin-bottom:14px; }
.t-estado h2{ font-weight:700; font-size:clamp(30px,5vw,44px); margin-bottom:10px; }
.t-estado p{ color:var(--mut-aa); font-size:14.5px; max-width:420px; margin:0 auto 22px; }
.t-estado .acciones{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.t-estado .btn{ padding:13px 22px; font-size:14px; min-height:46px; display:inline-flex; align-items:center; }

/* ── pie ── */
footer{ border-top:1px solid var(--line); padding:36px 0; color:var(--mut-aa); font-size:13px; position:relative; z-index:2; }
footer .wrap{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; align-items:center; }
footer a{ color:var(--bone); }
.foot-links{ width:100%; font-size:12px; color:var(--mut-aa); line-height:2; border-bottom:1px solid var(--line); padding-bottom:14px; margin-bottom:4px; }
.foot-links a{ color:var(--mut-aa); } .foot-links a:hover{ color:var(--bone); }
.foot-note{ width:100%; font-size:11.5px; color:var(--mut-aa); line-height:1.6; border-top:1px solid var(--line); padding-top:16px; margin-top:8px; }
.fx-atrib{ width:100%; font-size:11.5px; color:var(--mut-aa); line-height:1.6; margin-top:2px; }
.fx-atrib[hidden]{ display:none; }
.spot{ position:fixed; inset:0; z-index:1; pointer-events:none; opacity:0; transition:opacity .5s; background:radial-gradient(560px circle at var(--sx,50%) var(--sy,50%),rgba(var(--volt-rgb),.05),transparent 65%); }
body:hover .spot{ opacity:1; }
@media(pointer:coarse){ .spot{ display:none; } }

/* dedo: blancos de toque ≥ 44 px */
@media(pointer:coarse){
  .t-tabs button{ min-height:44px; } .t-chips a{ min-height:44px; }
  .nav-links a:not(.btn){ padding:12px 2px; }
}
@media(prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .tcard, .btn, .tadd, .brand .zorro, .talt-toggle svg{ transition:none; }
  .tsel.need, .tcheck.need, .cat.flash .cat-head h2, .sk i{ animation:none; }
}

/* zorro (kit casual, recorte con transparencia) en el héroe de la tienda */
.t-hero .wrap{ position:relative; }
.t-zorro{ position:absolute; right:2px; bottom:-30px; height:clamp(230px,30vw,330px); width:auto; pointer-events:none; user-select:none;
  filter:drop-shadow(0 14px 22px rgba(0,0,0,.55)); }
@media(max-width:860px){ .t-zorro{ display:none; } }
