/* ============================================================
   Categorías (home) — tarjetas compactas con icono
   Estilo e-commerce moderno · limpio, denso y escaneable
   Paleta base: navy #173856 · acento naranja #e77235
   ============================================================ */

.rk-cats .rk-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(12px, 1vw, 18px);
}

/* --- Tarjeta compacta (icono + texto + flecha) --- */
.rk-cats .rk-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #ECEEF1;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 56, 86, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.rk-cats .rk-cat:hover {
  transform: translateY(-3px);
  border-color: #e77235;
  box-shadow: 0 16px 30px -18px rgba(231, 114, 53, 0.45);
}
.rk-cats .rk-cat:focus-visible {
  outline: 3px solid rgba(231, 114, 53, 0.45);
  outline-offset: 2px;
}

/* Badge de icono */
.rk-cats .rk-cat-ico {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 19px;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.rk-cats .rk-cat:hover .rk-cat-ico {
  transform: scale(1.06) rotate(-3deg);
}

/* Texto */
.rk-cats .rk-cat-txt {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rk-cats .rk-cat-name {
  color: #173856;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}
.rk-cats .rk-cat:hover .rk-cat-name {
  color: #e77235;
}
.rk-cats .rk-cat-meta {
  color: #8a97a4;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  line-height: 1.2;
}

/* Flecha */
.rk-cats .rk-cat-arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #b7c1cb;
  font-size: 12px;
  transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.rk-cats .rk-cat:hover .rk-cat-arrow {
  color: #ffffff;
  background: #e77235;
  transform: translateX(3px);
}

/* ---- Tintes suaves del badge (variedad tipo e-commerce) ---- */
.rk-cats .tint-ta .rk-cat-ico { background: #FFF1E8; color: #e77235; }
.rk-cats .tint-tb .rk-cat-ico { background: #E9F0FF; color: #2563eb; }
.rk-cats .tint-tc .rk-cat-ico { background: #E7F8EE; color: #16a34a; }
.rk-cats .tint-td .rk-cat-ico { background: #F2ECFF; color: #7c3aed; }
.rk-cats .tint-te .rk-cat-ico { background: #FFF6DE; color: #d97706; }
.rk-cats .tint-tf .rk-cat-ico { background: #E5F6FB; color: #0891b2; }

/* En hover, el badge toma el color de marca para unificar */
.rk-cats .rk-cat:hover .rk-cat-ico {
  background: #173856;
  color: #ffffff;
}

/* ---- Responsive ---- */
@media (max-width: 575px) {
  .rk-cats .rk-cats-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .rk-cats .rk-cat {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .rk-cats .rk-cat-arrow { display: none; }
  .rk-cats .rk-cat-meta { display: none; }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .rk-cats .rk-cat,
  .rk-cats .rk-cat-ico,
  .rk-cats .rk-cat-arrow { transition: none; }
  .rk-cats .rk-cat:hover { transform: none; }
  .rk-cats .rk-cat:hover .rk-cat-ico { transform: none; }
}
