
/* =========================================================
   NUVORELIX V10.62 · HOME UX FIX
   Corrige: intro, filtros asomados, cards largas, CTA largos,
   contraste de versión personalizada y proporción general.
   ========================================================= */

/* ---------- 1. HERO COMPACTO ---------- */
body.cm-home-reboot .nx60-hero{
  width:min(100%,1380px)!important;
  min-height:0!important;
  height:auto!important;
  margin:18px auto 34px!important;
  grid-template-columns:minmax(0,1.04fr) minmax(360px,.76fr)!important;
  border-radius:24px!important;
}
body.cm-home-reboot .nx60-hero-copy{
  padding:clamp(34px,4.3vw,62px)!important;
}
body.cm-home-reboot .nx60-hero h1{
  max-width:780px!important;
  margin:12px 0 16px!important;
  font-size:clamp(2.9rem,5.2vw,5.4rem)!important;
  line-height:.92!important;
  letter-spacing:-.065em!important;
}
body.cm-home-reboot .nx60-hero-copy>p{
  max-width:600px!important;
  font-size:clamp(.96rem,1.15vw,1.08rem)!important;
  line-height:1.55!important;
}
body.cm-home-reboot .nx60-hero-actions{margin-top:24px!important}
body.cm-home-reboot .nx60-trustline{margin-top:20px!important}
body.cm-home-reboot .nx60-hero-visual{
  min-height:470px!important;
  max-width:none!important;
  padding:24px!important;
}
body.cm-home-reboot .nx60-visual-brand img{
  width:132px!important;
  max-width:34vw!important;
}
body.cm-home-reboot .nx60-visual-brand strong{
  font-size:clamp(1.08rem,1.6vw,1.42rem)!important;
}

/* ---------- 2. DOS OPCIONES, MÁS COMPACTAS ---------- */
body.cm-home-reboot .nx60-buy-model,
body.cm-home-reboot .nx60-category-section,
body.cm-home-reboot .nx60-how{
  width:min(100%,1380px)!important;
  margin:48px auto!important;
}
body.cm-home-reboot .nx60-buy-grid{gap:16px!important}
body.cm-home-reboot .nx60-buy-card{
  min-height:310px!important;
  padding:24px!important;
  gap:18px!important;
  border-radius:20px!important;
}
body.cm-home-reboot .nx60-buy-card h3{
  font-size:clamp(1.55rem,2.2vw,2.25rem)!important;
  line-height:1.03!important;
  margin:7px 0 8px!important;
}
body.cm-home-reboot .nx60-buy-card.standard{
  background:linear-gradient(180deg,#fffefa,#fbf7ee)!important;
}
body.cm-home-reboot .nx60-buy-card.custom{
  background:
    radial-gradient(circle at 86% 86%,rgba(213,174,67,.13),transparent 30%),
    linear-gradient(145deg,#17140f 0%,#0b0a08 72%)!important;
  border-color:rgba(213,174,67,.28)!important;
  box-shadow:0 20px 55px rgba(0,0,0,.16)!important;
}
body.cm-home-reboot .nx60-buy-card.custom h3,
body.cm-home-reboot .nx60-buy-card.custom .nx60-card-kicker,
body.cm-home-reboot .nx60-buy-card.custom>a,
body.cm-home-reboot .nx60-buy-card.custom strong{
  color:#fff8e8!important;
}
body.cm-home-reboot .nx60-buy-card.custom p,
body.cm-home-reboot .nx60-buy-card.custom ul{
  color:#c9c0ad!important;
}
body.cm-home-reboot .nx60-buy-card.custom li::before{color:#e5bb48!important}
body.cm-home-reboot .nx60-buy-card>a{padding-top:14px!important}

/* ---------- 3. FILTRO COMPLETAMENTE OCULTO ---------- */
body.cm-home-reboot .cm-catalog-layout{
  display:block!important;
  grid-template-columns:none!important;
}
body.cm-home-reboot .cm-filter-panel,
body.cm-home-reboot .nx-filter-card{
  position:fixed!important;
  z-index:9000!important;
  top:0!important;
  bottom:0!important;
  left:0!important;
  right:auto!important;
  width:min(380px,92vw)!important;
  max-width:92vw!important;
  height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  padding:22px!important;
  border-radius:0 20px 20px 0!important;
  background:var(--nx60-surface)!important;
  overflow:auto!important;
  transform:translate3d(calc(-100% - 50px),0,0)!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s ease,visibility 0s linear .28s!important;
  box-shadow:22px 0 65px rgba(0,0,0,.25)!important;
}
body.cm-home-reboot.cm-filter-open .cm-filter-panel,
body.cm-home-reboot.cm-filter-open .nx-filter-card{
  transform:translate3d(0,0,0)!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transition-delay:0s!important;
}
body.cm-home-reboot .cm-filter-backdrop{
  display:block!important;
  position:fixed!important;
  z-index:8990!important;
  inset:0!important;
  margin:0!important;
  background:rgba(8,7,5,.5)!important;
  backdrop-filter:blur(3px)!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .2s ease,visibility 0s linear .2s!important;
}
body.cm-home-reboot.cm-filter-open .cm-filter-backdrop{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transition-delay:0s!important;
}
body.cm-home-reboot .nx-mobile-filter-button{display:inline-flex!important}

/* ---------- 4. PRODUCTOS: CARDS REALES, NO FRANJAS LARGAS ---------- */
body.cm-home-reboot .cm-products-wrap{width:100%!important;min-width:0!important}
body.cm-home-reboot .cm-product-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  width:100%!important;
  max-width:1380px!important;
  margin:0 auto!important;
  align-items:stretch!important;
}
body.cm-home-reboot article.cm-product-card.nx-product-card{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:19px!important;
  border:1px solid var(--nx60-line)!important;
  background:var(--nx60-surface)!important;
  box-shadow:none!important;
}
body.cm-home-reboot article.cm-product-card.nx-product-card:hover{
  transform:translateY(-4px)!important;
  border-color:rgba(213,174,67,.42)!important;
  box-shadow:0 18px 45px rgba(0,0,0,.08)!important;
}
body.cm-home-reboot .nx-product-media-wrap{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:10px 10px 0!important;
}
body.cm-home-reboot .cm-product-media.nx-product-media{
  display:block!important;
  width:100%!important;
  height:190px!important;
  min-height:190px!important;
  max-height:190px!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
body.cm-home-reboot .cm-product-media.nx-product-media>img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
body.cm-home-reboot .cm-product-placeholder.nx-product-placeholder{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:15px!important;
}
body.cm-home-reboot .cm-product-placeholder.nx-product-placeholder img{
  width:86px!important;
  max-height:96px!important;
  object-fit:contain!important;
}
body.cm-home-reboot .cm-product-body.nx-product-body.nx60-product-body{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
  padding:16px!important;
}
body.cm-home-reboot .nx60-product-body h3{
  min-height:0!important;
  margin:2px 0 7px!important;
  font-size:1.15rem!important;
  line-height:1.13!important;
}
body.cm-home-reboot .nx60-product-body .nx-product-description{
  min-height:42px!important;
  margin:0!important;
  -webkit-line-clamp:2!important;
}
body.cm-home-reboot .nx60-card-bottom{
  margin-top:auto!important;
  padding-top:14px!important;
}
body.cm-home-reboot .nx60-card-price strong{font-size:1.06rem!important}

/* CTA de producto: cortos, no barras completas */
body.cm-home-reboot .nx60-card-actions{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  margin-top:13px!important;
}
body.cm-home-reboot .nx60-card-actions a,
body.cm-home-reboot .nx60-card-primary,
body.cm-home-reboot .nx60-card-demo{
  display:inline-flex!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:39px!important;
  padding:0 13px!important;
  justify-content:center!important;
  border-radius:10px!important;
  font-size:.74rem!important;
  white-space:nowrap!important;
}
body.cm-home-reboot .nx60-card-primary span{display:none!important}

/* ---------- 5. INTRO VISIBLE Y SOBRE TODO ---------- */
.nx60-intro{
  display:grid!important;
  position:fixed!important;
  z-index:2147483000!important;
  inset:0!important;
  opacity:1;
  visibility:visible;
}
.nx60-intro.nx62-exit{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .42s ease,visibility 0s linear .42s!important;
}
.nx60-intro .nx60-intro-core{
  opacity:0!important;
  transform:translateY(18px) scale(.96)!important;
}
.nx60-intro.nx62-play .nx60-intro-core{
  opacity:1!important;
  transform:none!important;
  transition:opacity .55s ease .1s,transform .72s cubic-bezier(.2,.8,.2,1) .1s!important;
}
.nx60-intro.nx62-play .nx60-intro-lines i{
  transform:scaleY(1)!important;
}
.nx60-intro.nx62-play .nx60-intro-meta{
  opacity:1!important;
  transform:none!important;
}

/* Si el SO pide menos movimiento, conservamos la portada, pero estática. */
@media(prefers-reduced-motion:reduce){
  .nx60-intro{display:grid!important}
  .nx60-intro .nx60-intro-core,
  .nx60-intro .nx60-intro-meta{opacity:1!important;transform:none!important;transition:none!important}
  .nx60-intro .nx60-intro-lines i{transform:scaleY(1)!important;transition:none!important}
}

@media(max-width:1180px){
  body.cm-home-reboot .cm-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.cm-home-reboot .nx60-hero{grid-template-columns:1fr .72fr!important}
}
@media(max-width:900px){
  body.cm-home-reboot .nx60-hero{grid-template-columns:1fr!important}
  body.cm-home-reboot .nx60-hero-visual{min-height:330px!important}
  body.cm-home-reboot .cm-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:650px){
  body.cm-home-reboot .cm-product-grid{grid-template-columns:1fr!important}
  body.cm-home-reboot .nx60-buy-grid{grid-template-columns:1fr!important}
  body.cm-home-reboot .nx60-card-actions{align-items:stretch!important}
  body.cm-home-reboot .nx60-card-actions a{flex:1 1 auto!important}
  body.cm-home-reboot .cm-product-media.nx-product-media{height:185px!important}
  body.cm-home-reboot .nx60-hero h1{font-size:clamp(2.65rem,13vw,4.25rem)!important}
}
