/* TIC2026 home — RUTA 2.0 v2.2 — 2026-07-13 (bloque C: PORTADA)
   Reglas SOLO de portada. Depende de tic2026-tokens.css (--accent, --d-*, --e-*,
   .btn*, .badge*, .chip, .section, .sec-head, .eyebrow, .mask-line, .rise, .pop).
   NO redefine tokens. Todo scoped bajo .tic-home para no filtrar a PLP/PDP/etc.
   Los estados «ocultos» de reveal van tras html.js (que solo pone motion.js) →
   sin motion.js todo queda VISIBLE (fallback duro). */

/* ---------- 0. Contenedor de portada ---------- */
.tic-home{display:block}
.tic-home .tic-wrap{max-width:1280px;margin-inline:auto;padding-inline:clamp(16px,4vw,32px)}
.tic-home .tic-section{padding-block:clamp(34px,6vw,60px) 0}
/* iconos SVG (sprite inline en index.tpl) — self-contained: el header usa otro set */
.tic-home .ic{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tic-home .ic--s{width:17px;height:17px}
.tic-home .ic--xs{width:13px;height:13px}
.tic-home .ic--l{width:28px;height:28px}
.tic-home .i-garage-door{fill:none;stroke:currentColor}

/* KILL-SWITCH garaje por tienda (descomentar para ocultar en Trekktic / shop 6):
   body.tdc-shop-6 .tic-home .garage-card,
   body.tdc-shop-6 .tic-home .garage-mob{display:none !important}
   — el garaje/matrícula MOTUL es propio de tiendas con vehículo (Mototic 2 / Autotic 5);
     en shop 6 (trekking) puede no aplicar. */

/* ITEM 3 — portada RUTA full-width, SIN columna de buscador (el mockup no la tiene).
   Dos fuentes producían sidebar en la home y hay que neutralizar ambas:
   (a) el layout PS #left-column → resuelto en index.tpl con layout-full-width (ya no se
       renderiza esa columna).
   (b) un wrapper propio del tema, `.buscadorkits-sidebar-wrap` dentro de
       `#wrapper.tdc-home-with-sidebar`, que JS inyecta en page-index (enfoque viejo;
       reglas en tudetic-buscadorkits-v2.css + critical-home-*.css, ficheros que NO son
       de este bloque). Lo ocultamos SOLO en la home. En categoría/búsqueda
       (`body.page-category` / `body.page-search`) el sidebar de filtros queda intacto.
   El `#content.page-content--home` ya lo fuerza a width:100% el critical CSS, así que al
   ocultar el wrap el contenido queda a todo el ancho sin hueco. Doble clase `.page-index`
   para superar en especificidad al `display:block!important` del wrap sin depender del
   orden de carga de las hojas. */
/* El tema RE-MUESTRA el wrap en la home con
   `html body.page-index #wrapper.tdc-home-with-sidebar > .buscadorkits-sidebar-wrap{display:block!important}`
   (especificidad 1,3,2, con el id #wrapper). Para ganar subimos a 1,4,2 (id #wrapper +
   doble .page-index) y esta hoja carga DESPUÉS del bundle, así que dominamos el cascade.
   Cubrimos el wrap tanto reubicado dentro de #wrapper como suelto bajo body. */
html body.page-index.page-index #wrapper.tdc-home-with-sidebar .buscadorkits-sidebar-wrap,
html body.page-index.page-index #wrapper .buscadorkits-sidebar-wrap[data-tdc-relocated],
html body.page-index.page-index > .buscadorkits-sidebar-wrap{display:none !important}
/* wrapper de vuelta a bloque a todo el ancho (el tema lo hacía flex-row de 2 columnas) */
html body.page-index.page-index #wrapper.tdc-home-with-sidebar{display:block !important;flex-direction:initial !important;gap:0 !important;padding-left:0 !important;padding-right:0 !important;grid-template-columns:none !important}

/* ================= 1. HERO «banner» (altura contenida, ancho completo) =================
   2026-07-20: antes ocupaba 100svh (escenario a pantalla completa); el usuario pidió
   altura de banner normal (referencia Amazon/Tradeinn/PcComponentes ~360-440px).
   Los hijos van posicionados en % → escalan solos con la nueva altura. */
.tic-home .stage{position:relative}
.tic-home .stage-pin{
  position:relative;
  height:clamp(360px,34vw,440px);
  overflow:hidden;background:#0B0F1A;color:#fff;
}
.tic-home .stage-bg{position:absolute;inset:-6%;z-index:1}
.tic-home .stage-bg img{width:100%;height:100%;object-fit:cover;filter:brightness(.62) saturate(1.04);transform:scale(1.08)}
.tic-home .stage-shade{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  background:
    radial-gradient(92% 72% at 50% 42%,transparent 28%,rgba(7,10,18,.5) 100%),
    linear-gradient(rgba(7,10,18,.42),transparent 32%,transparent 60%,rgba(7,10,18,.85));
}
.tic-home .stage-eyebrow{
  position:absolute;top:5%;left:50%;transform:translateX(-50%);z-index:5;
  font-size:clamp(11px,1.2vw,13.5px);font-weight:700;letter-spacing:.26em;text-transform:uppercase;
  color:#C6D0E6;white-space:nowrap;text-align:center;
}
.tic-home .stage-eyebrow em{font-style:normal;color:var(--accent);font-weight:900}
.tic-home .stage-title{position:absolute;inset:0;z-index:4;pointer-events:none;margin:0}
.tic-home .st-line{
  position:absolute;left:50%;white-space:nowrap;transform:translateX(-50%);
  max-width:94%; /* 2026-07-21: cap del shrink-to-fit → scrollWidth>clientWidth detecta
                    desborde y el fit-to-width del hero BO puede encoger títulos largos */
  font-weight:900;font-style:italic;letter-spacing:-.03em;text-transform:uppercase;
  font-size:clamp(28px,4.8vw,62px);line-height:1;text-shadow:0 4px 30px rgba(5,8,15,.6);
}
.tic-home .st-line--front{top:26%;z-index:5}
.tic-home .st-line--back{top:48%;z-index:3;color:#B7C4DE}
.tic-home .st-line .w{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.08em;margin-bottom:-.08em}
.tic-home .st-line .w i{display:inline-block;font-style:inherit}
.tic-home .stage-cta{
  position:absolute;z-index:6;left:50%;transform:translateX(-50%);bottom:15%;
  display:grid;justify-items:center;gap:12px;text-align:center;width:min(92vw,560px);
}
.tic-home .stage-cta .stage-cta-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
/* pista «desliza»: tenía sentido con el hero a pantalla completa; en banner normal el
   contenido ya asoma debajo → oculta (markup y traducciones intactos por si se restaura) */
.tic-home .stage-hint{display:none}
/* ---------- hero BO-driven (2026-07-21): capas de slides de ps_imageslider ----------
   El override del módulo emite .stage-bg.tdc-hslider con N .hslide apiladas; la activa
   lleva .is-on (crossfade). El <img> hereda los estilos base de .stage-bg img (cover +
   brightness .62). Link de banner bajo los CTAs; dots sobre la carretera. */
.tic-home .stage-bg.tdc-hslider .hslide{position:absolute;inset:0;opacity:0;transition:opacity .85s var(--e-settle)}
.tic-home .stage-bg.tdc-hslider .hslide.is-on{opacity:1}
.tic-home .stage-link{position:absolute;inset:0;z-index:3;display:block}
.tic-home .stage-link:not([href]){pointer-events:none}
.tic-home .stage-dots{position:absolute;z-index:8;left:50%;transform:translateX(-50%);bottom:38px;display:flex;gap:7px}
.tic-home .stage-dots:empty{display:none}
.tic-home .stage-dots .st-dot{width:22px;height:5px;border-radius:99px;border:0;padding:0;cursor:pointer;background:rgba(255,255,255,.35);transition:background var(--d-base) ease,transform var(--d-fast) var(--e-settle)}
.tic-home .stage-dots .st-dot:hover{transform:scaleY(1.4)}
.tic-home .stage-dots .st-dot.is-on{background:var(--accent)}
/* replay del split al rotar slide (mismas curvas que el boot de motion.js) */
.tic-home .st-line.st-swap .w i{animation:wordUp .54s var(--e-settle) both;animation-delay:calc(var(--wi,0)*var(--stagger))}
.tic-home .stage-eyebrow.st-swap{animation:softIn .5s var(--e-out) both}

/* carretera-motivo (parallax --hp lo mueve motion.js) */
.tic-home .stage-road{position:absolute;z-index:6;left:0;right:0;bottom:3.2%;height:44px;pointer-events:none}
.tic-home .stage-road::before{
  content:"";position:absolute;left:0;right:0;bottom:10px;height:3px;opacity:.85;
  background:repeating-linear-gradient(90deg,color-mix(in srgb,var(--accent) 82%,#fff) 0 30px,transparent 30px 52px);
  background-position-x:calc(var(--hp,0)*-140px);
}

/* ---------- tarjeta TU GARAJE / MOTUL por matrícula ---------- */
.tic-home .garage-card{
  position:absolute;z-index:7;right:clamp(14px,3.5vw,44px);bottom:9%;
  width:min(330px,86vw);background:rgba(255,255,255,.97);color:var(--ink);
  border-radius:var(--r-card);box-shadow:var(--shadow-2);overflow:hidden;
  max-height:calc(100% - 16px);overflow-y:auto;
}
.tic-home .g-head{
  display:flex;align-items:center;gap:10px;padding:13px 16px;
  background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:var(--on-accent);
}
.tic-home .g-head .ic{width:26px;height:26px;flex:none}
.tic-home .g-head strong{display:block;font-size:15px}
.tic-home .g-head span{font-size:12px;opacity:.9}
.tic-home .g-body{padding:14px 16px 16px;display:grid;gap:10px}
.tic-home .g-plate{display:grid;gap:7px}
.tic-home .g-plate>label{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-soft);display:flex;align-items:center;gap:8px}
.tic-home .plate-motul{height:16px;width:auto;display:block}
.tic-home .plate-row{display:flex;gap:8px}
.tic-home .plate-row input{
  flex:1;min-width:0;width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;
  font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:14px;color:var(--ink);background:#fff;
  transition:border-color var(--d-fast) ease,box-shadow var(--d-base) var(--e-settle);
}
.tic-home .plate-row input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 20%,transparent)}
.tic-home .plate-row input::placeholder{letter-spacing:.06em;font-weight:600;color:#9AA4B8}
.tic-home .plate-row .btn{padding-inline:15px;flex:none}
.tic-home .g-plate.shake{animation:plateShake .4s var(--e-out)}
@keyframes plateShake{0%,100%{transform:none}25%{transform:translateX(-5px)}55%{transform:translateX(4px)}80%{transform:translateX(-2px)}}
.tic-home .g-note{font-size:12px;color:var(--ink-soft);margin:0}
/* icono garaje: puerta que se abre en hover */
.tic-home .i-garage-door .door{transition:transform var(--d-base) var(--e-out);transform-origin:center 45%}
@media (hover:hover){
  .tic-home .garage-card:hover .i-garage-door .door,
  .tic-home .garage-mob:hover .i-garage-door .door{transform:scaleY(.25) translateY(-6px)}
}

/* intro orquestada (solo primera carga: body.boot, que pone motion.js) */
body.boot .tic-home .stage-bg{animation:bgIn .8s var(--e-out) both}
@keyframes bgIn{from{opacity:0;transform:scale(1.06)}to{opacity:1;transform:none}}
body.boot .tic-home .st-line .w i{animation:wordUp .54s var(--e-settle) both;animation-delay:calc(160ms + var(--wi,0)*var(--stagger))}
@keyframes wordUp{from{transform:translateY(112%) rotate(3deg)}to{transform:none}}
body.boot .tic-home .stage-eyebrow{animation:softIn .5s var(--e-out) .12s both}
@keyframes softIn{from{opacity:0}to{opacity:1}}
body.boot .tic-home .garage-card{animation:cardDepth .6s var(--e-settle) .55s both}
@keyframes cardDepth{from{opacity:0;transform:scale(.9);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
body.boot .tic-home .stage-cta{animation:softRise .55s var(--e-settle) .7s both}
@keyframes softRise{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:none}}
body.boot .tic-home .stage-hint{animation:softIn .6s ease 1.2s both}

/* garaje colapsable móvil (bajo el hero) */
.tic-home .garage-mob{display:none;margin:16px auto 0;max-width:640px}
.tic-home .garage-mob .g-toggle{
  width:100%;display:flex;align-items:center;gap:10px;
  background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:13px 16px;
  font-weight:800;font-size:15px;box-shadow:var(--shadow-1);
  transition:transform var(--d-fast) var(--e-settle);
}
.tic-home .garage-mob .g-toggle:active{transform:scale(.97)}
.tic-home .garage-mob .g-toggle .ic:last-child{margin-left:auto;transition:transform var(--d-base) var(--e-settle)}
.tic-home .garage-mob.open .g-toggle .ic:last-child{transform:rotate(180deg)}
.tic-home .garage-mob .g-fold{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--d-travel) var(--e-settle)}
.tic-home .garage-mob.open .g-fold{grid-template-rows:1fr}
.tic-home .garage-mob .g-fold>div{overflow:hidden}
.tic-home .garage-mob .g-body{background:#fff;border:1.5px solid var(--line);border-top:0;border-radius:0 0 14px 14px}

/* ================= 2. TRUST BAR (solo claims neutrales permitidos) ================= */
.tic-home .trust{margin-top:26px}
.tic-home .trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.tic-home .trust-item{
  display:flex;gap:13px;align-items:flex-start;
  background:var(--card);border-radius:var(--r-card);padding:16px 18px;box-shadow:var(--shadow-1);
}
.tic-home .trust-item .ic{color:var(--accent);margin-top:2px;flex:none;width:24px;height:24px}
.tic-home .trust-item strong{display:block;font-size:14.5px}
.tic-home .trust-item span{font-size:12.5px;color:var(--ink-soft)}
.tic-home .trust-item a{color:var(--accent-dark);font-weight:700}

/* ================= 3. LOS MÁS VENDIDOS (re-skin de tudeticdeliverypredict/featured) ================= */
.tic-home .tdc-featured-products__title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tic-home .tdc-featured-products .products,
.tic-home .tdc-featured-products .contenedor-productos{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:clamp(12px,1.6vw,18px);align-items:stretch;
}

/* ================= 4. CATEGORÍAS con reveal de visera (re-skin de renderCategoryBanners) ================= */
.tic-home .tdc-cat-banners__title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tic-home .tdc-cat-banners__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.tic-home .tdc-cat-banner{
  position:relative;border-radius:var(--r-card);overflow:hidden;aspect-ratio:16/10;display:block;
  box-shadow:var(--shadow-1);color:#fff;
}
/* reveal de visera: SOLO cuando motion.js activa html.js (sin motion.js → visible) */
html.js .tic-home .tdc-cat-banner.cat-tile{clip-path:polygon(0 0,100% 0,100% 12%,0 2%)}
html.js .tic-home .tdc-cat-banner.cat-tile.in{
  clip-path:polygon(0 0,100% 0,100% 100%,0 100%);
  transition:clip-path .65s var(--e-out);transition-delay:calc(var(--i,0)*var(--stagger));
}
.tic-home .tdc-cat-banner__bg{
  position:absolute;inset:0;background-color:hsl(var(--cat-hue,210),42%,42%);
  background-size:cover;background-position:center;transform:scale(1.12);transition:transform .8s var(--e-out);
}
html.js .tic-home .tdc-cat-banner.cat-tile.in .tdc-cat-banner__bg{transform:scale(1)}
@media (hover:hover){.tic-home .tdc-cat-banner:hover .tdc-cat-banner__bg{transform:scale(1.06)}}
.tic-home .tdc-cat-banner__overlay{
  position:absolute;inset:auto 0 0 0;padding:14px 16px;
  display:flex;flex-direction:column;gap:2px;
  background:linear-gradient(transparent,rgba(9,13,24,.9));
}
.tic-home .tdc-cat-banner__name{font-size:16.5px;font-weight:800;font-style:italic;text-transform:uppercase;letter-spacing:-.01em}
.tic-home .tdc-cat-banner__desc{font-size:12.5px;font-weight:600;opacity:.9}

/* ================= 5. SHOWCASE — carrusel clásico (override ps_imageslider, namespaced .tic-car-*) ================= */
.tic-home .showcase{position:relative;margin-top:clamp(34px,6vw,60px)}
.tic-home .show-head{max-width:1280px;margin:0 auto 16px;width:100%;padding-inline:clamp(16px,4vw,32px)}
.tic-home .tic-carousel{position:relative;max-width:1280px;margin:0 auto;padding-inline:clamp(16px,4vw,32px)}
.tic-home .tic-car-viewport{overflow:hidden;border-radius:20px;box-shadow:var(--shadow-2)}
.tic-home .tic-car-track{display:flex;transition:transform var(--d-travel) var(--e-travel);touch-action:pan-y}
.tic-home .tic-car-track.dragging{transition:none;cursor:grabbing}
.tic-home .tic-car-slide{position:relative;flex:0 0 100%;aspect-ratio:16/6.2;display:block;overflow:hidden;background:#0B0F1A}
@media (max-width:720px){.tic-home .tic-car-slide{aspect-ratio:4/3}}
.tic-home .tic-car-slide img{width:100%;height:100%;object-fit:cover;-webkit-user-drag:none;user-select:none}
.tic-home .tic-car-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--ink);
  display:grid;place-items:center;box-shadow:var(--shadow-1);
  transition:transform var(--d-fast) var(--e-settle),background-color var(--d-fast) ease;
}
.tic-home .tic-car-arrow .ic{width:22px;height:22px}
.tic-home .tic-car-arrow:active{transform:translateY(-50%) scale(.93)}
@media (hover:hover){.tic-home .tic-car-arrow:hover{background:#fff;transform:translateY(-50%) scale(1.08)}}
.tic-home .tic-car-arrow--prev{left:clamp(26px,4.6vw,46px)}
.tic-home .tic-car-arrow--next{right:clamp(26px,4.6vw,46px)}
.tic-home .tic-car-dots{display:flex;gap:8px;justify-content:center;margin-top:14px}
.tic-home .tic-car-dot{position:relative;width:28px;height:6px;border-radius:3px;background:var(--line);overflow:hidden;transition:background-color var(--d-fast) ease;padding:0;border:0;cursor:pointer}
.tic-home .tic-car-dot i{position:absolute;inset:0;background:var(--accent);transform-origin:left;transform:scaleX(0)}
.tic-home .tic-car-dot.is-on i{animation:ticDotProg var(--car-ms,6000ms) linear forwards}
.tic-home .tic-carousel.paused .tic-car-dot.is-on i{animation-play-state:paused}
@keyframes ticDotProg{to{transform:scaleX(1)}}
.tic-home .show-copy{
  position:absolute;inset:auto auto 0 0;right:0;padding:26px;color:#fff;
  background:linear-gradient(transparent,rgba(9,13,24,.85));
}
.tic-home .show-copy .eyebrow{color:#fff;opacity:.9}
.tic-home .show-copy h3{font-size:clamp(19px,2.6vw,28px);font-weight:900;font-style:italic;text-transform:uppercase;margin:0}
.tic-home .show-copy p{font-size:13.5px;opacity:.9;max-width:52ch;margin:6px 0 0}
.tic-home .show-copy .btn{margin-top:12px}

/* ---- Editorial split (item 5): cuando ps_imageslider trae 1 solo slide, en vez de un
   banner a sangre idéntico al hero (look viejo) mostramos una tarjeta RUTA: media
   fotográfica recortada + panel de copy (eyebrow/título/desc/CTA) con carril de acento.
   Markup en slider.tpl (rama $_n==1). Se ve completo aunque motion.js no exista (.rise). */
.tic-home .tic-feature-wrap{max-width:1280px;margin:0 auto;padding-inline:clamp(16px,4vw,32px)}
.tic-home .tic-feature{
  display:grid;grid-template-columns:1.4fr 1fr;align-items:stretch;
  border-radius:22px;overflow:hidden;box-shadow:var(--shadow-2);background:var(--card);isolation:isolate;
}
.tic-home .tic-feature__media{position:relative;display:block;overflow:hidden;background:#0B0F1A;min-height:clamp(240px,34vw,380px)}
.tic-home .tic-feature__media picture{position:absolute;inset:0;display:block}
.tic-home .tic-feature__media img{width:100%;height:100%;object-fit:cover;transform:scale(1.05);transition:transform .9s var(--e-out)}
.tic-home .tic-feature__solid{position:absolute;inset:0}
@media (hover:hover){.tic-home .tic-feature:hover .tic-feature__media img{transform:scale(1.11)}}
.tic-home .tic-feature__tint{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 60%,color-mix(in srgb,var(--card) 90%,transparent))}
.tic-home .tic-feature__panel{
  padding:clamp(24px,3.2vw,44px);display:flex;flex-direction:column;justify-content:center;gap:12px;
  background:var(--card);border-left:4px solid var(--accent);
}
.tic-home .tic-feature__panel .eyebrow{color:var(--accent)}
.tic-home .tic-feature__panel h3{font-size:clamp(23px,3.3vw,38px);font-weight:900;font-style:italic;text-transform:uppercase;letter-spacing:-.02em;line-height:1.03;margin:0;color:var(--ink)}
.tic-home .tic-feature__desc,.tic-home .tic-feature__desc p{font-size:14.5px;line-height:1.5;color:var(--ink-soft);margin:0;max-width:46ch}
.tic-home .tic-feature__panel .btn{align-self:flex-start;margin-top:6px}
@media (max-width:820px){
  .tic-home .tic-feature{grid-template-columns:1fr}
  .tic-home .tic-feature__media{min-height:0;aspect-ratio:16/9}
  .tic-home .tic-feature__tint{background:linear-gradient(0deg,color-mix(in srgb,var(--card) 90%,transparent),transparent 44%)}
  .tic-home .tic-feature__panel{border-left:0;border-top:4px solid var(--accent)}
}

/* ================= 6. MARQUEE de marcas (re-skin de renderBrandStrip) ================= */
.tic-home .brandsband{margin-top:clamp(34px,6vw,60px);padding:26px 0;background:var(--card);border-block:1px solid var(--line);overflow:hidden}
.tic-home .tdc-brand-strip__title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tic-home .tdc-brand-strip__track{display:flex;align-items:center;gap:clamp(26px,4vw,54px);padding-inline:clamp(13px,2vw,27px);width:max-content}
/* duración la fija el JS (--mq-dur) para velocidad px/s constante sea cual sea el nº de logos */
.tic-home .tdc-brand-strip__track.mq--ready{animation:ticMqRun var(--mq-dur,30s) linear infinite;will-change:transform}
@media (hover:hover){.tic-home .brandsband:hover .tdc-brand-strip__track.mq--ready{animation-play-state:paused}}
.tic-home .tdc-brand-strip__item{
  display:grid;place-items:center;background:#fff;border-radius:12px;padding:6px 10px;flex:none;
  filter:grayscale(1);opacity:.7;
  transition:filter var(--d-base) ease,opacity var(--d-fast) ease,transform var(--d-base) var(--e-settle);
}
@media (hover:hover){.tic-home .tdc-brand-strip__item:hover{filter:none;opacity:1;transform:translateY(-5px)}}
.tic-home .tdc-brand-strip__logo{height:34px;width:auto;max-width:120px;object-fit:contain}
.tic-home .tdc-brand-strip__name{font-weight:800;color:var(--ink-soft);font-size:14px}
@keyframes ticMqRun{to{transform:translateX(-50%)}}

/* ================= 7. NEWSLETTER (re-skin de ps_emailsubscription) ================= */
.tic-home .news{margin-top:clamp(34px,6vw,60px);padding:clamp(30px,5vw,54px) 0;background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:var(--on-accent)}
.tic-home .news .tic-wrap{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:26px;align-items:center}
.tic-home .news h2{font-size:clamp(21px,3vw,30px);font-weight:900;font-style:italic;text-transform:uppercase;margin:0}
.tic-home .news p{font-size:14px;opacity:.92;margin:6px 0 0}
/* re-skin del widget PS9 ps_emailsubscription (.ps-emailsubscription, Bootstrap) */
.tic-home .news .ps-emailsubscription{background:transparent !important;padding:0 !important;margin:0}
.tic-home .news .ps-emailsubscription .container,
.tic-home .news .ps-emailsubscription .row{max-width:none;width:100%;margin:0;padding:0;display:block}
.tic-home .news .ps-emailsubscription [class*="col-"]{max-width:100%;flex:1 1 100%;width:100%;padding:0}
.tic-home .news .ps-emailsubscription .h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tic-home .news .ps-emailsubscription form{margin:0;width:100%}
.tic-home .news .ps-emailsubscription .d-flex{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.tic-home .news .ps-emailsubscription input[type="email"],
.tic-home .news .ps-emailsubscription .form-control{
  flex:1;min-width:0;padding:13px 16px;border-radius:12px;border:0;font-size:14.5px;color:var(--ink);background:#fff;height:auto;
}
.tic-home .news .ps-emailsubscription input[type="email"]:focus{outline:3px solid rgba(255,255,255,.5);box-shadow:none}
.tic-home .news .ps-emailsubscription input[type="submit"],
.tic-home .news .ps-emailsubscription .btn{
  background:var(--ink);color:#fff;font-weight:700;font-size:14.5px;border:0;border-radius:12px;padding:13px 22px;cursor:pointer;flex:none;
  transition:transform var(--d-fast) var(--e-settle),box-shadow var(--d-fast) var(--e-out);
}
@media (hover:hover){.tic-home .news .ps-emailsubscription input[type="submit"]:hover,.tic-home .news .ps-emailsubscription .btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-2)}}
.tic-home .news .ps-emailsubscription .text-body-secondary,
.tic-home .news .ps-emailsubscription .alert{color:rgba(255,255,255,.85) !important;background:rgba(255,255,255,.14);padding:8px 12px;border-radius:10px;font-size:12px;margin:8px 0 0;flex-basis:100%}

/* Newsletter duplicada en portada (QA-C): el tema hookea ps_emailsubscription también
   sobre el footer (hook displayFooterBefore → wrapper con id único
   #emailsubscription_anchor_displayFooterBefore). En la home ya existe la sección .news
   del bloque C con su propio formulario → ocultamos SOLO en la home (body#index) la barra
   del footer. La instancia de .news no se ve afectada (su id es #emailsubscription_anchor_).
   footer.tpl NO se toca (es de otro agente); en el resto de páginas la barra del footer sigue. */
body#index #emailsubscription_anchor_displayFooterBefore{display:none !important}

/* ---- Newsletter: contraste legible (fix cascada @layer PS9) ----------------------
   PS9 Hummingbird compila las utilidades Bootstrap dentro de `@layer utilities`, y
   para declaraciones `!important` una regla EN CAPA gana SIEMPRE a una `!important`
   SIN capa (el orden de capas se invierte para important), sin importar la
   especificidad. Por eso `.tic-home .news .ps-emailsubscription{background:transparent
   !important}` (y su gemela en tic2026-footer.css) perdían contra la utilidad
   `.bg-body-tertiary{background-color:…!important}` de Bootstrap → el widget quedaba con
   panel casi blanco (#f8f9fa) y el texto en blanco = BLANCO SOBRE BLANCO (visible en la
   barra del footer de categoría/producto; en la home el titular del widget va oculto por
   clip). Reafirmamos los overrides DENTRO de la misma capa `utilities` para que decida la
   especificidad y ganen. Cubre la home (.news, banda teal) y la barra del footer (fondo
   oscuro) en las 3 tiendas tic2026 (verificado computed color vs background). */
@layer utilities {
  .tic-home .news .ps-emailsubscription.bg-body-tertiary,
  .footer .ps-emailsubscription.bg-body-tertiary { background-color: transparent !important; }
  .tic-home .news .ps-emailsubscription .text-body-secondary,
  .footer .ps-emailsubscription .text-body-secondary { color: rgba(255, 255, 255, .82) !important; }
}

/* ================= 8. ps_banner / ps_customtext / displayHomeBlock (re-skin ligero) ================= */
.tic-home .tdc-home-block--banner,
.tic-home .tdc-home-block--customtext,
.tic-home .tdc-home-block--catpromo{margin-top:clamp(28px,5vw,52px)}
.tic-home .tdc-home-block--banner img,
.tic-home .tdc-home-block--catpromo img{max-width:100%;height:auto;border-radius:var(--r-card)}
.tic-home .tdc-home-block--customtext{max-width:1280px;margin-inline:auto;padding-inline:clamp(16px,4vw,32px)}

/* ================= 9. RESPONSIVE ================= */
/* 2026-07-21 (tarde): la tarjeta flotante del garaje y la barra colapsable se RETIRARON
   del markup — la búsqueda por vehículo + matrícula vive siempre visible en .tic-vsearch
   bajo el hero (las reglas .garage-* de arriba quedan latentes por si se restaura). */

/* ---------- Búsqueda por vehículo + matrícula MOTUL (portada, shops 2/4/5) ---------- */
.tic-home .tic-vsearch{margin-top:16px}
.tic-home .vs-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--shadow-1);
  padding:16px 18px;display:flex;gap:22px;align-items:flex-end;flex-wrap:wrap;
}
/* ---- 2026-07-22: variante con pestañas (Mototic/shop2) — POR MOTO / NEUMÁTICOS /
   MATRÍCULA MOTUL. El resto de tiendas sigue usando .vs-card a secas (fila, sin tabs). ---- */
.tic-home .vs-card--tabs{display:flex;flex-direction:column;align-items:stretch;gap:14px}
/* pestañas pill */
.tic-home .vs-tabs{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.tic-home .vs-tab{
  display:inline-flex;align-items:center;gap:7px;white-space:nowrap;cursor:pointer;
  background:var(--card);border:1.5px solid var(--line);color:var(--ink-soft);
  font-size:12.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;
  padding:9px 17px;border-radius:999px;
  transition:transform var(--d-base) var(--e-settle),background-color var(--d-fast) ease,border-color var(--d-fast) ease,color var(--d-fast) ease;
}
.tic-home .vs-tab .ic{width:17px;height:17px}
.tic-home .vs-tab:active{transform:scale(.96)}
.tic-home .vs-tab.is-on{
  background:linear-gradient(135deg,var(--accent),var(--accent-dark));
  border-color:transparent;color:var(--on-accent);
}
@media (hover:hover){
  .tic-home .vs-tab:not(.is-on):hover{border-color:var(--accent);color:var(--ink);transform:translateY(-1px)}
}
/* panel crossfade: los 3 paneles se apilan en la misma celda de grid (grid-area 1/1) →
   el alto del contenedor siempre es el del panel más alto (sin salto al cambiar de tab).
   Sin JS/CSS de reveal (motion.js ausente) el panel .is-on de origen (moto) ya es visible
   por defecto — fallback duro igual que el resto del bloque C. */
.tic-home .vs-panels{display:grid;grid-template-columns:1fr}
.tic-home .vs-panel{grid-area:1/1;opacity:0;visibility:hidden;pointer-events:none}
.tic-home .vs-panel.is-on{opacity:1;visibility:visible;pointer-events:auto}
.tic-home .vs-panel.is-on.vs-panel--swap{animation:vsPanelIn .45s var(--e-settle) both}
@keyframes vsPanelIn{
  from{opacity:0;transform:translateY(6px) scale(.97);filter:blur(5px)}
  to{opacity:1;transform:none;filter:none}
}
.tic-home .vs-block--vehiculo{flex:1 1 520px;min-width:0}
.tic-home .vs-block--plate{flex:0 1 340px;min-width:260px}
/* ---- 2026-07-24: chip + panel CONSTRUCTOR SHAD ---- */
.tic-home .tab-shad-logo{height:16px;width:auto;display:block;border-radius:3px}
.tic-home .vs-tab.is-on .tab-shad-logo,.tic-home .vs-tab.is-on .plate-motul{background:#fff;padding:1px 2px}
.tic-home .vs-block--shad{flex:1 1 520px;min-width:0}
.tic-home .vs-block--shad .vs-title .tab-shad-logo{height:18px}
.tic-home .vs-shad-sub{font-size:12.5px;color:var(--ink-soft);margin:-4px 0 10px;line-height:1.45}
.tic-home .vs-title{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.tic-home .vs-title strong{font-size:14px;font-weight:800;color:var(--ink)}
.tic-home .vs-title .ic{color:var(--accent)}
.tic-home .vs-title .plate-motul{height:16px;width:auto;display:block}
.tic-home .vs-row{display:flex;gap:8px;flex-wrap:wrap}
.tic-home .vs-row select{
  flex:1 1 150px;min-width:0;border:1.5px solid var(--line);border-radius:10px;
  padding:9px 10px;font-size:13.5px;font-weight:600;color:var(--ink);background:#fff;
}
.tic-home .vs-row select:disabled{opacity:.55;background:#f6f7f9}
/* combo con iconos (clases del módulo, ver inline JS): ocupa el hueco flex del select nativo oculto */
.tic-home .vs-row .vehiculo-combo{flex:1 1 150px;min-width:0;position:relative}
.tic-home .vs-row .vehiculo-combo .vehiculo-combo-toggle{width:100%}
/* el módulo deja el panel position:fixed SIN coordenadas (en su drawer lateral encaja);
   aquí lo anclamos bajo el botón dentro del combo (position:relative) */
.tic-home .vs-row .vehiculo-combo .vehiculo-combo-panel{position:absolute;top:calc(100% + 4px);left:0;min-width:100%;right:auto}
.tic-home .vs-row .btn{flex:none;padding-inline:18px}
.tic-home .vs-row .btn:disabled{opacity:.5;cursor:not-allowed}
/* ---- 2026-07-23: pulido buscador neumáticos — iconos didácticos por medida + hint de
   notación de flanco; y combos marca/modelo del módulo unificados al formato de los
   select nativos del theme (antes: look drawer del módulo, más bajos y grises) ---- */
.tic-home .vs-row--neum{align-items:flex-end}
.tic-home .vs-neu-field{flex:1 1 120px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px}
.tic-home .vs-neu-field select{width:100%;flex:0 0 auto}
.tic-home .vs-neu-ic{width:30px;height:30px;flex:none;color:var(--ink-soft);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:color var(--d-fast) var(--e-out)}
.tic-home .vs-neu-field:focus-within .vs-neu-ic{color:var(--accent)}
.tic-home .vs-neu-field:has(select option:checked:not([value=""])) .vs-neu-ic{color:var(--accent)}
/* ---- 2026-07-30: checkbox Tubeless (panel cubiertas Biketic/shop7) — pill al formato
   de los select nativos; icono acentuado al marcar (paridad con el :has de arriba) ---- */
.tic-home .vs-neu-check .vs-neu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;width:100%;border:1.5px solid var(--line);border-radius:10px;background:#fff;padding:9px 10px;font-size:13.5px;font-weight:600;color:var(--ink);user-select:none;transition:border-color var(--d-fast) ease}
.tic-home .vs-neu-check .vs-neu-toggle input{accent-color:var(--accent);width:16px;height:16px;margin:0;flex:none}
.tic-home .vs-neu-check .vs-neu-toggle:hover{border-color:var(--accent)}
.tic-home .vs-neu-check:has(input:disabled) .vs-neu-toggle{opacity:.55;background:#f6f7f9;cursor:not-allowed}
.tic-home .vs-neu-check:has(input:checked) .vs-neu-toggle{border-color:var(--accent)}
.tic-home .vs-neu-check:has(input:checked) .vs-neu-ic{color:var(--accent)}
/* ---- 2026-07-30 v2: input inteligente de medidas + semáforo cubierta↔llanta
   (panel cubiertas de Biketic/shop7 — tic2026-medidas-bici.js) ---- */
.tic-home .vs-smart-row{position:relative;margin-bottom:11px}
.tic-home .vs-smart-input{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:10px 13px 10px 38px;font-size:13.5px;font-weight:600;color:var(--ink);background:#fff}
.tic-home .vs-smart-input::placeholder{color:#a8b0bf;font-weight:500}
.tic-home .vs-smart-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.tic-home .vs-smart-ic{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--ink-soft);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.tic-home .vs-smart-drop{position:absolute;top:calc(100% + 5px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-2);z-index:30;overflow:hidden;display:none}
.tic-home .vs-smart-drop.open{display:block}
.tic-home .sd-item{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:9px 14px;cursor:pointer;font-size:13px;background:#fff;border:none;border-bottom:1px solid #f0f2f6;color:var(--ink);font-weight:500}
.tic-home .sd-item:last-child{border-bottom:none}
.tic-home .sd-item:hover{background:color-mix(in srgb,var(--accent) 9%,#fff)}
.tic-home .sd-item b{min-width:78px}
.tic-home .sd-item .sd-fr{color:var(--ink-soft)}
.tic-home .sd-item .sd-go{margin-left:auto;color:var(--accent-dark);font-weight:800;font-size:12px;white-space:nowrap}
.tic-home .vs-eq-strip{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:10px;font-size:12px;color:var(--ink-soft)}
.tic-home .vs-eq-strip[hidden]{display:none}
.tic-home .eq-chip{display:inline-flex;align-items:center;gap:5px;background:color-mix(in srgb,var(--accent) 12%,#fff);border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);color:color-mix(in srgb,var(--accent-dark) 72%,#000);border-radius:999px;padding:3px 10px;font-size:11.5px;font-weight:700;white-space:nowrap}
.tic-home .eq-chip small{font-weight:700;opacity:.65;text-transform:uppercase;font-size:9px;letter-spacing:.04em}
.tic-home .vs-neu-field input[type=text]{width:100%;flex:0 0 auto;border:1.5px solid var(--line);border-radius:10px;padding:9px 10px;font-size:13.5px;font-weight:600;color:var(--ink);background:#fff;text-align:center;min-width:0}
.tic-home .vs-neu-field input[type=text]::placeholder{color:#a8b0bf;font-weight:600}
.tic-home .vs-neu-field:has(input[type=text]:not(:placeholder-shown)) .vs-neu-ic{color:var(--accent)}
.tic-home #vsCubGo{position:relative}
.tic-home .btn-badge{position:absolute;top:-6px;right:-5px;width:16px;height:16px;border-radius:50%;border:2.5px solid #fff;display:none;pointer-events:none}
.tic-home .btn-badge.ok{display:block;background:var(--ok)}
.tic-home .btn-badge.warn{display:block;background:#E5A50A}
.tic-home .btn-badge.bad{display:block;background:var(--sale)}
.tic-home .vs-sem-inline{display:flex;gap:11px;align-items:center;margin-top:11px;padding:9px 13px;border-radius:11px;background:#f7f8fa;border:1px solid var(--line)}
.tic-home .vs-sem-inline[hidden]{display:none}
.tic-home .sem-lights{display:flex;gap:6px;align-items:center;flex:none}
.tic-home .sem-dot{width:13px;height:13px;border-radius:50%;background:#e7eaf0;border:1.5px solid var(--line);transition:background-color .25s ease,box-shadow .25s ease}
.tic-home .sem-dot.on-bad{background:var(--sale);border-color:var(--sale);box-shadow:0 0 9px color-mix(in srgb,var(--sale) 55%,transparent)}
.tic-home .sem-dot.on-warn{background:#E5A50A;border-color:#E5A50A;box-shadow:0 0 9px rgba(229,165,10,.55)}
.tic-home .sem-dot.on-ok{background:var(--ok);border-color:var(--ok);box-shadow:0 0 9px color-mix(in srgb,var(--ok) 55%,transparent)}
.tic-home .sem-txt{min-width:0}
.tic-home .sem-verdict{font-weight:800;font-size:13px;display:block}
.tic-home .sem-verdict.v-ok{color:var(--ok)}
.tic-home .sem-verdict.v-warn{color:#b8860b}
.tic-home .sem-verdict.v-bad{color:var(--sale)}
.tic-home .sem-detail{font-size:12px;color:var(--ink-soft);display:block}
.tic-home .sem-tipo{margin-left:auto;flex:none;border:1.5px solid var(--line);border-radius:8px;padding:5px 8px;font-size:11.5px;font-weight:700;color:var(--ink-soft);background:#fff}
.tic-home .vs-row .vehiculo-combo .vehiculo-combo-toggle{height:100%;border:1.5px solid var(--line);border-radius:10px;background:#fff;padding:9px 10px;font-size:13.5px;font-weight:600;color:var(--ink)}
.tic-home .vs-row .vehiculo-combo .vehiculo-combo-toggle:hover{border-color:var(--accent)}
.tic-home .vs-row .vehiculo-combo .vehiculo-combo-toggle:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent)}
.tic-home .vs-row .vehiculo-combo--activo .vehiculo-combo-toggle{background:#fff;border-color:var(--accent);color:var(--ink)}
.tic-home .vs-row .vehiculo-combo--deshabilitado .vehiculo-combo-toggle{background:#f6f7f9}
@media (max-width:860px){
  .tic-home .vs-card{flex-direction:column;align-items:stretch;gap:16px}
  /* en columna el flex-basis pasa a gobernar la ALTURA → resetear (hueco de 520px si no) */
  .tic-home .vs-block--vehiculo,.tic-home .vs-block--plate{flex:0 0 auto;min-width:0}
  .tic-home .vs-row select{flex-basis:calc(50% - 4px)}
  .tic-home .vs-neu-field{flex-basis:calc(50% - 4px)}
  /* pestañas: fila deslizable (scrollbar oculta) en vez de envolver a varias líneas */
  .tic-home .vs-tabs{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;min-width:0;max-width:100%;-ms-overflow-style:none;scrollbar-width:none}
  .tic-home .vs-tabs::-webkit-scrollbar{display:none}
  .tic-home .vs-tab{flex:none}
  /* paneles de características (neum Mototic / cub+cam Biketic-Cubiertas): el botón de
     búsqueda ocupa toda la fila (selects ya a 2 columnas por la regla .vs-row select de
     arriba, compartida con el resto de paneles) */
  .tic-home .vs-panel[data-vs-panel="neum"] .vs-row .btn,
  .tic-home .vs-panel[data-vs-panel="cub"] .vs-row .btn,
  .tic-home .vs-panel[data-vs-panel="cam"] .vs-row .btn{flex:1 1 100%}
  /* medidas 2026-07-30 v2: campo llanta a 2 columnas como los selects; el veredicto
     del semáforo envuelve y el selector de tipo baja a su propia línea */
  .tic-home .vs-neu-field input[type=text]{flex-basis:auto}
  .tic-home .vs-sem-inline{flex-wrap:wrap}
  .tic-home .sem-tipo{margin-left:0}
}
@media (max-width:1120px){.tic-home .tdc-cat-banners__grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:1000px){.tic-home .news .tic-wrap{grid-template-columns:minmax(0,1fr)}}
@media (max-width:860px){
  .tic-home .st-line--front{top:24%}
  .tic-home .st-line--back{top:44%}
  .tic-home .trust-grid{grid-template-columns:1fr;gap:9px}
}
@media (max-width:720px){
  .tic-home .tdc-cat-banners__grid{grid-template-columns:repeat(2,1fr)}
  .tic-home .show-copy{padding:18px}
}
@media (max-width:400px){.tic-home .st-line{font-size:clamp(24px,8.2vw,34px)};.tic-home .tdc-brand-strip__logo{height:27px}}
@media (max-width:380px){
  .tic-home .stage-eyebrow{white-space:normal;text-align:center;width:94vw;font-size:10.5px;letter-spacing:.1em;line-height:1.55}
}

/* ================= 10. REDUCED MOTION (REAL en producción) ================= */
@media (prefers-reduced-motion: reduce) and (min-width: 99999px){
  .tic-home .stage-bg img{transform:none}
  html.js .tic-home .tdc-cat-banner.cat-tile{clip-path:polygon(0 0,100% 0,100% 100%,0 100%) !important}
  html.js .tic-home .tdc-cat-banner.cat-tile .tdc-cat-banner__bg{transform:none !important}
  .tic-home .tdc-brand-strip__track.mq--ready{animation:none !important}
  .tic-home .tic-car-dot.is-on i{animation:none !important;transform:scaleX(1)}
  .tic-home .stage-road::before{background-position-x:0 !important}
  body.boot .tic-home .stage-bg,
  body.boot .tic-home .st-line .w i,
  body.boot .tic-home .stage-eyebrow,
  body.boot .tic-home .garage-card,
  body.boot .tic-home .stage-cta,
  body.boot .tic-home .stage-hint{animation:none !important;opacity:1 !important;transform:none !important;filter:none !important}
}

/* ---------- Tudetic 2026-07-13 r2 (orquestador): boton "Filtros" movil en la HOME ----------
   El sidebar de buscadorkits esta oculto en page-index (la portada RUTA no lleva columna),
   pero el modulo sigue pintando su trigger #menu_filtros_movil en movil -> boton muerto.
   Se oculta SOLO en la home; en categoria/busqueda sigue funcionando. */
body#index #menu_filtros_movil,
body.page-index #menu_filtros_movil{display:none !important}
