/* =====================================================================================
   Refinamiento final antes del lanzamiento (26-11-2026, claude-code).
   Hoja global que se carga DESPUÉS de tienda.css: corrige y refina sin tocar las hojas
   originales del diseño (web/css/d), para que la revisión y la integración sean simples.
   Tokens de la tienda: Carbón #252628 · Rojo #D71920 · Gris #F3F3F3 · Archivo + IBM Plex Mono.
   ===================================================================================== */

/* ---------- 1. HERO EDITORIAL · una RASCH blanca protagonista sobre blanco ----------
   Decisión de Gonzalo (26-11, referencia «composición editorial clara»): fondo blanco con una
   composición gráfica localizada en grises neutros, titular breve, un único botón, sin logo,
   selector ni carrusel. Composiciones propias para escritorio, tableta, móvil y horizontal. */
#root .hm-hero.hx{--hx-top:114px;--ink:#252628;position:relative;isolation:isolate;overflow:hidden;background:#fff;padding:0;
  height:clamp(520px,calc(100svh - var(--hx-top)),980px);container-type:size}
/* Ocupa casi todo el ancho: márgenes laterales proporcionales, sin tope estrecho (correcciones del 26-11 tarde). */
.hx-in{position:relative;z-index:1;height:100%;max-width:2200px;margin:0 auto;display:grid;grid-template-columns:minmax(0,37fr) minmax(0,63fr);
  column-gap:clamp(32px,4vw,96px);align-items:center;padding:0 clamp(24px,4.2vw,112px)}
.hx-copy{position:relative;z-index:3;container-type:inline-size}
.hx-h1{margin:0;color:var(--ink);font-weight:900;font-stretch:80%;font-variation-settings:"wdth" 80;text-transform:uppercase;
  letter-spacing:-.018em;line-height:.9;font-size:clamp(40px,min(14cqi,11.4cqh),112px);text-wrap:balance;animation:none}
.hx-h1 .l{display:block;white-space:nowrap}
.hx-cta{margin-top:clamp(24px,4.4cqh,44px)}
#root .hx-go{height:56px;padding:0 30px;font-size:16.5px;font-weight:600;background:var(--ink);gap:10px;
  box-shadow:0 14px 28px -16px rgba(20,22,24,.6);transition:background var(--m-fast,140ms) ease,transform var(--m-fast,140ms) ease}
#root .hx-go svg{transition:transform var(--m-func,220ms) cubic-bezier(.2,.7,.2,1)}
@media (hover:hover){#root .hx-go:hover{background:#000}#root .hx-go:hover svg{transform:translateX(4px)}}
#root .hx-go:active{transform:scale(.98)}
#root .hx-go:focus-visible{outline:2px solid #D71920;outline-offset:3px}
/* Fondo gris: una elipse amplia anclada a la sección. Se corta arriba y a la derecha (desborda) y su curva inferior
   se ve completa: integrada en la composición, sin el corte inferior de un círculo aislado. */
.hx-disc{position:absolute;z-index:0;pointer-events:none;border-radius:50%;
  left:34%;width:118%;top:-80%;height:178%;
  background:radial-gradient(60% 55% at 38% 70%,#F2F2F3 0%,#E9EAEB 45%,#DEDFE1 78%,#D4D5D8 100%)}
.hx-stage{position:relative;height:100%;z-index:1;container-type:size}
.hx-prod{position:absolute;z-index:2;margin:0;left:52%;top:54%;width:min(98cqw,1240px,175cqh);transform:translate(-50%,-50%)}
.hx-obj{display:block;position:relative}
.hx-shoe{display:block;position:relative;width:100%;height:auto;user-select:none;-webkit-user-drag:none}
.hx-real{position:absolute;inset:0;width:100%;height:100%;opacity:.85}
/* Sombra de contacto (estrecha) + ambiental (ancha) bajo la suela */
.hx-cs,.hx-as{position:absolute;border-radius:50%;pointer-events:none}
.hx-cs{left:7%;right:4%;bottom:-1%;height:5.5%;background:radial-gradient(closest-side,rgba(22,25,27,.42),rgba(22,25,27,.12) 62%,rgba(22,25,27,0));filter:blur(3px)}
.hx-as{left:-4%;right:-6%;bottom:-9%;height:22%;background:radial-gradient(closest-side,rgba(32,36,38,.22),rgba(32,36,38,0));filter:blur(18px)}
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .hx-disc{animation:hxDrift linear both;animation-timeline:view();animation-range:exit 0% exit 100%}
    @keyframes hxDrift{to{translate:0 8%}}
  }
}
.hx-off .hx-disc{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.hx *,.hx *::before,.hx *::after{animation:none!important;transition:none!important}}
.hx ::selection{background:#D71920;color:#fff}

/* Portátil compacto y tableta horizontal */
@media (min-width:1024px) and (max-width:1279px){.hx-in{grid-template-columns:minmax(0,40fr) minmax(0,60fr)}.hx-disc{left:36%}}

/* Tableta vertical: titular arriba a la izquierda, producto grande abajo con aire entre ambos */
@media (min-width:700px) and (max-width:1023px) and (orientation:portrait){
  #root .hm-hero.hx{height:clamp(620px,calc(100svh - var(--hx-top)),1000px)}
  .hx-in{grid-template-columns:1fr;grid-template-rows:auto 1fr;row-gap:clamp(32px,5cqh,64px);align-items:start;padding:clamp(44px,7cqh,80px) 48px clamp(24px,4cqh,48px)}
  .hx-h1{font-size:clamp(56px,min(14.4cqi,15cqh),120px)}
  .hx-cta{margin-top:28px}
  .hx-disc{left:6%;width:130%;top:36%;height:96%}
  .hx-prod{width:min(98cqw,860px,190cqh);left:50%;top:50%}
}

/* Móvil vertical: titular, producto y botón centrados, cada uno en su franja */
@media (max-width:699px) and (orientation:portrait),(max-width:699px) and (min-height:560px){
  #root .hm-hero.hx{height:clamp(540px,calc(100svh - var(--hx-top)),780px)}
  .hx-in{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:clamp(20px,4cqh,36px);text-align:center;padding:clamp(28px,6cqh,52px) 20px clamp(28px,6cqh,52px)}
  .hx-copy{display:contents}
  .hx-h1{order:1;font-size:clamp(40px,14.6cqw,72px);line-height:.9}
  .hx-stage{order:2;position:relative;width:100%;flex:1;min-height:0}
  .hx-cta{order:3;margin-top:0}
  #root .hx-go{height:54px;padding:0 28px;font-size:16px}
  .hx-disc{left:-14%;width:140%;top:27%;height:50%}
  .hx-prod{width:min(104cqw,560px,190cqh);left:50%;top:48%}
}

/* Horizontal con alto escaso: dos columnas compactas guiadas por el alto */
@media (orientation:landscape) and (max-height:560px){
  #root .hm-hero.hx{height:max(220px,calc(100svh - var(--hx-top)))}
  .hx-in{display:grid;grid-template-columns:minmax(0,40fr) minmax(0,60fr);column-gap:32px;padding:0 max(24px,env(safe-area-inset-right)) 0 max(24px,env(safe-area-inset-left))}
  .hx-copy{display:block}
  .hx-h1{font-size:clamp(28px,min(14cqi,16cqh),60px)}
  .hx-cta{margin-top:clamp(14px,6cqh,28px)}
  #root .hx-go{height:48px;padding:0 22px;font-size:15px}
  .hx-disc{left:38%;width:110%;top:-70%;height:170%}
  .hx-prod{width:min(96cqw,190cqh)}
}

/* ---------- 2. AVISO DE COOKIES · estilo global en cualquier punto de entrada ----------
   Antes solo inicio.css tenía el estilo: en 9 de 10 páginas salía sin estilo al final (O1). */
#root .ck4{position:fixed;left:16px;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:95;max-width:900px;margin:0 auto;
  background:#151617;color:#fff;border-radius:22px;padding:20px 24px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 28px;align-items:center;
  box-shadow:0 24px 60px rgba(0,0,0,.32);animation:ckIn .34s cubic-bezier(.2,.7,.2,1) both}
#root .ck4[hidden]{display:none}
@keyframes ckIn{from{transform:translateY(16px);opacity:0}to{transform:none;opacity:1}}
#root .ck4 p{margin:0;font-size:14.5px;line-height:1.5;color:#D0D0D0}
#root .ck4 p b{color:#fff;display:block;font-size:18px;margin-bottom:4px;font-weight:700}
#root .ck4 p small{display:block;margin-top:6px;color:#A9A9A9;font-size:13px}
#root .ck4 .a{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;align-items:center}
#root .ck4 .btn.ck-b{display:inline-flex;align-items:center;justify-content:center;height:46px;min-width:168px;padding:0 16px;border-radius:999px;
  border:1.5px solid #fff;color:#fff;background:transparent;font:600 15px/1 inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
#root .ck4 .btn.ck-b:hover{background:#fff;color:#111}
#root .ck4 .btn.ck-b:focus-visible,#root .ck4 .ck-l:focus-visible{outline:2px solid #fff;outline-offset:3px}
#root .ck4 .ck-l{grid-column:1/-1;justify-self:center;color:#fff;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:4px;padding:8px 6px;min-height:40px;display:inline-flex;align-items:center}
@media (max-width:700px){
  #root .ck4{grid-template-columns:minmax(0,1fr);left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));padding:18px}
  #root .ck4 p{font-size:14px}
  #root .ck4 .btn.ck-b{min-width:0}
}
@media (orientation:landscape) and (max-height:500px){
  #root .ck4{grid-template-columns:minmax(0,1fr) auto;padding:12px 16px;gap:8px 16px}
  #root .ck4 p small{display:none}
  #root .ck4 .btn.ck-b{height:40px;min-width:130px}
  #root .ck4 .ck-l{min-height:32px;padding:2px 6px}
}
/* No compite con capas abiertas (menú, Guía LUDE, diálogos) */
.root:has(.gl-ov) .ck4,.root:has(.gd) .ck4,.root:has(#mm-root:not([hidden])) .ck4,.root:has(#modal:not([hidden])) .ck4{display:none!important}

/* ---------- 3. FICHA · barra de compra limpia y panel de tallas ----------
   Móvil y tableta: «Añadir a la bolsa» visible al subir o bajar mientras el botón principal no está en pantalla.
   Respeta el área segura y se retira con teclado, cookies o diálogos abiertos para no tapar nada. */
#root .pd-bar{left:0;right:0;margin:0 auto;transform:none;bottom:max(12px,env(safe-area-inset-bottom));width:min(520px,calc(100% - 24px));
  display:block;padding:0;background:transparent;border:0;border-radius:999px;box-shadow:0 14px 34px -14px rgba(20,22,24,.55)}
#root .pd-bar .th,#root .pd-bar .ptx{display:none}
#root .pd-bar .btn{display:flex;width:100%;height:54px;border-radius:999px;font-size:16.5px;font-weight:600}
#root .pd-bar .btn.is-dis,#root .pd-bar .btn[aria-disabled="true"]{background:#9A9C9F;color:#fff;cursor:default}
@media (min-width:1024px){#root .pd-bar{width:min(420px,calc(100% - 24px))}}
body.kb #root .pd-bar,body.locked #root .pd-bar,#root:has(#cookie:not([hidden])) .pd-bar{display:none!important}
@media (max-width:699px){body.has-bar #ft,body.has-bar #ft-c{padding-bottom:calc(84px + env(safe-area-inset-bottom))}}
@media (min-width:700px){#root .pd-bar{display:none!important}}
/* Ficha: sin nombres ni descripciones visibles bajo las fotos de «de cerca» (el texto alternativo se conserva) */
#root .pd-feat figcaption{display:none}
/* Panel inferior de tallas */
#root .pd-ss{position:fixed;left:0;right:0;bottom:0;z-index:90;display:flex;justify-content:center}
#root .pd-ss[hidden]{display:none}
.pd-ss-c{width:min(560px,100%);background:#fff;border-radius:22px 22px 0 0;padding:14px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -18px 50px rgba(0,0,0,.18);
  animation:ssUp .3s cubic-bezier(.2,.7,.2,1) both;max-height:86svh;overflow:auto}
@keyframes ssUp{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.pd-ss-c{animation:none}}
.pd-ss-h{display:flex;justify-content:space-between;align-items:center}
.pd-ss-h .t{margin:0;font-size:19px;font-weight:700;color:#252628}
.pd-ss-s{margin:2px 0 14px;font-size:14px;color:#6A6D70}
.pd-ss-g{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.pd-ss-g button{height:50px;border-radius:12px;border:1.5px solid #D9DADC;background:#fff;color:#252628;font:600 16px/1 inherit;font-family:inherit;cursor:pointer}
.pd-ss-g button.on{border-color:#252628;background:#252628;color:#fff}
.pd-ss-g button.no{color:#A3A5A8;background:#F3F3F3;border-color:#F3F3F3;text-decoration:line-through}
.pd-ss-g button.no.on{background:#E4E5E6;color:#6A6D70;border-color:#6A6D70}
.pd-ss-g button:focus-visible{outline:2px solid #D71920;outline-offset:2px}
.pd-ss-n{margin:12px 0 14px;font-size:13.5px;color:#6A6D70}
.pd-ss-c>.btn{width:100%;height:54px;border-radius:999px;font-size:16px}
.pd-ss-c>.btn.is-dis{background:#9A9C9F;color:#fff;cursor:default}

/* ---------- 4. PAGO · un solo método verificado, sin selector vacío ----------
   Yape retirado temporalmente de la experiencia (26-11); Plin y otros, solo si están verificados. */
#root .pm-one{display:flex;align-items:center;gap:10px;margin:4px 0 14px;font-size:15.5px;font-weight:600;color:#252628}
#root .pm-one>svg{flex:none}
#root .pm-one .pm-marks{margin-left:auto}
@media (max-width:420px){#root .pm-one{flex-wrap:wrap}#root .pm-one .pm-marks{margin-left:28px}}

/* ---------- 5. MOVIMIENTO SIN CONTENIDO INVISIBLE ----------
   La entrada editorial parte de un estado ya legible (no de opacidad 0) y se dispara antes de llegar a la vista. */
#root .t-rv:not(.is-in){opacity:.2;transform:translateY(16px)}
@media print{#root .t-rv{opacity:1!important;transform:none!important}}

/* ---------- 6. ANCHURAS EN PANTALLAS GRANDES (26-11 tarde) ----------
   No una sola anchura: las superficies de compra se abren más; las de lectura y cuenta, con medida cómoda.
   Hasta 1500 px se conserva la maqueta aprobada (1360 px). */
html,body{overflow-x:clip}
/* Pie al final de la ventana en páginas cortas; después del contenido en las largas (nunca fijo). */
#root.root{min-height:100svh;display:flex;flex-direction:column}
#root.root>#app{flex:1 0 auto}
#root.root>footer{flex:none}
@media (min-width:1500px){
  #root .hd4{max-width:none;padding:0 clamp(28px,3vw,72px)}
  html[data-pg=inicio] #app .w,html[data-pg=catalogo] #app .w,html[data-pg=ficha] #app .w,html[data-pg=bolsa] #app .w{max-width:min(90vw,1840px);padding-left:clamp(40px,3vw,72px);padding-right:clamp(40px,3vw,72px)}
  html[data-pg=cuenta] #app .w,html[data-pg=ayuda] #app .w,html[data-pg=seguimiento] #app .w,html[data-pg=historia] #app .w,
  html[data-pg=envios] #app .w,html[data-pg=cambios] #app .w,html[data-pg=contacto] #app .w,html[data-pg=contenido] #app .w{max-width:min(86vw,1600px);padding-left:clamp(40px,3vw,64px);padding-right:clamp(40px,3vw,64px)}
  #root .f4-in{max-width:min(92vw,1840px);padding-left:clamp(40px,3vw,72px);padding-right:clamp(40px,3vw,72px)}
  #root .f4-top{gap:clamp(48px,4vw,96px)}
  #root .f4 a,#root .f4 p,#root .f4 li{font-size:15.5px}
  #root .f4 h3{font-size:16px}
  #root .pd-top{grid-template-columns:minmax(0,1fr) clamp(440px,26vw,540px);gap:clamp(56px,4vw,96px)}
}
@media (min-width:1760px){#root .kz-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ---------- 7. BOLSA LATERAL A ALTURA COMPLETA (escritorio ≥1100) ----------
   Del borde inferior del header al final de la ventana; ancho aprobado; lista con desplazamiento propio y
   subtotal y acciones siempre visibles. No bloquea el scroll de la página (sin overlay ni body bloqueado). */
@media (min-width:1100px){
  #root .bagp,#root .bagp.open.pin{position:fixed;top:var(--hd-b,113px);right:0;bottom:0;height:auto;border-radius:0;border-top:1px solid #EBEBEB;
    box-shadow:-30px 0 60px -30px rgba(0,0,0,.22)}
  #root .bagp::before{position:absolute;top:calc(-1 * var(--bag-gap,18px));right:var(--bag-r,24px);width:60px;height:var(--bag-gap,18px)}
  #root .bagp .bp-l{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#CFCFD2 transparent}
  #root .bagp .bp-f{flex:none}
}

/* ---------- 8. ENTREGA, PAGO Y CAMBIOS (portada) ----------
   Menos administrativa: zona + canal arriba, tres tarjetas con icono, etiqueta, titular breve y una línea. */
#root .zn2{background:#fff;border:1px solid #E7E7E9;border-radius:24px;padding:clamp(18px,2.2vw,32px)}
#root .zn2-bar{display:flex;justify-content:space-between;align-items:center;gap:14px 24px;flex-wrap:wrap}
#root .zn2 .hm-zs{background:#F3F3F4}
#root .zn2 .hm-zs button{min-width:0}
#root .zn2-ch{display:flex;align-items:center;gap:6px}
#root .zn2-ch .lb{font-size:14px;color:#6A6D70;margin-right:6px}
#root .zn2-ch .cb{height:40px;padding:0 18px;border:0;border-radius:999px;background:transparent;font:inherit;font-weight:600;font-size:15px;color:#6A6D70;cursor:pointer}
#root .zn2-ch .cb.on{background:#F3F3F4;color:#252628}
#root .zn2-ch .cb:hover:not(.on){color:#252628}
#root .zn2-ch .cb:focus-visible{outline:2px solid #252628;outline-offset:2px}
#root .zn2-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.2vw,20px);margin-top:clamp(18px,2vw,28px)}
#root .zn2-c{background:#F4F4F5;border-radius:18px;padding:clamp(20px,1.8vw,28px);display:flex;flex-direction:column;gap:6px;min-height:100%}
#root .zn2-c .ii{width:auto;height:auto;background:none;color:#252628;margin-bottom:10px;display:block}
#root .zn2-c .ii svg{width:26px;height:26px}
#root .zn2-c .k{margin:0;font-size:13px;color:#6A6D70}
#root .zn2-c h3{margin:0;font-size:clamp(20px,1.5vw,24px);line-height:1.15;font-weight:700;color:#252628;letter-spacing:-.01em}
#root .zn2-c .d{margin:4px 0 0;font-size:15px;line-height:1.5;color:#55585C}
#root .zn2 .hm-zf{border-top-color:#ECECEE}
@media (max-width:860px){
  #root .zn2-g{grid-template-columns:1fr}
  #root .zn2-bar{flex-direction:column;align-items:stretch}
  #root .zn2 .hm-zs{display:flex}#root .zn2 .hm-zs button{flex:1;padding:0 8px}
  #root .zn2-ch{justify-content:space-between}
  #root .zn2-c{flex-direction:row;flex-wrap:wrap;column-gap:14px}
  #root .zn2-c .ii{margin:2px 0 0}
  #root .zn2-c>*:not(.ii){flex-basis:calc(100% - 40px)}
  #root .zn2-c .k{order:-1;flex-basis:100%}
}
/* Pie compacto (pago y acceso): aire arriba en escritorio */
@media (min-width:1024px){#root .f4-c .f4-in{padding-top:32px}}

/* ---------- 9. NUESTRA HISTORIA EN LA PORTADA (26-11) ----------
   Composición editorial asimétrica: foto protagonista a la izquierda, titular con personalidad a la derecha,
   rojo LUDE como acento controlado. Foto provisional generada por Codex (sin personas, producto ni marcas). */
#root .hm-cl2{background:#151617;color:#fff;padding:clamp(56px,7vw,128px) 0}
#root .hm-cl2-g{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:clamp(32px,5vw,112px);align-items:center}
#root .hm-cl2-f{margin:0;border-radius:22px;overflow:hidden;aspect-ratio:4/3;background:#222}
#root .hm-cl2-f img{width:100%;height:100%;object-fit:cover;display:block}
#root .hm-cl2-t{max-width:560px}
#root .hm-cl2 .ey{margin:0 0 18px;font:600 13px/1 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.16em;text-transform:uppercase;color:#C9CACC}
#root .hm-cl2-h{margin:0;font-weight:900;font-stretch:80%;font-variation-settings:"wdth" 80;text-transform:uppercase;letter-spacing:-.015em;line-height:.9;
  font-size:clamp(48px,5.6vw,108px);color:#fff}
#root .hm-cl2-h span{display:block;color:#E5262D}
#root .hm-cl2-t>p:not(.ey){margin:clamp(20px,2vw,28px) 0 clamp(26px,2.6vw,36px);font-size:clamp(16px,1.15vw,18.5px);line-height:1.6;color:#D3D4D6;max-width:46ch}
@media (max-width:899px){
  #root .hm-cl2-g{grid-template-columns:1fr}
  #root .hm-cl2-f{aspect-ratio:16/11}
  #root .hm-cl2-h{font-size:clamp(44px,13vw,72px)}
}

/* ---------- 10. PÁGINA NUESTRA HISTORIA (26-11) ----------
   Titular con más presencia y centrado en el bloque oscuro; lectura más cómoda y ritmo editorial. */
#root .hy-hero{min-height:clamp(480px,62svh,760px)}
#root .hy-hero-in{justify-content:center;gap:clamp(18px,2vw,28px);padding-top:clamp(48px,6vw,96px);padding-bottom:clamp(48px,6vw,96px)}
#root .hy-h1{font-size:clamp(64px,6.6vw,136px);line-height:.88}
#root .hy-sub{font-size:clamp(16px,1.2vw,20px);line-height:1.5;color:#D3D4D6;max-width:34ch;margin:0}
#root .hy-im.hy-p21{aspect-ratio:21/9;border-radius:20px}
#root .hy-im.hy-p21 img{object-fit:cover!important}
@media (min-width:1024px){
  #root .hy p:not(.hy-big):not(.hy-sub){font-size:18px;line-height:1.65}
  #root .hy .hy-lead{font-size:clamp(20px,1.5vw,24px);line-height:1.4}
  #root .hy .hy-t{font-size:clamp(36px,3vw,52px)}
}
@media (min-width:1500px){#root .hy-hero-in{padding-left:max(40px,calc((100vw - min(86vw,1600px))/2 + 40px))}}
@media (max-width:699px){#root .hy-h1{font-size:clamp(56px,19vw,96px)}#root .hy-hero{min-height:0}}

/* ---------- 11. ACCESO A PANTALLA COMPLETA (26-11) ----------
   Experiencia independiente: sin header comercial ni footers. Dos zonas integradas a toda la ventana;
   logo y «Volver a la tienda», ayuda y legales discretos. En móvil, el acceso primero. */
html[data-shell=auth] #app>.w{max-width:none!important;padding:0!important}
html[data-shell=auth] #root .ax-wrap{margin:0;gap:0;min-height:100svh;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html[data-shell=auth] #root .ax-l{border:0;border-radius:0;position:relative;padding:clamp(96px,10vh,140px) clamp(24px,4vw,64px) clamp(40px,6vh,72px)}
html[data-shell=auth] #root .ax-r{border-radius:0;padding:clamp(80px,10vh,140px) clamp(32px,5vw,112px)}
html[data-shell=auth] #root .ax-lin{max-width:420px}
html[data-shell=auth] #root .ax-rin{max-width:620px}
#root .ax-top{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:28px clamp(24px,3vw,48px)}
#root .ax-logo img{display:block;width:56px;height:auto}
#root .ax-back{font-size:15px;font-weight:600;color:#252628;text-decoration:none;display:inline-flex;gap:6px;align-items:center;min-height:44px}
#root .ax-back:hover{text-decoration:underline;text-underline-offset:4px}
#root .ax-help{position:absolute;top:28px;right:clamp(24px,3vw,48px);color:#fff;font-size:15px;font-weight:600;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;z-index:2}
#root .ax-help:hover{text-decoration:underline;text-underline-offset:4px}
#root .ax-top a:focus-visible,#root .ax-help:focus-visible{outline:2px solid #D71920;outline-offset:3px;border-radius:6px}
#root .ax-c1 p{margin:2px 0 10px}
@media (max-width:899px){
  html[data-shell=auth] #root .ax-wrap{grid-template-columns:1fr;min-height:100svh}
  html[data-shell=auth] #root .ax-l{min-height:100svh;padding:92px 20px 40px;align-items:flex-start}
  html[data-shell=auth] #root .ax-r{display:none}
  #root .ax-top{padding:18px 20px}
}

/* ---------- 12. PIE DEL PAGO: blanco, minimalista y formal (26-11) ---------- */
html[data-shell=checkout] #root #ft-c{background:#fff;color:#55585C;border-top:1px solid #E7E7E9;margin-top:clamp(40px,5vw,72px)}
html[data-shell=checkout] #root #ft-c .f4-in{padding-top:28px;padding-bottom:28px}
html[data-shell=checkout] #root #ft-c a,html[data-shell=checkout] #root #ft-c .f4-co,html[data-shell=checkout] #root #ft-c span{color:#55585C}
html[data-shell=checkout] #root #ft-c a:hover{color:#252628}
html[data-shell=checkout] #root #ft-c .f4-cb img{content:url(/media/logo-lude-negro.svg)}
html[data-shell=checkout] #root #ft-c .f4-lr{background:#F4F4F5;color:#252628;border:0}
html[data-shell=checkout] #root #ft-c .f4-lr .ii{background:#fff}
html[data-shell=checkout] #root #ft-c .f4-c1,html[data-shell=checkout] #root #ft-c .f4-legal{border-color:#ECECEE}

/* ---------- 13. SIN PIES DE FOTO DECORATIVOS (26-11) ----------
   Nuestra historia (zapatillas, canchas, panorámicas) y «Míralas de cerca» de la portada. Los enlaces conservan
   su nombre accesible (texto solo para lectores de pantalla) y las imágenes, su texto alternativo. */
#root .hy figcaption,#root .hm-mac figcaption{display:none}
#root .hy .hy-dc .cap{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Titular de historia en la portada: dos líneas equilibradas en escritorio */
@media (min-width:900px){#root .hm-cl2-h{font-size:clamp(44px,4.3vw,84px)}}

/* ---------- 14. ACCESO: parte izquierda en una sola pantalla (26-11, referencia de Gonzalo) ----------
   Fondo blanco, logo LUDE arriba y centrado, Google, separador «o» y correo en el mismo lugar, legales discretos.
   El panel derecho conserva su contenido y composición originales. */
html[data-shell=auth] #root .ax-top .ax-logo{visibility:hidden}
html[data-shell=auth] #root .ax-l{background:#fff}
html[data-shell=auth] #root .ax-lin{max-width:440px;gap:16px;align-items:stretch}
#root .ax-hd{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
#root .ax-hl{display:block;width:64px;height:auto;margin-bottom:clamp(16px,3vh,32px)}
html[data-shell=auth] #root .ax-h{font-size:clamp(34px,2.8vw,48px);line-height:1}
html[data-shell=auth] #root .ax-lead{font-size:16.5px;margin:0}
html[data-shell=auth] #root .ax-ms{display:flex;flex-direction:column;gap:12px;margin-top:8px}
html[data-shell=auth] #root .ax-m{height:56px;font-size:16px;border-radius:999px}
#root .ax-or{display:flex;align-items:center;gap:14px;color:#8A8D90;font-size:14px}
#root .ax-or::before,#root .ax-or::after{content:"";flex:1;height:1px;background:#E4E5E6}
html[data-shell=auth] #root .ax-mf{display:flex;flex-direction:column;gap:12px}
html[data-shell=auth] #root .ax-mf .ax-f label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
html[data-shell=auth] #root .ax-mf input{height:56px;border-radius:14px;font-size:16px;padding:0 18px;border:1.5px solid #D9DADC;background:#fff}
html[data-shell=auth] #root .ax-mf input:focus{border-color:#252628;box-shadow:0 0 0 3px rgba(37,38,40,.10);outline:none}
html[data-shell=auth] #root .ax-btn{height:56px;border-radius:999px;font-size:16.5px;width:100%}
html[data-shell=auth] #root .ax-sm{text-align:center;font-size:13.5px;color:#6A6D70;margin:0}
@media (max-width:899px){
  html[data-shell=auth] #root .ax-l{padding:64px 20px 24px;justify-content:center;align-items:center}
  html[data-shell=auth] #root .ax-h{font-size:clamp(30px,8.4vw,40px)}
  #root .ax-hl{margin-bottom:12px}
}

/* ---------- 15. GALERÍA DE 8 FOTOS (27-11) ----------
   El encuadre depende del tipo de foto, no de su nombre (en vivo las URL vienen de Odoo): las 1:1 aprobadas llenan su
   casilla tal cual (sin recorte ni doble fondo); las 3:2 de vista completa se ven enteras (sin cortar puntas, talones
   ni suelas) y solo los detalles de puntera y lengüeta se acercan. */
#root .pd-t:not(.cov):not(.sq) img,#root .pd-sl-s:not(.cov):not(.sq) img{object-fit:contain!important}
#root .pd-t.sq img,#root .pd-sl-s.sq img{padding:0!important;object-fit:cover!important}
#root .pd-t.cov:not(.sq) img,#root .pd-sl-s.cov:not(.sq) img{padding:0!important;object-fit:cover!important}
#root .pd-feat .pim img[src*="-27-"]{object-fit:cover!important}
/* Tarjeta del catálogo: el diseño encuadra cada foto con métricas por nombre de archivo (--w, --cx…). Una foto sin
   métricas (las URL de Odoo en vivo, las 1:1 nuevas) se veía a tamaño natural, enorme. Ahora se ve entera y centrada. */
#root .kz-im img:not([style]){width:100%;height:100%;left:0;top:0;object-fit:contain;padding:5%;box-sizing:border-box}
#root .pd-feat .b .pim img[src*="-27-"]{object-position:50% 40%}

/* ---------- 17. VISOR DE FOTOS (27-11) ----------
   La foto ocupa siempre la caja entera (contain): al pasar de 960 a 1536 px no cambia de tamaño. Fondo de estudio
   igual al de las fotos. Zoom natural en el punto tocado. Durante el cierre no intercepta clics. */
#root .lbx{overscroll-behavior:contain;touch-action:none}
#root .lbx.out{pointer-events:none}
#root .lbx-im{position:relative;background:#EAEAEA;border:0;padding:0;touch-action:none;user-select:none;-webkit-user-select:none;outline:0;will-change:transform}
#root .lbx-im:focus-visible{box-shadow:0 0 0 3px rgba(255,255,255,.55)}
#root .lbx-im img{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;transition:transform .32s cubic-bezier(.2,.7,.2,1);transform-origin:50% 50%;-webkit-user-drag:none}
#root .lbx-im.zm img{transform:scale(2.2);transition:transform .32s cubic-bezier(.2,.7,.2,1),transform-origin .08s linear}
#root .lbx-t button{background:#EAEAEA;transition:opacity .16s ease,border-color .16s ease,transform .12s ease}
#root .lbx-t button:hover{opacity:.9}
#root .lbx-t button:active{transform:scale(.95)}
#root .lbx-t button[aria-current="true"]{opacity:1;outline:2px solid #fff;outline-offset:2px}
#root .lbx-s .nv{transition:background .15s ease,transform .12s ease}
#root .lbx-s .nv:active{transform:scale(.94)}
#root .lbx-h #lbx-c{font-variant-numeric:tabular-nums}
@media (max-width:699px){#root .lbx-im{border-radius:14px}}

/* ---------- 18. FAVORITOS (27-11) ----------
   Contorno sin guardar; corazón negro relleno guardado. El diseño pinta con .on; se acepta también aria-pressed. */
#root .kz-fav svg,#root .pd-fav svg{transition:fill .18s ease,stroke .18s ease}
#root .kz-fav.on svg,#root .kz-fav[aria-pressed="true"] svg{fill:#111;stroke:#111}
#root .kz-fav.on::before,#root .kz-fav[aria-pressed="true"]::before{background:#fff}
#root .pd-fav[aria-pressed="true"]{border-color:#111}
#root .pd-fav[aria-pressed="true"] svg{fill:#111;stroke:#111;transform:none}

/* ---------- 19. BOLSA LATERAL: la abre el control de intención (ui.js), no :hover ni :focus-within ----------
   Cerrada: invisible y sin interceptar el puntero. Abre en 200–280 ms y cierra en 180 ms. */
@media (min-width:1100px){
  #root .bagw:hover .bagp:not(.open),#root .bagw:focus-within .bagp:not(.open),#root .bagp:not(.open){opacity:0;visibility:hidden;transform:translateX(18px);pointer-events:none;
    transition:opacity .18s ease,transform .22s cubic-bezier(.4,0,.2,1),visibility 0s linear .22s}
  #root .bagp.open{opacity:1;visibility:visible;transform:none;pointer-events:auto;
    transition:opacity .2s cubic-bezier(.2,.7,.2,1),transform .28s cubic-bezier(.2,.7,.2,1),visibility 0s}
}
/* El contador nunca toma el estilo «.pop» (popover) del diseño */
#root .badge-n.pop{position:absolute;width:auto;height:17px;padding:0 4px;background:#D61F26;box-shadow:none;border-radius:8px;top:5px;right:3px}

/* ---------- 20. AÑADIR A LA BOLSA (27-11) ----------
   Un solo botón con estados: etiqueta que se funde (90/160 ms), check que se dibuja, carbón al confirmar.
   Las etiquetas comparten celda: el botón no cambia de tamaño. */
#root .pd-add,#root .pd-bar .btn{display:grid!important;place-items:center;transition:background-color .2s ease,transform .12s ease,box-shadow .2s ease}
#root .pd-add .pd-lbl,#root .pd-bar .btn .pd-lbl{grid-area:1/1;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap}
#root .pd-add:active:not([aria-disabled="true"]),#root .pd-bar .btn:active:not([aria-disabled="true"]){transform:scale(.98)}
#root .pd-add.is-busy,#root .pd-bar .btn.is-busy{cursor:progress;background:#D61F26;color:#fff}
#root .pd-add.is-done,#root .pd-bar .btn.is-done,#root .pd-bar .btn.is-done[aria-disabled="true"]{background:#252628;color:#fff;cursor:default}
#root .pd-ck path{stroke-dasharray:22;stroke-dashoffset:22;animation:pdCk .32s .08s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes pdCk{to{stroke-dashoffset:0}}
#root .pd-inbag{display:flex;align-items:center;gap:8px;margin:10px 2px 0;font-size:14px;color:#1F6B3E;animation:pdInbag .24s cubic-bezier(.2,.7,.2,1) both}
#root .pd-inbag svg{flex:none}
#root .pd-inbag a{margin-left:auto;color:#111;font-weight:600;text-decoration:underline;text-underline-offset:3px}
@keyframes pdInbag{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
#root #pd-cta .pd-msg{margin-top:10px}

/* ---------- 21. GUÍA LUDE: conversación (27-11) ----------
   Tres puntos con onda suave y escalonada (no parpadeo). Asistente virtual: sin «escribiendo» de persona. */
#root .gl-m.gx-typ p{display:inline-flex;align-items:center;min-height:22px;padding-top:12px;padding-bottom:12px}
#root .gl-dots{gap:5px}
#root .gl-dots i{width:7px;height:7px;border-radius:7px;background:#55585B;opacity:.45;animation:glDot 1.1s cubic-bezier(.45,0,.55,1) infinite}
#root .gl-dots i:nth-child(2){animation-delay:.14s}
#root .gl-dots i:nth-child(3){animation-delay:.28s}
@keyframes glDot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
#root .gl-b.gx-chat{scroll-behavior:auto;overscroll-behavior:contain}

/* ---------- 22. MOVIMIENTO REDUCIDO Y ESTABILIDAD ----------
   Con movimiento reducido no hay desplazamientos ni escalas: solo cambios de estado instantáneos o fundidos mínimos.
   El hueco de la barra de scroll se reserva para que abrir capas no mueva la página. */
html{scrollbar-gutter:stable}
@media (prefers-reduced-motion:reduce){
  #root .lbx-im img,#root .bagp,#root .pd-add,#root .pd-bar .btn,#root .kz-fav svg,#root .pd-fav svg{transition:none!important}
  #root .pd-ck path{animation:none;stroke-dashoffset:0}
  #root .pd-inbag{animation:none}
  #root .gl-dots i{animation:none;opacity:.6}
}

/* ---------- 16. GUÍA LUDE: chat más sereno (27-11) ----------
   Campo de escritura suave, botón de envío en carbón solo cuando hay texto, cabecera y sugerencias más limpias. */
#root .gl-cm{border-top-color:#EEEEF0;padding-top:10px}
#root .gl-cm .gx-in{height:46px;border:1px solid transparent;background:#F4F4F5;font-size:15.5px;transition:background .15s ease,border-color .15s ease}
#root .gl-cm .gx-in::placeholder{color:#8A8D90}
#root .gl-cm .gx-in:focus{background:#fff;border-color:#C9CACC;box-shadow:0 0 0 3px rgba(37,38,40,.06)}
#root .gl-cm .gx-sd{width:42px;height:42px;background:#252628;transition:background .15s ease,transform .12s ease}
#root .gl-cm .gx-sd[aria-disabled="true"]{background:#E4E5E6;color:#9A9C9F}
#root .gl-cm .gx-sd:not([aria-disabled="true"]):active{transform:scale(.94)}
#root .gl-sug h3{font-size:12.5px;font-weight:600;color:#6A6D70;letter-spacing:.02em;margin:0 0 8px}
#root .gl-sug button{min-height:44px;font-size:14.5px;border-color:#E4E5E6;transition:background .15s ease,border-color .15s ease}
#root .gl-sug button:hover{border-color:#C9CACC}
#root .gl-m.gx-g p{line-height:1.5}
