/**
 * Tarjetas de Categoría Rotoplast.
 *
 * Mismos nombres de clase que el shortcode original (.rotoplast-cat-wrapper,
 * .rotoplast-cat-card, .cat-icon-box, .cat-info, .cat-label, .cat-title),
 * colgando de .rp-category-cards.
 *
 * Todo en píxeles: no hay media queries aquí a propósito. Lo que cambia entre
 * escritorio, tablet y móvil (columnas, separación, relleno, tamaño del icono
 * y tipografías) se controla desde los ajustes por dispositivo de Elementor.
 */

.rp-category-cards {
  width: 100%;
}

.rp-category-cards .rotoplast-cat-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
}

.rp-category-cards .rotoplast-cat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  background-color: #003e1b;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  min-width: 0;
}

.rp-category-cards .rotoplast-cat-card.is-extra {
  background-color: #000000;
}

.rp-category-cards .rotoplast-cat-card:hover {
  background-color: #fbf7db;
}

.rp-category-cards .rotoplast-cat-card:hover .cat-title {
  color: #000;
}

.rp-category-cards .rotoplast-cat-card:hover .cat-label {
  color: #00923f;
}

.rp-category-cards.has-lift .rotoplast-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.rp-category-cards .cat-icon-box {
  background-color: #97d700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  width: 55px;
  height: 55px;
  border-radius: 10px;
}

.rp-category-cards .cat-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rp-category-cards .cat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* overflow-wrap: sin esto una sola palabra larga (AGROPECUARIA) se sale de la
   tarjeta en contenedores estrechos como el sidebar, porque no tiene por dónde
   partirse. */
.rp-category-cards .cat-label {
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.rp-category-cards .cat-title {
  color: #ffffff;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
