/* Alpha SI preview v2 — only loaded when /preview-v2/ is active. */
:root{--apv2-orange:#FF9500;--apv2-yellow:#FFD000;--apv2-ink:#0f172a;--apv2-muted:#64748b;--apv2-line:#e2e8f0;--apv2-ok:#15803d}

/* —— 1. Fondo blanco liso (no apaga el mu-plugin de fondo en producción) —— */
body.alpha-preview-v2,
body.alpha-preview-v2.alpha-fondo-c{
  background-color:#fff!important;
  background-image:none!important;
  background-attachment:scroll!important;
}

/* —— Barra de vista previa —— */
.apv2-bar{position:sticky;top:0;z-index:100000;background:#0f172a;color:#fff;font:600 13px/1.3 system-ui,sans-serif;padding:8px 16px;display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.apv2-bar a{color:#FFD000;font-weight:800;text-decoration:none}
.apv2-bar a:hover{text-decoration:underline}
.apv2-bar__note{opacity:.85}

/* —— 3. Cinta de marcas + CTA naranja en el header —— */
.apv2-ticker{background:#fff;border-bottom:1px solid var(--apv2-line);overflow:hidden;padding:8px 0}
.apv2-ticker__track{display:flex;gap:36px;align-items:center;width:max-content;animation:apv2-marquee 40s linear infinite}
.apv2-ticker:hover .apv2-ticker__track{animation-play-state:paused}
.apv2-ticker img{height:28px;width:auto;max-width:110px;object-fit:contain;filter:grayscale(1);opacity:.8}
.apv2-ticker img:hover{filter:none;opacity:1}
@keyframes apv2-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

body.alpha-preview-v2 .nav-pills a[href*="arma-tu-pc"],
body.alpha-preview-v2 .mobile-nav a[href*="arma-tu-pc"]{
  background:var(--apv2-orange)!important;
  color:#111!important;
  font-weight:800!important;
  border-radius:999px!important;
  padding:8px 16px!important;
  box-shadow:0 2px 0 rgba(0,0,0,.08);
}
body.alpha-preview-v2 .nav-pills a[href*="arma-tu-pc"]:hover{background:var(--apv2-yellow)!important;color:#111!important}

/* —— 4. Cards de PC —— */
body.alpha-preview-v2 .product-card__title,
body.alpha-preview-v2 .product-card--wc .product-card__title,
body.alpha-preview-v2 .product-card__title a,
body.alpha-preview-v2 ul.products li.product h2,
body.alpha-preview-v2 ul.products li.product .woocommerce-loop-product__title,
body.alpha-preview-v2 .ahp-dest ul.products li.product h2,
body.alpha-preview-v2 .ahp-dest .woocommerce-loop-product__title,
body.alpha-preview-v2 .ahp-page ul.products li.product h2,
body.alpha-preview-v2 .ahp-page ul.products li.product .woocommerce-loop-product__title{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  line-clamp:2!important;
  overflow:hidden!important;
  text-overflow:ellipsis;
  white-space:normal!important;
  font-size:15px!important;
  line-height:1.3!important;
  box-sizing:content-box!important;
  max-height:calc(1.3em * 2)!important;
  min-height:calc(1.3em * 2)!important;
  padding-bottom:0!important;
  margin-bottom:0;
}
body.alpha-preview-v2 .apv2-specs{
  margin-top:8px;
  position:relative;
  z-index:1;
  flex-shrink:0;
}
body.alpha-preview-v2 .product-card .product-card__badge,
body.alpha-preview-v2 .product-card .ahp-av,
body.alpha-preview-v2 ul.products li.product .ahp-av,
body.alpha-preview-v2 ul.products li.product .onsale,
body.alpha-preview-v2 .product-card__media .product-card__badge{
  position:static!important;transform:none!important;display:inline-flex;margin:8px 8px 0;align-self:flex-start
}
body.alpha-preview-v2 .product-card__media,
body.alpha-preview-v2 ul.products li.product .ahp-page a img,
body.alpha-preview-v2 ul.products li.product a img{position:relative}
/* pastilla de stock fuera de la foto: la movemos al body con JS; fallback CSS si queda en media */
.apv2-stock-pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;letter-spacing:.02em;border-radius:999px;padding:3px 9px;background:#ecfdf3;color:var(--apv2-ok);border:1px solid #bbf7d0;margin:8px 0 0}
.apv2-stock-pill.is-low{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.apv2-stock-pill.is-out{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.apv2-specs{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.apv2-specs li{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#334155;line-height:1.3}
.apv2-specs svg{flex:0 0 16px;width:16px;height:16px;color:#94a3b8}
.apv2-pay-label{display:block;font-size:11px;font-weight:700;color:var(--apv2-muted);letter-spacing:.01em;margin:8px 0 2px}

/* —— 5. Banner categoría + mosaico home —— */
.apv2-cat-banner{position:relative;border-radius:16px;overflow:hidden;min-height:200px;margin:16px 0 24px;background:#0f172a;color:#fff}
.apv2-cat-banner img{width:100%;height:240px;object-fit:cover;display:block;filter:brightness(.72)}
.apv2-cat-banner__txt{position:absolute;left:24px;right:24px;bottom:20px}
.apv2-cat-banner h1,.apv2-cat-banner h2{margin:0 0 6px;font-size:28px;color:#fff}
.apv2-cat-banner p{margin:0;font-size:15px;color:#f8fafc;max-width:40em}

.apv2-mosaic{margin:28px auto;padding:0 16px;max-width:1200px}
.apv2-mosaic h2{margin:0 0 14px;font-size:22px;color:var(--apv2-ink)}
.apv2-mosaic__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:900px){.apv2-mosaic__grid{grid-template-columns:repeat(2,1fr)}}
.apv2-mosaic a{display:block;background:#fff;border:1px solid var(--apv2-line);border-radius:14px;overflow:hidden;text-decoration:none;color:var(--apv2-ink);transition:transform .2s,box-shadow .2s}
.apv2-mosaic a:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(15,23,42,.08);border-color:var(--apv2-yellow)}
.apv2-mosaic img{width:100%;height:140px;object-fit:cover;background:#f8fafc;display:block}
.apv2-mosaic span{display:block;padding:10px 12px 12px;font-weight:800;font-size:14px}

/* —— 6. Ficha compacta —— */
body.alpha-preview-v2.single-product .product-detail__title,
body.alpha-preview-v2.single-product h1.product_title,
body.alpha-preview-v2.single-product .product_title{
  font-size:22px!important;line-height:1.25;margin:0 0 8px
}
body.alpha-preview-v2 .apv2-price-main{font-size:1.85rem;font-weight:900;color:var(--apv2-ink);letter-spacing:-.02em;line-height:1.1}
body.alpha-preview-v2 .apv2-price-lbl{display:block;font-size:12px;font-weight:700;color:var(--apv2-muted);margin-bottom:2px}
body.alpha-preview-v2 .apv2-price-list{margin:4px 0 10px;font-size:14px;color:var(--apv2-muted)}
body.alpha-preview-v2 .apv2-price-list s{color:#94a3b8}
body.alpha-preview-v2 .apv2-cuotas-line{font-size:14px;margin:0 0 14px;color:#334155}
body.alpha-preview-v2 .apv2-cuotas-line a{color:var(--apv2-ink);font-weight:800;text-decoration:underline;text-decoration-color:var(--apv2-yellow);text-underline-offset:3px}
body.alpha-preview-v2 .apv2-cuotas-detail{display:none;margin:0 0 14px}
body.alpha-preview-v2 .apv2-cuotas-detail.is-open{display:block}
body.alpha-preview-v2 .apv2-comps{margin:12px 0 16px;padding:12px 14px;border:1px solid var(--apv2-line);border-radius:12px;background:#fafafa}
body.alpha-preview-v2 .apv2-comps h3{margin:0 0 8px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--apv2-muted)}

/* —— 7. Confianza + logos de pago —— */
.apv2-trust{background:#f8fafc;border-top:1px solid var(--apv2-line);border-bottom:1px solid var(--apv2-line);padding:18px 16px}
.apv2-trust__inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:700px){.apv2-trust__inner{grid-template-columns:1fr}}
.apv2-trust__item{display:flex;gap:10px;align-items:flex-start}
.apv2-trust strong{display:block;font-size:14px;color:var(--apv2-ink)}
.apv2-trust p{margin:2px 0 0;font-size:13px;color:var(--apv2-muted)}
.apv2-paylogos{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;padding:12px 16px 4px}
.apv2-paylogos span{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:6px 10px;border:1px solid var(--apv2-line);border-radius:8px;background:#fff;font-size:11px;font-weight:800;color:#334155;letter-spacing:.02em}

/* —— 8. Armá tu PC: arte de juegos + botones naranja —— */
body.alpha-preview-v2 .amj-tile b{opacity:0!important}
body.alpha-preview-v2 .amj-tile{
  background-color:#111!important;
  background-size:cover!important;
  background-position:center!important;
  border-color:transparent;
}
body.alpha-preview-v2 .amj-tile i{text-shadow:0 1px 8px rgba(0,0,0,.8);z-index:1}
body.alpha-preview-v2 .amj-tile.on{border-color:var(--apv2-orange)!important;box-shadow:0 0 0 3px #ffd3b0}
body.alpha-preview-v2 .amj-budget button.on{border-color:var(--apv2-orange)!important;background:#fff4e5!important}
body.alpha-preview-v2 .amj-wa{background:var(--apv2-orange)!important;color:#111!important}
body.alpha-preview-v2 .amj .amj-res a.btn,
body.alpha-preview-v2 .amj a:not(.amj-wa)[class*="btn"]{/* leave text links */}
body.alpha-preview-v2 .acu-pc-builder button,
body.alpha-preview-v2 .acu-pc-builder .button,
body.alpha-preview-v2 [class*="acu"] .button,
body.alpha-preview-v2 .acu-builder button{
  background:var(--apv2-orange)!important;
  border-color:var(--apv2-orange)!important;
  color:#111!important;
  font-weight:800!important;
}

/* FAQ extra + pendientes */
.apv2-faq-extra,.apv2-pca-extra,.apv2-mdp{max-width:860px;margin:24px auto;padding:0 16px 40px}
.apv2-faq-extra h2,.apv2-pca-extra h2,.apv2-mdp h1{margin:24px 0 12px}
.apv2-faq-item{border:1px solid var(--apv2-line);border-radius:12px;padding:14px 16px;margin:0 0 10px;background:#fff}
.apv2-faq-item h3{margin:0 0 6px;font-size:16px}
.apv2-faq-item p{margin:0;color:#334155}
.apv2-pending{background:#fffbeb;border:1px dashed #f59e0b;border-radius:12px;padding:14px 16px;margin:16px 0}
.apv2-pending h3{margin:0 0 8px;font-size:15px;color:#92400e}
.apv2-pending li{margin:0 0 6px;color:#78350f}

/* Hub */
.apv2-hub{max-width:900px;margin:0 auto;padding:28px 18px 60px;font:16px/1.5 system-ui,sans-serif;color:var(--apv2-ink)}
.apv2-hub h1{margin:0 0 8px}
.apv2-hub .apv2-hub__lead{color:var(--apv2-muted);margin:0 0 20px}
.apv2-hub a{color:#9a3412;font-weight:700}
.apv2-hub ul{padding-left:1.2em}
.apv2-hub code{background:#f1f5f9;padding:1px 6px;border-radius:4px;font-size:13px}
.apv2-hub section{margin:22px 0;padding:16px;border:1px solid var(--apv2-line);border-radius:14px;background:#fff}

/* v1.0.1: fondo blanco con mayor especificidad (el mu-plugin de fondo usa !important) */
html body.alpha-preview-v2,
html body.alpha-preview-v2.alpha-fondo-c,
html body.alpha-preview-v2 #page,
html body.alpha-preview-v2 .site,
html body.alpha-preview-v2 .site-content,
html body.alpha-preview-v2 .product-detail,
html body.alpha-preview-v2 .product-detail__title-row,
html body.alpha-preview-v2 .woocommerce,
html body.alpha-preview-v2 .site-main{
  background-color:#fff!important;
  background-image:none!important;
}

/* pastilla de disponibilidad fuera de la foto */
body.alpha-preview-v2 .product-card__image-link,
body.alpha-preview-v2 a.product-card__image-link{
  display:flex!important;flex-direction:column;align-items:stretch;
}
body.alpha-preview-v2 .product-card__state-badge,
body.alpha-preview-v2 .ahp-av,
body.alpha-preview-v2 .product-card .ahp-av{
  position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  transform:none!important;align-self:flex-start;margin:8px 8px 0;display:inline-flex;
}

/* ficha: título más chico; cuotas colapsadas cuando JS marcó compacto */
body.alpha-preview-v2 .product-detail__title{font-size:1.35rem!important;line-height:1.25!important;margin:0 0 8px!important}
body.alpha-preview-v2 .product-detail.is-apv2-compact .product-detail__cuotas{display:none}
body.alpha-preview-v2 .product-detail.is-apv2-compact .apv2-cuotas-detail.is-open .product-detail__cuotas{display:block}
body.alpha-preview-v2 .product-detail__info .product-detail__title-row{margin:0 0 10px!important}

/* arte de juego: no pisar el fondo en el tile seleccionado */
body.alpha-preview-v2 .amj-tile,
body.alpha-preview-v2 .amj-tile.on{
  background-color:#111!important;
  background-image:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.45)),var(--apv2-art,none)!important;
  background-size:cover!important;
  background-position:center!important;
}
@media(max-width:700px){
  body.alpha-preview-v2 .product-detail{display:flex!important;flex-direction:column}
  body.alpha-preview-v2 .product-detail__info{order:1}
  body.alpha-preview-v2 .product-detail__gallery{order:2}
}



/* —— /pc-armadas/ banner (solo preview; no toca el hero de la home) —— */
body.alpha-preview-v2.page-id-8093 .site-main>section.page-hero.page-hero--gradient,
body.alpha-preview-v2.page-template-page-pc-armadas .site-main>section.page-hero.page-hero--gradient{
  position:relative;
  overflow:hidden;
  color:#fff;
  /* pisa body.alpha-fondo-c .site-main>section{background:transparent!important} */
  background-color:#07131c!important;
  background-image:
    linear-gradient(105deg, rgba(5,16,24,.92) 0%, rgba(6,28,36,.82) 38%, rgba(8,40,44,.42) 62%, rgba(255,149,0,.16) 100%),
    var(--apv2-pca-hero)!important;
  background-size:cover!important;
  background-position:78% center!important;
  background-repeat:no-repeat!important;
  background-attachment:scroll!important;
  padding:28px 0 32px;
}
body.alpha-preview-v2.page-id-8093 .page-hero h1,
body.alpha-preview-v2.page-template-page-pc-armadas .page-hero h1{
  margin:0;
  color:#fff;
  font-size:clamp(1.85rem, 3.2vw, 2.6rem);
  line-height:1.15;
  letter-spacing:-.02em;
  text-shadow:0 2px 16px rgba(0,0,0,.55);
  max-width:16ch;
}
body.alpha-preview-v2.page-id-8093 .page-hero .page-hero__subtitle,
body.alpha-preview-v2.page-template-page-pc-armadas .page-hero .page-hero__subtitle{
  color:#f8fafc;
  opacity:1;
  text-shadow:0 1px 10px rgba(0,0,0,.55);
  max-width:36em;
  margin-top:10px;
}
body.alpha-preview-v2.page-id-8093 .page-hero .breadcrumbs,
body.alpha-preview-v2.page-id-8093 .page-hero .breadcrumbs a,
body.alpha-preview-v2.page-id-8093 .page-hero .breadcrumbs__current,
body.alpha-preview-v2.page-template-page-pc-armadas .page-hero .breadcrumbs,
body.alpha-preview-v2.page-template-page-pc-armadas .page-hero .breadcrumbs a,
body.alpha-preview-v2.page-template-page-pc-armadas .page-hero .breadcrumbs__current{
  color:rgba(255,255,255,.88);
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}
body.alpha-preview-v2.page-id-8093 .page-hero .page-hero__actions,
body.alpha-preview-v2.page-template-page-pc-armadas .page-hero .page-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
body.alpha-preview-v2.page-id-8093 .page-hero .btn,
body.alpha-preview-v2.page-template-page-pc-armadas .page-hero .btn{
  box-shadow:0 2px 10px rgba(0,0,0,.35);
}

@media (max-width:768px){
  body.alpha-preview-v2.page-id-8093 .site-main>section.page-hero.page-hero--gradient,
  body.alpha-preview-v2.page-template-page-pc-armadas .site-main>section.page-hero.page-hero--gradient{
    padding:8px 0 12px;
    background-image:
      linear-gradient(180deg, rgba(5,16,24,.88) 0%, rgba(5,16,24,.78) 55%, rgba(5,16,24,.72) 100%),
      var(--apv2-pca-hero)!important;
    background-position:80% 42%!important;
  }
  body.alpha-preview-v2.page-id-8093 .page-hero .breadcrumbs,
  body.alpha-preview-v2.page-template-page-pc-armadas .page-hero .breadcrumbs{
    padding:2px 0 6px;
  }
  body.alpha-preview-v2.page-id-8093 .page-hero h1,
  body.alpha-preview-v2.page-template-page-pc-armadas .page-hero h1{
    font-size:1.55rem;
    max-width:none;
  }
  body.alpha-preview-v2.page-id-8093 .page-hero .page-hero__subtitle,
  body.alpha-preview-v2.page-template-page-pc-armadas .page-hero .page-hero__subtitle{
    font-size:.9rem;
    line-height:1.35;
    margin-top:6px;
  }
  body.alpha-preview-v2.page-id-8093 .page-hero .page-hero__actions,
  body.alpha-preview-v2.page-template-page-pc-armadas .page-hero .page-hero__actions{
    margin-top:10px;
    gap:8px;
  }
  body.alpha-preview-v2.page-id-8093 .page-hero .btn--lg,
  body.alpha-preview-v2.page-template-page-pc-armadas .page-hero .btn--lg{
    padding:8px 14px;
    font-size:14px;
  }
  /* que la grilla suba: menos aire en las franjas siguientes, sin sacar contenido */
  body.alpha-preview-v2.page-id-8093 .page-hero + .section,
  body.alpha-preview-v2.page-template-page-pc-armadas .page-hero + .section{
    padding-top:10px;
    padding-bottom:10px;
  }
  body.alpha-preview-v2.page-id-8093 .page-hero + .section + .section,
  body.alpha-preview-v2.page-template-page-pc-armadas .page-hero + .section + .section{
    padding-top:18px;
    padding-bottom:18px;
  }
  body.alpha-preview-v2.page-id-8093 #modelos,
  body.alpha-preview-v2.page-template-page-pc-armadas #modelos{
    padding-top:18px;
  }
  body.alpha-preview-v2.page-id-8093 #modelos .section-header,
  body.alpha-preview-v2.page-template-page-pc-armadas #modelos .section-header{
    margin-bottom:14px;
  }
}


/* En producción (LIVE) nunca mostrar la barra de vista previa */
body.alpha-preview-v2-live .apv2-bar{display:none!important}


/* Home: no duplicar categorías ni marcas.
   Se queda la cinta de logos bajo el header (#apv2-ticker) y el mosaico del tema
   («Informática de confianza en Zona Oeste»). Se ocultan el mosaico propio
   (por si quedara cacheado) y las secciones de marcas de abajo. */
body.alpha-preview-v2.home #apv2-mosaic,
body.alpha-preview-v2.page-id-14 #apv2-mosaic{
  display:none!important;margin:0!important;padding:0!important;height:0!important;overflow:hidden!important
}
body.alpha-preview-v2.home #brands,
body.alpha-preview-v2.home .brands-section,
body.alpha-preview-v2.home section.ahb,
body.alpha-preview-v2.page-id-14 #brands,
body.alpha-preview-v2.page-id-14 .brands-section,
body.alpha-preview-v2.page-id-14 section.ahb{
  display:none!important;margin:0!important;padding:0!important;height:0!important;overflow:hidden!important
}

/* Mosaico de abajo: fotos completas (object-fit contain; el fondo negro se funde con las imágenes) */
body.alpha-preview-v2.home .home-categories__featured,
body.alpha-preview-v2.home .home-categories__item,
body.alpha-preview-v2.page-id-14 .home-categories__featured,
body.alpha-preview-v2.page-id-14 .home-categories__item{
  background:#05080f
}
body.alpha-preview-v2.home .home-categories__featured img,
body.alpha-preview-v2.home .home-categories__item img,
body.alpha-preview-v2.page-id-14 .home-categories__featured img,
body.alpha-preview-v2.page-id-14 .home-categories__item img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
}
