/* FASE NUEVE · Inicio · «Productos destacados F9»
   Rejilla de tarjetas oscuras con detalles naranja, justo debajo del carrusel y los 3 banners.
   Solo afecta a .f9-home-products: ninguna otra página ni sección usa estas reglas. */
.f9-home-products{--hp-accent:#ff5a1f;--hp-accent-2:#ff7b43;--hp-bg:#07080a;--hp-card:#0d0f12;--hp-line:#2b2f36;--hp-muted:#9aa3ad;--hp-cols:5;
  background:var(--hp-bg);padding:30px 0 34px;border:0;overflow:visible}
/* Mismo ancho que el bloque del carrusel y los banners (.f9p-shell), para que los bordes coincidan */
.f9-home-products>.container{width:calc(100% - 64px);max-width:1740px;margin-inline:auto}
@media(max-width:1250px){.f9-home-products>.container{width:calc(100% - 40px)}}
@media(max-width:900px){.f9-home-products>.container{width:calc(100% - 32px)}}

/* Encabezado */
.f9-hp-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:0 0 12px;border-bottom:1px solid #ffffff14}
.f9-hp-title{display:flex;align-items:center;gap:10px;margin:0;font:800 clamp(24px,2.6vw,36px)/1 'F9 Display','Arial Narrow',Arial,sans-serif;letter-spacing:.02em;text-transform:uppercase;color:#fff}
.f9-hp-title__text span{color:var(--hp-accent)}
.f9-hp-bolt{flex:0 0 auto;color:var(--hp-accent)}
.f9-hp-all{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1px solid var(--hp-accent);border-radius:4px;color:#fff;font:700 13px/1.1 Inter,Arial,sans-serif;letter-spacing:.06em;text-decoration:none;white-space:nowrap;transition:background .15s,color .15s}
.f9-hp-all:hover,.f9-hp-all:focus-visible{background:var(--hp-accent);color:#0b0e13}

/* UNA sola fila: se desliza con las flechas (o con el dedo / la rueda horizontal). No es un carrusel automático. */
.f9-hp-tools{display:flex;align-items:center;gap:12px}
.f9-hp-nav{display:flex;gap:8px}
.f9-hp-arrow{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--hp-accent);border-radius:50%;background:#0b0e13;color:#fff;cursor:pointer;transition:background .15s,color .15s,opacity .15s}
.f9-hp-arrow:hover:not([disabled]),.f9-hp-arrow:focus-visible{background:var(--hp-accent);color:#0b0e13}
.f9-hp-arrow[disabled]{opacity:.35;cursor:default;border-color:#ffffff30}
.f9-hp-nav[hidden]{display:none}
.f9-hp-grid{--hp-gap:16px;display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - (var(--hp-cols) - 1) * var(--hp-gap)) / var(--hp-cols));gap:var(--hp-gap);
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  padding:8px 2px 14px;margin:-8px -2px -14px;scroll-padding-inline:2px}
.f9-hp-grid::-webkit-scrollbar{display:none}
.f9-hp-grid>article{scroll-snap-align:start;min-width:0}
.f9-hp-grid:focus{outline:none}
@media(max-width:1279px){.f9-home-products{--hp-cols:4}}
@media(max-width:1023px){.f9-home-products{--hp-cols:3}.f9-hp-grid{--hp-gap:12px}}
@media(max-width:699px){.f9-home-products{--hp-cols:2;padding:22px 0 26px}.f9-hp-grid{--hp-gap:10px}
  .f9-hp-head{flex-wrap:wrap;gap:10px}.f9-hp-all{padding:8px 12px;font-size:12px}.f9-hp-arrow{width:36px;height:36px}}
@media(max-width:340px){.f9-home-products{--hp-cols:1}}
@media(prefers-reduced-motion:reduce){.f9-hp-grid{scroll-behavior:auto}}

/* Tarjeta */
.f9-hp-grid .product-card{position:relative;display:flex;flex-direction:column;min-width:0;height:100%;margin:0;padding:0;overflow:hidden;
  background:linear-gradient(180deg,#12151a,var(--hp-card) 55%);border:1px solid var(--hp-line);border-radius:8px;box-shadow:none;
  transition:border-color .18s,transform .18s,box-shadow .18s}
.f9-hp-grid .product-card:hover,.f9-hp-grid .product-card:focus-within{border-color:var(--hp-accent);box-shadow:0 8px 26px #ff5a1f26;transform:translateY(-2px)}
.f9-hp-grid .product-card__visual{position:relative;display:block;flex:0 0 auto;width:100%;min-height:0;aspect-ratio:1/1;margin:0;padding:0;overflow:hidden;border:0;border-radius:0;
  background:radial-gradient(circle at 50% 42%,#262a31 0,#14171b 62%,#0d0f12 100%)}
.f9-hp-grid .product-card__visual-link{position:static;display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:14px}
.f9-hp-grid .product-card__visual-link img{width:100%;height:100%;max-width:none;object-fit:contain;border-radius:6px;transition:transform .25s}
.f9-hp-grid .product-card:hover .product-card__visual-link img{transform:scale(1.04)}
.f9-hp-grid .product-card__visual::after,.f9-hp-grid .product-card__visual::before{display:none!important}
.f9-hp-grid .product-card__gallery-arrow,.f9-hp-grid .product-card__gallery-dots{display:none!important}

/* Insignia de descuento (solo la crea el JS cuando hay descuento real) */
.f9-hp-badge{position:absolute;z-index:3;top:10px;left:10px;padding:4px 8px;border-radius:4px;background:var(--hp-accent);color:#fff;font:800 13px/1 Inter,Arial,sans-serif;letter-spacing:.02em;pointer-events:none}

/* Corazón (favoritos): arriba a la derecha, sobre la imagen */
.f9-hp-grid .product-card__heart{position:absolute;z-index:4;top:8px;right:8px;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #ffffff26;border-radius:50%;background:#0a0c0fcc;color:#fff;cursor:pointer;backdrop-filter:blur(4px)}
.f9-hp-grid .product-card__heart svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}
.f9-hp-grid .product-card__heart:hover,.f9-hp-grid .product-card__heart:focus-visible{border-color:var(--hp-accent);color:var(--hp-accent)}
.f9-hp-grid .product-card__heart[aria-pressed="true"],.f9-hp-grid .product-card__heart.is-active{color:var(--hp-accent);border-color:var(--hp-accent)}
.f9-hp-grid .product-card__heart[aria-pressed="true"] svg,.f9-hp-grid .product-card__heart.is-active svg{fill:currentColor}

/* Información */
.f9-hp-grid .product-card__info{display:flex;flex:1 1 auto;flex-direction:column;gap:6px;min-width:0;padding:12px 12px 14px;background:none}
.f9-hp-grid .product-card__top{display:block;margin:0;padding:0;min-width:0}
.f9-hp-grid .product-card__top>div{min-width:0}
.f9-hp-grid .product-card__brand{display:block;margin:0 0 3px;color:var(--hp-muted);font:700 11px/1.2 Inter,Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.f9-hp-grid .product-card__title-link{display:block;color:#fff;text-decoration:none}
.f9-hp-grid .product-card__title-link h3{margin:0;color:#fff;font:700 15px/1.3 Inter,Arial,sans-serif;letter-spacing:0;text-transform:none;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.f9-hp-grid .product-card__title-link:hover h3{color:var(--hp-accent-2)}
/* Toda la tarjeta es un enlace a la ficha: el título se extiende sobre ella; corazón y botones quedan por encima. */
.f9-hp-grid .product-card__title-link::after{content:"";position:absolute;inset:0;z-index:1}
.f9-hp-grid .product-card__specs{display:none}

/* Estrellas (solo con reseñas reales) */
.f9-hp-rating{display:flex;align-items:center;gap:6px;margin:0;color:#ffb21e;line-height:1}
.f9-hp-stars{display:inline-flex;gap:1px}
.f9-hp-stars svg{width:14px;height:14px;display:block}
.f9-hp-rating__n{color:var(--hp-muted);font:600 12px/1 Inter,Arial,sans-serif}

/* Precio + botón, siempre al fondo para que las tarjetas queden alineadas */
.f9-hp-grid .product-card__footer{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;margin:auto 0 0;padding:6px 0 0;border:0;background:none;position:relative;z-index:2}
.f9-hp-grid .product-card__price{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;align-self:stretch;gap:2px 8px;width:100%;margin:0;padding:0;min-width:0;text-align:left}
.f9-hp-grid .product-card__price [data-catalog-availability]{order:3;flex:0 0 100%;color:#7fd99a;font:600 11px/1.3 Inter,Arial,sans-serif;letter-spacing:.01em}
.f9-hp-grid .product-card__imported{display:inline-block;margin-left:4px;padding:1px 5px;border:1px solid #ffffff22;border-radius:3px;color:var(--hp-muted);font-size:10px}
.f9-hp-grid .product-card__price strong{order:1;color:var(--hp-accent-2);font:800 20px/1.1 Inter,Arial,sans-serif;letter-spacing:-.01em}
.f9-hp-old{order:2;color:var(--hp-muted);font:500 13px/1 Inter,Arial,sans-serif;text-decoration:line-through}
.f9-hp-grid .product-card__price [data-catalog-tax]{order:4;flex:0 0 100%;color:#6f7882;font:500 10.5px/1.3 Inter,Arial,sans-serif}

/* Botón principal naranja (el de compra rápida) */
.f9-hp-grid .product-card__actions{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;width:100%}
.f9-hp-grid .product-card__actions .product-card__cta{display:none}
.f9-hp-grid .product-card__quick-add,.f9-hp-grid .product-card__footer>.product-card__cta{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:42px;margin:0;padding:10px 8px;border:1px solid var(--hp-accent);border-radius:5px;background:var(--hp-accent);color:#fff;font:800 12.5px/1.15 Inter,Arial,sans-serif;letter-spacing:.05em;text-align:center;text-decoration:none;text-transform:uppercase;cursor:pointer;transition:filter .15s,background .15s,color .15s}
.f9-hp-grid .product-card__quick-add:hover:not([disabled]){filter:brightness(1.1);background:var(--hp-accent);color:#fff;border-color:var(--hp-accent-2)}
.f9-hp-grid .product-card__quick-add.is-added,.f9-hp-grid .product-card__quick-add.is-added[disabled]{background:#16b364;border-color:#16b364;color:#fff}
/* Sin compra rápida (consulta, no disponible…): botón contorneado «Ver producto» */
.f9-hp-grid .product-card__footer>.product-card__cta{background:transparent;color:#fff}
.f9-hp-grid .product-card__footer>.product-card__cta:hover{background:var(--hp-accent)}
.f9-hp-grid .product-card__quick-msg{margin:0;color:#ffb4a0;font-size:11px;line-height:1.3}
.f9-hp-grid .product-card:focus-visible,.f9-hp-grid a:focus-visible,.f9-hp-grid button:focus-visible{outline:2px solid var(--hp-accent-2);outline-offset:2px}

@media(max-width:699px){
  .f9-hp-grid .product-card__info{padding:10px 10px 12px;gap:5px}
  .f9-hp-grid .product-card__title-link h3{font-size:13.5px}
  .f9-hp-grid .product-card__price strong{font-size:16px}
  .f9-hp-grid .product-card__quick-add,.f9-hp-grid .product-card__footer>.product-card__cta{min-height:40px;font-size:11.5px;letter-spacing:.03em}
  .f9-hp-stars svg{width:12px;height:12px}
}
@media(max-width:420px){.f9-hp-grid .product-card__price strong{font-size:14.5px;letter-spacing:-.02em}.f9-hp-grid .product-card__info{padding:9px 9px 11px}}
@media(prefers-reduced-motion:reduce){.f9-hp-grid .product-card,.f9-hp-grid .product-card__visual-link img{transition:none}.f9-hp-grid .product-card:hover{transform:none}}
