/* /ofertas/ y sus páginas por categoría (scripts/offers-view.mjs). Solo la cargan esas páginas; usa los tokens de
   site.css. El resto de estilos de tarjetas, fichas y filtros son los de /recomendaciones/. */

/* «Black Friday» encima del nombre de la categoría, dentro del mismo H1: que se vea claro qué campaña es. */
.offers-kicker { display: block; margin-bottom: .12em; font-size: .36em; line-height: 1; color: var(--luz-viva); }
.category-offers .offers-title { font-size: clamp(64px, 17vw, 150px); }

.offers-block { margin-top: 8px; }
.offers-block + .offers-block, .offers-garage + .offers-block { margin-top: 44px; }
.offers-block > h2 { margin-bottom: 10px; font-size: 32px; }
.offers-categories .guide-tile[aria-current="page"] .guide-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* La tarjeta: precio con la fecha de ese precio; el comentario, en tres líneas como mucho (el resto, en Telegram). */
.offer-when { font-size: 14px; }
.offers .offer-price strong { margin-right: 0; }
.offer .product-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.offer .pick-video { color: var(--tinta); }
.offer-garage { color: var(--tinta); }
.offer-garage .icon { color: #8A6D00; }

/* Más de 72 horas: siguen, pero apagadas (y a los 7 días se van). */
.offers-block.is-old > h2 { font-size: 24px; color: var(--pizarra); }
.offer.is-old .product-media { opacity: .55; filter: grayscale(.6); }
.offer.is-old .product-title { color: var(--pizarra); }
.offer.is-old .offer-price strong { color: var(--pizarra); }
.offers-empty { padding: 18px 0; color: var(--pizarra); }

/* Monitor Garage: su amarillo, solo aquí (dirección visual 1B). */
.offers-garage {
  position: relative; display: grid; gap: 4px; margin: 8px 0 28px; padding: 18px 52px 18px 18px;
  background: var(--noche); color: var(--blanco); border-left: 6px solid var(--mg);
}
.offers-garage-name { font: 800 15px/1 var(--display); letter-spacing: .02em; color: var(--mg); }
.offers-garage strong { font: 800 26px/1.02 var(--display); }
.offers-garage span:not(.offers-garage-name) { font-size: 15px; color: var(--niebla); }
.offers-garage .primary-arrow { position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; }
.offers-garage:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (min-width: 900px) {
  .offers-garage { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .offers-garage strong { font-size: 30px; }
}

/* Rework del 18/11 («está lioso»): un solo formato de oferta, compacto en el móvil. */
.offer { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
.offer .product-media { width: 72px; }
.offer.no-media { grid-template-columns: minmax(0, 1fr); }
.offer .product-title { font-size: 22px; }
.offer .offer-price strong { font-size: 24px; }
.offer .product-actions { margin-top: 6px; }

/* Las categorías de la portada, en compacto: nombre, icono y número de ofertas. */
.offers-categories.is-compact .guide-tile { padding: 12px 0; }
.offers-categories.is-compact .guide-meta { margin-top: 2px; }

/* En cada categoría, las demás en una fila corta, arriba. */
.offers-others { display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 18px; padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
.offers-others::-webkit-scrollbar { display: none; }
.offers-others a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--linea-ficha); font-weight: 600; font-size: 14px; white-space: nowrap; }
.offers-others a:hover { border-color: var(--tinta); }
.offers-others span { font-weight: 400; color: var(--pizarra); }

/* De cada recopilación, solo una línea discreta. */
.offers-selection { margin-top: 14px; font-size: 14px; color: var(--pizarra); }
.offers-selection a { color: var(--tinta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.offers-selection + .offers-selection { margin-top: 6px; }

@media (min-width: 700px) {
  .offer { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; }
  .offer .product-media { width: 112px; }
  .offer.no-media { grid-template-columns: minmax(0, 1fr); }
  .offer .product-title { font-size: 25px; }
  .offers-others { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .offers-categories.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
