/* TROPHUB81 V36 · Movimiento editorial ligero. SOLO vista publica.
   No cambia archivos, fotografia original, backend, ni formularios.
   Mantiene el despliegue dinamico basado en las fotos WebP existentes. */
body.th36-premium-home .mi-inventory {padding-bottom:clamp(40px,5vw,75px);}
body.th36-premium-home .mi-inventory-toolbar {margin-bottom:clamp(18px,2.1vw,30px);}
body.th36-premium-home .mi-v15-rail-wrap {position:relative;}
body.th36-premium-home .mi-v16-rail[data-th36-drag] {
  overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory!important;
  scroll-padding-inline:clamp(12px,2.2vw,30px);
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  cursor:grab;
  gap:clamp(12px,1.55vw,23px)!important;
  padding-block:9px 15px!important;
}
body.th36-premium-home .mi-v16-rail[data-th36-drag]::-webkit-scrollbar{display:none;}
body.th36-premium-home .mi-v16-rail[data-th36-drag].th36-is-dragging{
  scroll-snap-type:none!important;scroll-behavior:auto!important;cursor:grabbing;
  user-select:none;-webkit-user-select:none;
}
body.th36-premium-home .mi-v16-rail[data-th36-drag] > .th31-home-card {
  scroll-snap-align:start!important;
  scroll-snap-stop:normal;
  position:relative;
  transition:transform .42s cubic-bezier(.22,1,.36,1),opacity .32s ease!important;
  will-change:auto;
}
body.th36-premium-home .mi-v16-rail[data-th36-drag] > .th31-home-card[hidden] {display:none!important;}
body.th36-premium-home .th31-home-card .mi18-card-photo {
  background:#151517!important;
  border:1px solid rgba(212,199,177,.25)!important;
  border-radius:8px!important;
  box-shadow:0 7px 35px rgba(0,0,0,.22)!important;
  transition:border-color .35s ease,box-shadow .35s ease!important;
}
/* Movement acts only on existing WebP pixels. No new crops or backgrounds. */
body.th36-premium-home .th31-home-card .mi18-card-photo img.th32-card-primary {
  object-fit:contain!important;object-position:center!important;
  transform:scale(1)!important;
  transition:transform .75s cubic-bezier(.2,.7,.2,1),filter .55s ease!important;
}
body.th36-premium-home .th31-home-card .mi18-card-photo img.th32-card-ambient {
  object-fit:cover!important;filter:blur(22px) brightness(.48) saturate(.8)!important;
}
body.th36-premium-home .th31-home-card:is(:hover,:focus-within,.th36-nearest) .mi18-card-photo{
  border-color:rgba(213,192,154,.62)!important;
  box-shadow:0 10px 32px rgba(0,0,0,.35)!important;
}
@media(hover:hover) and (pointer:fine){
 body.th36-premium-home .th31-home-card:hover .mi18-card-photo img.th32-card-primary,
 body.th36-premium-home .th31-home-card:focus-within .mi18-card-photo img.th32-card-primary{
   transform:scale(1.026)!important;
   filter:brightness(1.045) contrast(1.01)!important;
 }
 body.th36-premium-home .mi-v16-rail[data-th36-drag]:not(.th36-is-dragging) > .th31-home-card:hover{
   transform:translateY(-3px)!important;
 }
}
body.th36-premium-home .mi-v16-rail.th36-is-dragging a{cursor:grabbing;}
body.th36-premium-home .mi-v15-rail-tools[data-v15-rail-controls]{
 display:flex!important;align-items:center;gap:10px;
 margin-top:clamp(9px,1.5vw,20px);
}
body.th36-premium-home .mi-v15-rail-tools[data-v15-rail-controls][hidden]{display:none!important;}
body.th36-premium-home .mi-v15-rail-tools .th36-rail-counter {
 margin-inline-end:auto;display:flex;align-items:center;gap:8px;
 font-size:12px;letter-spacing:.1em;white-space:nowrap;color:#e2d8c7;
 font-variant-numeric:tabular-nums;
}
body.th36-premium-home .mi-v15-rail-tools .th36-rail-help{font-size:12px;letter-spacing:0;color:#a5a099;}
body.th36-premium-home .mi-v15-rail-tools button {
 width:45px;height:45px;min-width:45px;border-radius:50%;
 transition:background-color .25s ease,border-color .25s ease,color .25s ease!important;
}
body.th36-premium-home .mi-v15-rail-tools button:hover:not(:disabled){background:#d4bf99!important;color:#121212!important;}
body.th36-premium-home .mi-v15-rail-tools button:disabled{opacity:.42;cursor:default;}
/* Always present exactly three categories. An empty one is text, not an invented car photo. */
body.th36-premium-home .th31-category-grid .th31-category.th36-category-empty{
 background:radial-gradient(circle at 78% 31%,rgba(174,153,120,.23),transparent 37%),
 linear-gradient(125deg,#1d1c1d,#0d0d0f 75%)!important;
}
body.th36-premium-home .th31-category-grid .th36-category-empty:before{
 content:"";position:absolute;top:26%;right:14%;width:34%;aspect-ratio:2.1;
 border:1px solid rgba(205,191,166,.24);border-radius:80% 20% 20% 80%;transform:skewX(-11deg);
 pointer-events:none;
}
body.th36-premium-home .th31-category-grid .th31-category .th36-category-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;}
body.th36-premium-home .th31-category-grid .th36-category-empty small {
 display:block;font-size:11px;font-weight:400;letter-spacing:.035em;
 color:#dad0c0;margin-top:7px;
}
/* Maintain intentional crop-free presentation for narrow portrait images. */
@media(max-width:740px){
 body.th36-premium-home .mi-v16-rail[data-th36-drag]{scroll-padding-inline:12px;gap:12px!important;}
 body.th36-premium-home .mi-v16-rail[data-th36-drag] > .th31-home-card{flex-basis:min(86vw,410px)!important;}
 body.th36-premium-home .th31-home-card .mi18-card-photo{aspect-ratio:1.38!important;}
 body.th36-premium-home .mi-v15-rail-tools .th36-rail-help{font-size:11px;}
 body.th36-premium-home .mi-v15-rail-tools button{width:43px;height:43px;min-width:43px;}
}
@media(prefers-reduced-motion:reduce){
 body.th36-premium-home .mi-v16-rail[data-th36-drag]{scroll-behavior:auto!important;}
 body.th36-premium-home .th31-home-card,
 body.th36-premium-home .th31-home-card .mi18-card-photo,
 body.th36-premium-home .th31-home-card .mi18-card-photo img.th32-card-primary{
   transition:none!important;transform:none!important;animation:none!important;
 }
}
