/* ==========================================================================
   EL CATÁLOGO (13/09/2026)

   Híbrido de gudslip.com e histrips.com que pide Toni: tipos de producto con
   foto arriba, filtros a la vista en una columna (precio, disponibilidad,
   orden), elegir 3, 4 o 6 productos por fila, estrellas y «Comprar ahora» en
   cada tarjeta. La lógica vive en `assets/js/catalogo.js`.
   ========================================================================== */

.gp-catalogo,
.gp-catalogo-cabecera {
  --gp-catalogo-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gp-catalogo-linea: rgba(17, 17, 17, 0.1);
  --gp-catalogo-suave: #6e6e73;
  --gp-catalogo-gris: #f4f4f5;
  /* Sombra en dos capas: una corta que marca el borde y una larga y difusa
     debajo, que es la que da la sensación de que la tarjeta flota. */
  --gp-catalogo-sombra: 0 2px 6px rgba(17, 17, 17, 0.06), 0 22px 50px -12px rgba(17, 17, 17, 0.24);
}

/* Más ancho que el resto de la web (lo pide Toni el 13/09 con Histrips
   delante): casi toda la pantalla, con un margen que crece con ella. */
@media (min-width: 981px) {
  .gp-catalogo-contenedor.gp-container {
    max-width: none;
    width: min(1760px, calc(100% - clamp(2rem, 6.5vw, 7rem)));
  }
}

/* La cabecera flota encima: 6,5 rem la salvan y el resto es aire. */
.gp-catalogo-seccion.gp-section {
  padding-top: calc(6.5rem + clamp(1.25rem, 2vw, 2rem));
}

.gp-catalogo-solo-movil { display: none; }

/* ------------------------------------------------------------ cabecera */

.gp-catalogo-cabecera {
  margin: 0 0 clamp(1.5rem, 2.5vw, 2.25rem);
}

.gp-catalogo-migas,
.gp-catalogo-migas .woocommerce-breadcrumb {
  align-items: center;
  color: var(--gp-catalogo-suave);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.gp-catalogo-migas .woocommerce-breadcrumb { margin: 0; }

.gp-catalogo-migas a {
  color: inherit;
  text-decoration: none;
}

.gp-catalogo-migas a:hover { color: var(--gp-black, #111); }

.gp-catalogo-migas [aria-current] { color: var(--gp-black, #111); font-weight: 600; }

.gp-catalogo-cabecera__fila {
  align-items: end;
  border-bottom: 1px solid var(--gp-catalogo-linea);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  margin: 0;
  max-width: none;
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.gp-catalogo-titulo,
.gp-catalogo-cabecera__fila h1 {
  font-size: clamp(2.25rem, 3.3vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
}

.gp-catalogo-cabecera__texto {
  color: var(--gp-catalogo-suave);
  font-size: 1rem;
  margin: 0;
  max-width: 34rem;
}

/* ---------------------------------------------------- tipos, con su foto */

/* Repartidos por todo el ancho; si no caben, se desliza la fila. */
.gp-catalogo-tipos {
  display: grid;
  gap: 0.5rem;
  grid-auto-columns: minmax(6.25rem, 1fr);
  grid-auto-flow: column;
  margin: 0 0 clamp(1.5rem, 2.5vw, 2.25rem);
  overflow-x: auto;
  padding: 0.35rem 0.1rem 0.5rem;
  scrollbar-width: none;
}

.gp-catalogo-tipos::-webkit-scrollbar { display: none; }

.gp-catalogo-tipo {
  align-items: center;
  color: var(--gp-catalogo-suave);
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 500;
  gap: 0.55rem;
  line-height: 1.2;
  padding: 0 0.2rem;
  text-align: center;
  text-decoration: none;
}

.gp-catalogo-tipo__foto {
  background: var(--gp-catalogo-gris);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gp-catalogo-linea);
  display: block;
  height: 5.25rem;
  overflow: hidden;
  position: relative;
  transition: box-shadow 250ms ease, transform 250ms var(--gp-catalogo-ease);
  width: 5.25rem;
}

.gp-catalogo-tipo__foto img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gp-catalogo-tipo--todo .gp-catalogo-tipo__foto {
  background: #111;
}

.gp-catalogo-tipo--todo .gp-catalogo-tipo__foto img {
  filter: grayscale(1) invert(1) brightness(2);
  object-fit: contain;
  padding: 0.55rem;
}

.gp-catalogo-tipo:hover .gp-catalogo-tipo__foto,
.gp-catalogo-tipo:focus-visible .gp-catalogo-tipo__foto {
  transform: translateY(-2px);
}

.gp-catalogo-tipo.is-active {
  color: var(--gp-black, #111);
  font-weight: 700;
}

.gp-catalogo-tipo.is-active .gp-catalogo-tipo__foto {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gp-black, #111);
}

/* ------------------------------------------------------------ la barra */

/* La barra y la columna son dos tarjetas blancas con borde y sombra suave:
   se separan del fondo blanco sin teñirlo. */
.gp-catalogo-barra {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 1.1rem;
  box-shadow: var(--gp-catalogo-sombra);
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-bottom: 1.5rem;
  padding: 0.6rem 0.7rem;
}

.gp-catalogo-barra__derecha {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

.gp-catalogo-barra__separador {
  align-self: stretch;
  background: var(--gp-catalogo-linea);
  margin: 0.35rem 0;
  width: 1px;
}

.gp-catalogo-ordenar {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  gap: 0.35rem;
  position: relative;
}

.gp-catalogo-ordenar > span { color: var(--gp-catalogo-suave); }

.gp-catalogo-ordenar select {
  -webkit-appearance: none;
  appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 0.95rem;
  border: 0;
  border-radius: 999px;
  color: var(--gp-black, #111);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  min-height: 2.5rem;
  padding: 0 2.1rem 0 0.7rem;
  transition: background-color 200ms ease;
}

.gp-catalogo-ordenar select:hover,
.gp-catalogo-ordenar select:focus-visible {
  background-color: var(--gp-catalogo-gris);
  outline: none;
}

/* Los filtros puestos, en etiquetas que se quitan con la ×. */
.gp-catalogo-activos {
  align-items: center;
  border-top: 1px solid var(--gp-catalogo-linea);
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.7rem 0.1rem 0.1rem;
}

.gp-catalogo-activos[hidden] { display: none; }

.gp-catalogo-activo {
  align-items: center;
  background: var(--gp-catalogo-gris);
  border: 0;
  border-radius: 999px;
  color: var(--gp-black, #111);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.4rem;
  min-height: 2.1rem;
  padding: 0 0.55rem 0 0.9rem;
  transition: background-color 200ms ease;
}

.gp-catalogo-activo:hover { background: #e7e7ea; }

.gp-catalogo-activo svg {
  fill: none;
  height: 0.95rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
  width: 0.95rem;
}

.gp-catalogo-activos__todo {
  background: transparent;
  border: 0;
  color: var(--gp-black, #111);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gp-catalogo-barra__filtros {
  align-items: center;
  background: transparent;
  border: 1px solid var(--gp-catalogo-linea);
  border-radius: 999px;
  color: var(--gp-black, #111);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  transition: background-color 200ms ease;
}

.gp-catalogo-barra__filtros:hover { background: var(--gp-catalogo-gris); }

/* Con la columna abierta el botón se queda marcado. */
.gp-catalogo-barra__filtros[aria-expanded="true"] {
  background: var(--gp-black, #111);
  border-color: var(--gp-black, #111);
  color: #fff;
}

.gp-catalogo-barra__filtros svg {
  fill: none;
  height: 1.1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  width: 1.1rem;
}

.gp-catalogo-barra__cuenta {
  color: var(--gp-catalogo-suave);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.gp-catalogo-vistas {
  display: flex;
  gap: 0.25rem;
}

.gp-catalogo-vistas button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.6rem;
  color: #b5b5b9;
  cursor: pointer;
  display: flex;
  height: 2.5rem;
  justify-content: center;
  transition: background-color 200ms ease, color 200ms ease;
  width: 2.5rem;
}

.gp-catalogo-vistas button:hover { background: var(--gp-catalogo-gris); color: #555; }

.gp-catalogo-vistas button[aria-pressed="true"] {
  color: var(--gp-black, #111);
}

.gp-catalogo-vistas svg {
  fill: currentColor;
  height: 1.35rem;
  width: 1.35rem;
}

/* ----------------------------------------------- columna y resultados */

.gp-catalogo-cuerpo {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 17.5rem minmax(0, 1fr);
}

.gp-catalogo.is-filtros-plegados .gp-catalogo-cuerpo {
  gap: 0;
  grid-template-columns: 0 minmax(0, 1fr);
}

.gp-catalogo-filtros {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 1.1rem;
  box-shadow: var(--gp-catalogo-sombra);
  box-sizing: border-box;
  padding: 1rem 1.15rem 0.35rem;
  position: sticky;
  top: 7.5rem;
  transition: opacity 300ms ease, visibility 0s linear 0s;
}

/* En ordenador el orden está en la barra y «Quitar todo» en las etiquetas. */
@media (min-width: 981px) {
  .gp-catalogo-grupo--orden,
  .gp-catalogo-filtros .gp-catalogo-quitar { display: none; }
}

.gp-catalogo.is-filtros-plegados .gp-catalogo-filtros {
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 300ms;
  visibility: hidden;
}

.gp-catalogo-filtros__cabecera,
.gp-catalogo-filtros__pie {
  display: none;
}

.gp-catalogo-buscar {
  display: block;
  margin-bottom: 0.75rem;
  position: relative;
}

.gp-catalogo-buscar input {
  background: var(--gp-catalogo-gris);
  border: 1px solid transparent;
  border-radius: 999px;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9rem;
  min-height: 2.75rem;
  padding: 0 1rem 0 2.6rem;
  width: 100%;
}

.gp-catalogo-buscar input:focus {
  background: #fff;
  border-color: var(--gp-black, #111);
  outline: none;
}

.gp-catalogo-buscar svg {
  fill: none;
  height: 1.05rem;
  left: 1rem;
  pointer-events: none;
  position: absolute;
  stroke: #888;
  stroke-linecap: round;
  stroke-width: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
}

.gp-catalogo-grupo {
  border-top: 1px solid var(--gp-catalogo-linea);
  padding: 0.2rem 0;
}

.gp-catalogo-grupo summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 0.95rem;
  font-weight: 650;
  justify-content: space-between;
  list-style: none;
  padding: 0.85rem 0;
}

.gp-catalogo-grupo summary::-webkit-details-marker { display: none; }

.gp-catalogo-grupo summary::after {
  border-right: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  content: '';
  height: 0.45rem;
  margin-right: 0.3rem;
  transform: rotate(-45deg);
  transition: transform 250ms ease;
  width: 0.45rem;
}

.gp-catalogo-grupo:not([open]) summary::after { transform: rotate(135deg); }

.gp-catalogo-grupo__contenido {
  display: grid;
  gap: 0.15rem;
  padding: 0 0 0.9rem;
}

/* Casillas y radios con el dibujo de la marca, grandes y fáciles de pulsar. */
.gp-catalogo-opcion {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 0.93rem;
  gap: 0.7rem;
  min-height: 2.35rem;
}

.gp-catalogo-opcion input {
  accent-color: var(--gp-black, #111);
  flex: none;
  height: 1.15rem;
  margin: 0;
  width: 1.15rem;
}

.gp-catalogo-opcion input:disabled + span { color: #b5b5b9; }

.gp-catalogo-opcion [data-gp-catalogo-stock-cuenta] {
  color: var(--gp-catalogo-suave);
  margin-left: 0.25rem;
}

/* El precio, con dos tiradores sobre la misma pista. */
.gp-catalogo-precio {
  height: 2.25rem;
  margin: 0.25rem 0.55rem 0;
  position: relative;
}

.gp-catalogo-precio__pista {
  --gp-desde: 0%;
  --gp-hasta: 100%;
  background: linear-gradient(to right, #dcdcdf var(--gp-desde), var(--gp-black, #111) var(--gp-desde), var(--gp-black, #111) var(--gp-hasta), #dcdcdf var(--gp-hasta));
  border-radius: 999px;
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.gp-catalogo-precio input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 2.25rem;
  left: -0.55rem;
  margin: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: calc(100% + 1.1rem);
}

.gp-catalogo-precio input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: #fff;
  border: 2px solid var(--gp-black, #111);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: grab;
  height: 1.25rem;
  pointer-events: auto;
  width: 1.25rem;
}

.gp-catalogo-precio input[type="range"]::-moz-range-thumb {
  background: #fff;
  border: 2px solid var(--gp-black, #111);
  border-radius: 50%;
  cursor: grab;
  height: 1.1rem;
  pointer-events: auto;
  width: 1.1rem;
}

.gp-catalogo-precio input[type="range"]::-moz-range-track { background: transparent; }

.gp-catalogo-precio__texto {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  margin: 0.35rem 0 0;
}

.gp-catalogo-quitar {
  background: transparent;
  border: 0;
  color: var(--gp-black, #111);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.4rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gp-catalogo-vacio {
  background: #f5f5f7;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  text-align: center;
}

.gp-catalogo-vacio h3 { margin: 0 0 0.5rem; }
.gp-catalogo-vacio p { color: var(--gp-catalogo-suave); margin: 0 0 1rem; }

/* ------------------------------------------------ la rejilla y las vistas */

.gp-catalogo .gp-catalogo-rejilla.gp-product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.gp-catalogo .gp-catalogo-rejilla[data-gp-vista="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.gp-catalogo .gp-catalogo-rejilla[data-gp-vista="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.85rem; }

.gp-catalogo .gp-catalogo-rejilla > .gp-product-card[hidden] { display: none; }

.gp-catalogo .gp-catalogo-rejilla > .gp-product-card.is-entrando {
  animation: gp-catalogo-entra 450ms var(--gp-catalogo-ease) both;
}

@keyframes gp-catalogo-entra {
  from { opacity: 0; transform: translateY(0.6rem); }
}

/* La tarjeta: estrellas encima del nombre y el botón siempre al fondo, a la
   misma altura en toda la fila. */
.gp-catalogo .gp-catalogo-rejilla .gp-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.gp-catalogo .gp-catalogo-rejilla .gp-product-card__cta {
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  margin-top: auto;
  min-height: 2.9rem;
  white-space: nowrap;
  width: 100%;
}

.gp-catalogo .gp-catalogo-rejilla [data-gp-card-price],
.gp-catalogo .gp-catalogo-rejilla .gp-product-card__price {
  margin-bottom: 1rem;
}

.gp-catalogo .gp-catalogo-rejilla .gp-product-card__availability {
  margin-top: auto;
}

/* Esquinas de 6 px, las de las tarjetas de Histrips (antes 28). */
.gp-catalogo .gp-catalogo-rejilla > .gp-product-card {
  border-radius: 6px;
}

/*
 * La tarjeta, más compacta (13/09/2026, Toni con la captura del catálogo):
 *
 * - valoraciones, nombre y descripción, separados por el mismo aire: 8 px
 * - la descripción, dos líneas como mucho; si no, la tarjeta crecía
 * - el precio ya no va detrás de la descripción: baja al fondo, justo encima
 *   de «Comprar ahora», así precio y botón quedan a la misma altura en la fila
 * - «Comprar ahora», igual de ancho pero más fino: 40 px de alto (antes 46)
 */
.gp-catalogo .gp-catalogo-rejilla .gp-product-card__body > .gp-catalogo-nota {
  margin: 0 0 8px;
}

.gp-catalogo .gp-catalogo-rejilla .gp-product-card__body > h2 {
  margin: 0;
}

.gp-catalogo .gp-catalogo-rejilla .gp-product-card__description {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  line-clamp: 2;
  margin: 8px 0 0;
  overflow: hidden;
}

.gp-catalogo .gp-catalogo-rejilla [data-gp-card-price],
.gp-catalogo .gp-catalogo-rejilla .gp-product-card__price {
  margin: auto 0 12px;
  padding-top: 16px;
}

.gp-catalogo .gp-catalogo-rejilla .gp-product-card__cta {
  margin-top: 0;
  min-height: 2.5rem;
  padding-block: 0.45rem;
}

.gp-catalogo-nota {
  align-items: center;
  display: flex;
  font-size: 0.8rem;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
}

/* Las estrellas son VERDES: el mismo dibujo y los mismos colores que las de la
   ficha (`product-v5/opiniones-resumen-2026-09-10.css`) y el carrusel. Dos
   filas de casillas, la pálida debajo y la verde recortada a la nota. */
.gp-catalogo-nota {
  --gp-rating-star: #00b67a;
  --gp-rating-star-off: #cdeade;
}

.gp-catalogo-nota .gp-rating__stars {
  display: inline-block;
  flex: 0 0 auto;
  line-height: 0;
  position: relative;
}

.gp-catalogo-nota .gp-rating__row {
  display: inline-flex;
  gap: 0.13rem;
  line-height: 0;
}

.gp-catalogo-nota .gp-rating__row.is-on {
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
}

.gp-catalogo-nota .gp-rating__star {
  align-items: center;
  border-radius: 0.14rem;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 0.95rem;
  justify-content: center;
  width: 0.95rem;
}

.gp-catalogo-nota .gp-rating__row.is-off .gp-rating__star { background: var(--gp-rating-star-off); }
.gp-catalogo-nota .gp-rating__row.is-on .gp-rating__star { background: var(--gp-rating-star); }

.gp-catalogo-nota .gp-rating__star svg {
  fill: currentColor;
  height: 0.64rem;
  width: 0.64rem;
}

.gp-catalogo-nota__texto {
  color: var(--gp-catalogo-suave);
  font-variant-numeric: tabular-nums;
}

/* A seis por fila no cabe todo: fuera la descripción, letra y botón menores. */
.gp-catalogo .gp-catalogo-rejilla[data-gp-vista="6"] .gp-product-card__description { display: none; }

.gp-catalogo .gp-catalogo-rejilla[data-gp-vista="6"] .gp-product-card__body {
  padding: 0.85rem 0.8rem 0.9rem;
}

.gp-catalogo .gp-catalogo-rejilla[data-gp-vista="6"] .gp-product-card__body h2 {
  font-size: 0.88rem;
}

.gp-catalogo .gp-catalogo-rejilla[data-gp-vista="6"] .gp-product-card__cta {
  font-size: 0.78rem;
  min-height: 2.4rem;
  padding-inline: 0.5rem;
}

.gp-catalogo .gp-catalogo-rejilla[data-gp-vista="6"] .gp-catalogo-nota__texto { display: none; }

/* A seis por fila, el precio algo menor: los rangos («27,54 € - 66,49 €») se
   salían de tarjetas de 172 px. */
.gp-catalogo .gp-catalogo-rejilla[data-gp-vista="6"] [data-gp-card-price] .gp-commerce-price,
.gp-catalogo .gp-catalogo-rejilla[data-gp-vista="6"] .gp-product-card__price {
  column-gap: 8px;
  font-size: 0.92rem;
}

/* ------------------------------------------- el color de cada familia */

/* 13/09/2026: en el nombre de las palas y los packs, «Attack» va en rojo y
   «Control» en azul, igual que en su ficha, para que se distingan de un
   vistazo en la portada y en el catálogo. La palabra la envuelve
   `gladiator_nombre_con_familia()` en el tema y `catalogo.js` en la preview.
   Sobre las tarjetas claras: rojo #dc0618 (4,7:1) y azul #0050ff (5,4:1). */
/* 14/09/2026 · Toni prefiere para Attack el degradado naranja → rosa → violeta
   (como el de su captura) al de ámbar → rojo del 13/09. Sigue llamándose
   «Ascua» y cambia en todos sus sitios a la vez: palabra, botones, cantidad y
   recorrido. */
/* 13/09/2026, más tarde: el rojo y el azul planos pasan a degradado, «Ascua»
   para Attack (metal al rojo) y «Glaciar» para Control (mercurio frío), por el
   estudio de color que Toni aprobó. Cada familia tiene su degradado de fondo
   claro y el de fondo oscuro; los extremos se midieron uno a uno:
   - claro, sobre #f5f5f7: Ascua #c2410c 4,8:1, #c81e5a 5,1:1 y #8e3fc4 5,3:1; Glaciar
     #1d5fd8 5,2:1 y #6a3fd3 5,9:1.
   - oscuro, sobre #1d1d1f: Ascua #bf5af2 4,8:1, #ff5470 5,4:1 y #ff9f45 8,3:1;
     Glaciar #8e7dff 5,2:1.
   El `color` liso de delante se queda para el navegador que no recorta el
   fondo al texto. */
.gp-familia--attack,
.gp-familia--control {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.gp-familia--attack { color: #c81e5a; }
.gp-familia--control { color: #1d5fd8; }
.gp-paddle-lineup .gp-familia--attack { color: #ff5470; }
.gp-paddle-lineup .gp-familia--control { color: #7fb2ff; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gp-familia--attack,
  .gp-familia--control {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .gp-familia--attack { background-image: linear-gradient(100deg, #c2410c 0%, #c81e5a 50%, #8e3fc4 100%); }
  .gp-familia--control { background-image: linear-gradient(100deg, #1d5fd8 0%, #6a3fd3 100%); }
  /* «Explora las Gladiator.» va sobre #1d1d1f. */
  .gp-paddle-lineup .gp-familia--attack { background-image: linear-gradient(100deg, #ff9f45 0%, #ff5470 50%, #bf5af2 100%); }
  .gp-paddle-lineup .gp-familia--control { background-image: linear-gradient(100deg, #9fd4ff 0%, #7fb2ff 48%, #8e7dff 100%); }
}

/* 13/09/2026 · la tarjeta del Pack Attack en el carrusel «Packs Gladiator.» de
   la portada va en oscuro, como su ficha: la foto es la caja negra y sobre el
   panel blanco se veía cortada. Se reconoce por la palabra de familia de su
   título, que ya pintan igual el tema y la preview, así que no hace falta
   tocar el marcado. Negro puro para que la foto se funda; textos secundarios
   #a1a1a6 (8,2:1); botón en el degradado Ascua de la ficha (blanco 4,0–5,1:1). */
.gp-home-pack-feature:has(.gp-familia--attack) {
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}
.gp-home-pack-feature:has(.gp-familia--attack) .gp-home-pack-feature__media { background: #000; }
.gp-home-pack-feature:has(.gp-familia--attack) .gp-home-pack-feature__content h3,
.gp-home-pack-feature:has(.gp-familia--attack) .gp-home-pack-feature__price { color: #f5f5f7; }
.gp-home-pack-feature:has(.gp-familia--attack) .gp-home-pack-feature__eyebrow,
.gp-home-pack-feature:has(.gp-familia--attack) .gp-home-pack-feature__lead { color: #a1a1a6; }
.gp-home-pack-feature:has(.gp-familia--attack) .gp-familia--attack { color: #ff5470; }
.gp-home-pack-feature:has(.gp-familia--attack) .gp-home-pack-feature__cta {
  background: linear-gradient(100deg, #d8561a 0%, #d6305c 50%, #9a44cf 100%);
  color: #fff;
}
.gp-home-pack-feature:has(.gp-familia--attack) .gp-home-pack-feature__cta:hover,
.gp-home-pack-feature:has(.gp-familia--attack) .gp-home-pack-feature__cta:focus-visible {
  background: linear-gradient(100deg, #c24c17 0%, #bf2a52 50%, #8a3dba 100%);
}
/* La del Pack Control sigue blanca, pero su botón va en el degradado Glaciar
   de su ficha, #1d5fd8 → #6a3fd3 (blanco 5,7:1 y 6,4:1). Toni, 13/09/2026. */
.gp-home-pack-feature:has(.gp-familia--control) .gp-home-pack-feature__cta {
  background: linear-gradient(100deg, #1d5fd8 0%, #6a3fd3 100%);
  color: #fff;
}
.gp-home-pack-feature:has(.gp-familia--control) .gp-home-pack-feature__cta:hover,
.gp-home-pack-feature:has(.gp-familia--control) .gp-home-pack-feature__cta:focus-visible {
  background: linear-gradient(100deg, #1a4fb8 0%, #5a33b8 100%);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gp-home-pack-feature:has(.gp-familia--attack) .gp-familia--attack {
    background-image: linear-gradient(100deg, #ff9f45 0%, #ff5470 50%, #bf5af2 100%);
  }
}

/* ------------------------------------------------------------- tablet */

/* En portátiles los trece tipos caben en una fila si se aprietan un poco. */
@media (max-width: 1440px) and (min-width: 981px) {
  .gp-catalogo-tipos { gap: 0.25rem; grid-auto-columns: minmax(5.4rem, 1fr); }
  .gp-catalogo-tipo { font-size: 0.78rem; }
  .gp-catalogo-tipo__foto { height: 4.5rem; width: 4.5rem; }
}

/* Con la columna de filtros al lado, a 1024 px la vista de 4 dejaba tarjetas
   de 148 px y «Comprar ahora» se salía del botón. Hasta 1280 px la de 4 pone
   3 por fila y la de 6, 4. */
@media (max-width: 1280px) and (min-width: 981px) {
  .gp-catalogo .gp-catalogo-rejilla[data-gp-vista="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gp-catalogo .gp-catalogo-rejilla[data-gp-vista="6"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ teléfono */

@media (max-width: 980px) {
  .gp-catalogo-solo-escritorio { display: none; }
  .gp-catalogo-solo-movil { display: inline; }

  .gp-catalogo-seccion.gp-section { padding-top: 6rem; }

  .gp-catalogo-cabecera__fila { gap: 0.4rem; padding-bottom: 1.1rem; }
  .gp-catalogo-titulo,
  .gp-catalogo-cabecera__fila h1 { font-size: 2rem; }
  .gp-catalogo-cabecera__texto { font-size: 0.9rem; }

  .gp-catalogo-tipos { gap: 0.2rem; grid-auto-columns: 5.4rem; }
  .gp-catalogo-tipo { font-size: 0.76rem; }
  .gp-catalogo-tipo__foto { height: 4rem; width: 4rem; }

  .gp-catalogo-barra__derecha,
  .gp-catalogo-activos { display: none; }

  .gp-catalogo-barra {
    flex-wrap: nowrap;
    justify-content: space-between;
    position: sticky;
    top: 5.6rem;
    z-index: 5;
  }

  .gp-catalogo-barra__filtros[aria-expanded] {
    background: transparent;
    border-color: var(--gp-catalogo-linea);
    color: var(--gp-black, #111);
  }

  .gp-catalogo-cuerpo,
  .gp-catalogo.is-filtros-plegados .gp-catalogo-cuerpo {
    display: block;
  }

  .gp-catalogo .gp-catalogo-rejilla.gp-product-grid,
  .gp-catalogo .gp-catalogo-rejilla[data-gp-vista] {
    gap: 0.6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Los filtros, en un panel que sube desde abajo con el mismo gesto que el
     menú: velo difuminado detrás y entrada de 500 ms. */
  .gp-catalogo-filtros,
  .gp-catalogo.is-filtros-plegados .gp-catalogo-filtros {
    -webkit-backdrop-filter: none;
    background: #fff;
    border: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 0;
    bottom: 0;
    box-shadow: 0 -1rem 3rem rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    left: 0;
    max-height: 88dvh;
    opacity: 1;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: auto;
    transform: translateY(100%);
    transition: transform 500ms var(--gp-catalogo-ease), visibility 0s linear 500ms;
    visibility: hidden;
    z-index: 100002;
  }

  .gp-catalogo.is-filtros-movil .gp-catalogo-filtros {
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
    visibility: visible;
  }

  .gp-catalogo::after {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background: rgba(8, 8, 10, 0.5);
    content: '';
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 400ms ease, visibility 0s linear 400ms;
    visibility: hidden;
    z-index: 100001;
  }

  .gp-catalogo.is-filtros-movil::after {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
    visibility: visible;
  }

  body.gp-catalogo-filtros-abiertos { overflow: hidden; }

  .gp-catalogo-filtros__cabecera {
    align-items: center;
    border-bottom: 1px solid var(--gp-catalogo-linea);
    display: flex;
    flex: none;
    justify-content: space-between;
    padding: 1rem 1rem 0.9rem 1.25rem;
  }

  .gp-catalogo-filtros__cabecera strong { font-size: 1.05rem; }

  .gp-catalogo-filtros__cabecera button {
    align-items: center;
    background: #f2f2ef;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
  }

  .gp-catalogo-filtros__cabecera svg {
    fill: none;
    height: 1.1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
    width: 1.1rem;
  }

  .gp-catalogo-filtros__cuerpo {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 1.25rem;
  }

  .gp-catalogo-filtros__pie {
    border-top: 1px solid var(--gp-catalogo-linea);
    display: block;
    flex: none;
    padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
  }

  .gp-catalogo-filtros__pie button {
    background: var(--gp-black, #111);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 3.1rem;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .gp-catalogo .gp-catalogo-rejilla.gp-product-grid,
  .gp-catalogo .gp-catalogo-rejilla[data-gp-vista] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-catalogo-barra { top: 5.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gp-catalogo *,
  .gp-catalogo::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------- carruseles de la portada */

/* 14/09/2026 · Toni, con la portada de histrips.com delante: las tarjetas de
   los carruseles de la portada («Agarre.», «Marcador y ritmo.», «Protección y
   recambio.») llevan, como las del catálogo, las estrellas verdes encima del
   nombre y «Comprar ahora», con el precio y el botón al fondo de la tarjeta, a
   la misma altura en todo el carril. En el teléfono el botón ya salía y tiene
   sus medidas en `responsive-base.css`: esto es de 641 px hacia arriba. */
@media (min-width: 641px) {
  .gp-family-track .gp-product-card__body > .gp-catalogo-nota { margin: 0 0 8px; }
  .gp-family-track .gp-product-card__body > h2 { margin: 0; }
  .gp-family-track .gp-product-card__description { margin: 8px 0 0; }

  .gp-family-track [data-gp-card-price],
  .gp-family-track .gp-product-card__price {
    margin: auto 0 12px;
    padding-top: 16px;
  }

  .gp-family-track .gp-product-card__cta {
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    margin-top: 0;
    min-height: 2.9rem;
    white-space: nowrap;
    width: 100%;
  }

  .gp-family-track .gp-product-card__availability { margin-top: auto; }
}

/* «Ver todos los productos» al acabar el último carrusel, centrado, como el
   «See All Products» de histrips.com. Lleva al catálogo. */
.gp-family-store__todos {
  display: flex;
  justify-content: center;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-inline: 1.5rem;
}

.gp-family-store__todos .gp-button {
  font-size: 1.05rem;
  min-height: 3.5rem;
  padding-inline: 2.75rem;
}

/*
 * Agotado, con «Ver producto» (Toni, 21/09/2026).
 *
 * Hasta hoy la tarjeta agotada acababa en la etiqueta roja y no tenía botón:
 * el clic en la foto o el nombre llevaba a la ficha, pero nada lo decía. Ahora
 * lleva «Ver producto», con borde y sin relleno para que no compita con
 * «Comprar ahora» de las que sí se pueden comprar.
 */
.gp-catalogo .gp-catalogo-rejilla .gp-product-card__availability--out {
  margin: 0 0 8px;
}

.gp-product-card__cta--ver,
.gp-catalogo .gp-catalogo-rejilla .gp-product-card__cta--ver {
  background: transparent;
  border: 1px solid var(--gp-black, #111);
  color: var(--gp-black, #111);
}

.gp-product-card__cta--ver:hover,
.gp-product-card__cta--ver:focus-visible {
  background: var(--gp-black, #111);
  color: #fff;
}

/* T-168: el aviso comparte ancho y altura con la acción de la tarjeta. */
.gp-product-card .gp-aviso--tarjeta {
  margin-top: 0.5rem;
  width: 100%;
}

.gp-product-card .gp-aviso--tarjeta .gp-aviso__abrir {
  display: flex;
  font-size: 0.95rem;
  min-height: 2.9rem;
  padding: 0.8rem 1rem;
  white-space: normal;
  width: 100%;
}

@media (max-width: 760px) {
  .gp-product-card .gp-aviso--tarjeta .gp-aviso__abrir {
    font-size: 0.85rem;
    min-height: 40px;
    padding: 0.5rem 0.6rem;
  }
}
