/* ===== Pulido: lectura, zonas de toque, compra en celular y páginas de aviso =====
   Se carga la última para ganar a las demás hojas. */

/* elegir talla en la ficha */
body.prod .size-error{margin:.7rem 0 0;font:600 .8rem 'Inter',sans-serif;text-align:left;color:#ff7b7b!important}
body.prod .product-size.falta .size-btn{border-color:#ff5a5a!important}
.buybar{display:none}

/* Gracias y 404, con el mismo estilo que el resto */
body .aviso{display:flex;align-items:center;justify-content:center;min-height:80vh;min-height:80svh;padding:7rem 1.5rem 4rem;text-align:center}
body .aviso .aviso-title{margin:0;font:400 clamp(3.2rem,14vw,7rem)/1 'Anton','Archivo Black',sans-serif;letter-spacing:.02em;text-transform:uppercase;text-shadow:none;color:#fff!important}
body .aviso .aviso-text{max-width:26rem;margin:1.1rem auto 2rem;font:400 .95rem/1.7 'Inter',sans-serif;letter-spacing:0;text-align:center;color:#a8a8a8!important}
body .aviso .aviso-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 1.9rem;border-radius:999px;background:#39ff14;font:800 .74rem 'Inter',sans-serif;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;color:#000!important;transition:box-shadow .2s}
@media (hover:hover){body .aviso .aviso-link:hover{box-shadow:0 0 28px rgba(57,255,20,.4)}}
body .aviso .aviso-link:focus-visible{outline:2px solid #fff;outline-offset:3px}
body.aviso-solo{margin:0;background:#050505}

/* aviso del perchero en pantallas táctiles */
@media (hover:none){
  body .showroom .showroom-tip{width:max-content;max-width:92vw;font-size:.95rem;line-height:1.5;text-align:center;white-space:pre-line}
}

@media (max-width:900px){
  /* ---- textos que se puedan leer ---- */
  body .wz-hero .wz-count-label{font-size:11.5px;letter-spacing:.2em}
  body .wz-hero .wz-count-grid span{font-size:11px;letter-spacing:.14em;padding-left:.14em}
  body .giro .giro-bar span{font-size:11px;letter-spacing:.14em}
  body .pc-btn{min-height:44px!important;font-size:11.5px!important}
  body .vid button{min-height:44px;font-size:11px!important}
  body .yc .yc-size,body .yc .yc-more-title,body .yc .yc-total span:first-child{font-size:11.5px}
  body .reg .reg-field span{font-size:11.5px}

  /* ---- zonas de toque de 44 px (sin agrandar el dibujo cuando se puede) ---- */
  body .wzbar .wzbar-logo{display:inline-flex;align-items:center;min-height:44px}
  body .fin .fin-links{row-gap:0}
  body .fin .fin-links a{display:inline-flex;align-items:center;min-height:44px}
  body.prod .product-breadcrumb{margin-bottom:.4rem!important}
  body.prod .product-breadcrumb a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
  body.prod .size-options .size-btn{min-height:44px!important;height:44px}
  body .showroom .showroom-flip button{min-height:44px}
  body.cat input.shop-search,body.cat select{min-height:44px;height:44px}
  body.doc .doc-menu a{display:inline-flex;align-items:center;min-height:44px}
  body .reg .reg-close{width:44px;height:44px}
  body .yc .yc-close,body .yc .yc-add,body .yc .yc-remove,body .yc .yc-qty button{position:relative}
  body .yc .yc-close::after,body .yc .yc-add::after{content:"";position:absolute;inset:-6px}
  body .yc .yc-qty button::after{content:"";position:absolute;inset:-6px -3px}
  body .yc .yc-remove::after{content:"";position:absolute;inset:-14px -8px}

  /* ---- ficha: botón de compra siempre a mano ---- */
  .buybar{position:fixed;z-index:90;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 16px calc(.7rem + env(safe-area-inset-bottom,0px));border-top:1px solid #262626;background:rgba(10,10,10,.96);transform:translateY(105%);visibility:hidden;transition:transform .3s cubic-bezier(.2,.8,.2,1),visibility .3s}
  .buybar.is-on{transform:none;visibility:visible}
  body.prod .buybar .buybar-price{margin:0;font:400 1.5rem/1 'Anton','Archivo Black',sans-serif;color:#fff!important}
  body.prod .buybar button{flex:1;max-width:260px;min-height:48px;margin:0;padding:0 1rem;border:1px solid #39ff14;border-radius:999px;background:#39ff14;box-shadow:none;font:800 .72rem 'Inter',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#000!important;cursor:pointer}
  body.prod.con-barra{padding-bottom:84px}
}
@media (prefers-reduced-motion:reduce){.buybar{transition:none}}

/* ===== accesibilidad ===== */
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
body .skip{position:fixed;z-index:2000;left:12px;top:-80px;display:inline-flex;align-items:center;min-height:44px;padding:0 1.2rem;border-radius:999px;background:#39ff14;font:800 .74rem 'Inter',sans-serif;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;color:#000!important}
body .skip:focus{top:12px;outline:2px solid #fff;outline-offset:2px}

/* bordes de campos y tallas visibles (contraste 3:1) */
body .reg .reg-field input:not(:focus){border-color:#6e6e6e}
body .fin .fin-form input:not([name="_honey"]):not(:focus),body .fin .fin-form textarea:not(:focus){border-color:#6e6e6e!important}
body.cat .shop .shop-search:not(:focus),body.cat .shop .shop-sort:not(:focus-visible){border-color:#6e6e6e}
body.prod .product-size:not(.falta) .size-options .size-btn:not(.active){border-color:#6e6e6e!important}
body.chk .co-item:not(.falta) .co-sizes input:not(:checked)+span{border-color:#6e6e6e}
@media (hover:hover){body.chk .co-item:not(.falta) .co-sizes label:hover input:not(:checked)+span{border-color:#fff}}
body .yc .yc-qty{border-color:#6e6e6e}

/* grises y verde con contraste suficiente */
body .fin .fin-legal p{color:#8d8d8d!important}
body.doc .doc-head p{color:#8d8d8d!important}
body .showroom .showroom-kicker{color:#067000!important}

/* miniaturas de la ficha con teclado */
body.prod .thumb-vertical:focus-visible{outline:3px solid #fff;outline-offset:2px;opacity:1}

/* pausa de los videos */
body .vids .vid button.vid-pause{top:.7rem;bottom:auto;right:.7rem;width:44px;height:44px;min-height:44px;padding:0;justify-content:center}
body .vid-pause::before{content:"";width:10px;height:13px;border-left:3px solid #fff;border-right:3px solid #fff;box-sizing:border-box}
body .vid-pause.is-paused::before{width:0;height:0;margin-left:3px;border-width:7px 0 7px 12px;border-style:solid;border-color:transparent transparent transparent #fff}

/* botones del perchero para teclado */
.rack-keys{position:absolute;z-index:5;left:50%;bottom:clamp(76px,12vh,120px);display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;width:max-content;max-width:94%;transform:translateX(-50%);opacity:0;pointer-events:none}
.rack-keys:focus-within{opacity:1;pointer-events:auto}
body .showroom .rack-keys button{min-height:44px;padding:0 1rem;border:1.5px solid #0a0a0a;border-radius:999px;background:#fff;font:800 .68rem 'Inter',sans-serif;letter-spacing:.1em;color:#0a0a0a!important;cursor:pointer}
body .showroom .rack-keys button[aria-pressed="true"]{background:#0a0a0a;color:#fff!important}
body .showroom .rack-keys button:focus-visible{outline:3px solid #067000;outline-offset:2px}
.showroom:has(.rack-keys:focus-within) .showroom-tip{opacity:0}

/* ===== nombres y precios largos: bajan de línea en vez de romper ===== */
body .yc .yc-line{flex-wrap:wrap}
body .yc .yc-name{flex:1 1 7rem;min-width:0;overflow-wrap:anywhere}
body .yc .yc-price{margin-left:auto;max-width:100%;overflow-wrap:anywhere}
body .yc .yc-total{flex-wrap:wrap;column-gap:1rem}
body .yc .yc-total span:last-child{max-width:100%;overflow-wrap:anywhere}
body .yc .yc-more-info p{overflow-wrap:anywhere}
body.cat .shop .pc,body.cat .shop .pc>*{min-width:0}
body.cat .shop div:has(>.pc-name){flex-wrap:wrap;column-gap:1rem}
body.cat .shop .pc-name{flex:1 1 9rem;min-width:0;overflow-wrap:anywhere}
body.cat .shop .pc-meta{overflow-wrap:anywhere}
body.prod .product-layout>*{min-width:0}
body.prod .product-details .product-detail-name{overflow-wrap:anywhere}
body.prod .product-details .product-meta{flex-wrap:wrap}
body.chk .co-item>*{min-width:0}
body.chk .co-name{overflow-wrap:anywhere}
body.chk .co-price{max-width:100%;white-space:normal;overflow-wrap:anywhere}
body.chk .co-total{flex-wrap:wrap;column-gap:1rem}
@media(min-width:701px){body.chk .co-item{grid-template-columns:96px minmax(0,1fr) fit-content(40%)}}
body .giro .giro-title{overflow-wrap:anywhere}

/* tallas largas («TALLA 38») */
body.prod .size-options{display:flex;flex-wrap:wrap}
body.prod .product-size .size-options .size-btn{width:auto!important;min-width:48px!important;padding:0 .9rem!important;white-space:nowrap}

/* límite de unidades */
body .yc .yc-qty button:disabled{opacity:.3;cursor:not-allowed;background:transparent}
body .yc .yc-max{margin:0;font:600 .76rem 'Inter',sans-serif;text-align:left;color:#ffb347!important}
body.chk .co-stock{margin:.5rem 0 0;font:600 .78rem 'Inter',sans-serif;color:#ffb347}
body.chk .co-stock:empty{display:none}
body.chk .co-sizes input:disabled+span{opacity:.35;text-decoration:line-through;cursor:not-allowed}

/* ===== pantallas táctiles ===== */
html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body a,body button,body summary,body label{touch-action:manipulation}
body button{-webkit-user-select:none;user-select:none}
body .mov-menu,body .yc .yc-body{overscroll-behavior:contain}
@supports(padding:env(safe-area-inset-left)){body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}}
@media(max-width:768px){body .wzbar{top:calc(10px + env(safe-area-inset-top,0px))}}

/* ===== movimiento: respuesta al tocar, menú y secciones plegadas ===== */
body .pc-btn,body .co-btn,body .reg-send,body .yc .yc-pay,body .yc .yc-add,body .yc .yc-qty button,body .buybar button,body .wz-hero a.wz-cta,body .aviso-link,body .giro-cta,body .fin .fin-form button{transition:transform .14s cubic-bezier(.23,1,.32,1),background-color .2s,color .2s,box-shadow .2s,border-color .2s}
body .pc-btn:active:not(:disabled),body .co-btn:active,body .reg-send:active,body .yc .yc-pay:active,body .yc .yc-add:active,body .yc .yc-qty button:active:not(:disabled),body .buybar button:active,body .aviso-link:active,body .giro-cta:active,body .fin .fin-form button:active{transform:scale(.96)}
@media(max-width:768px){body .mov-menu:not([hidden]){animation:menuEntra .18s cubic-bezier(.23,1,.32,1) both}}
@keyframes menuEntra{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
body.prod .product-accordion{interpolate-size:allow-keywords}
body.prod .product-accordion details::details-content{height:0;overflow:clip;transition:height .24s cubic-bezier(.23,1,.32,1),content-visibility .24s allow-discrete}
body.prod .product-accordion details[open]::details-content{height:auto}
@media(prefers-reduced-motion:reduce){
  body .mov-menu:not([hidden]){animation:none}
  body.prod .product-accordion details::details-content{transition:none}
  body .pc-btn:active,body .co-btn:active,body .reg-send:active,body .yc button:active,body .buybar button:active{transform:none}
}
