/* =========================================
   CONTROL TOTAL CATEGORÍAS
========================================= */

/* VARIABLES EDITABLES */
:root {
  --cat-height: 150px;
  --cat-padding: 20px;
  --cat-radius: 26px;
  --cat-title-size: 15px;
  --cat-text-size: 8px;
  --cat-columns: 3;
  --cat-gap: 30px;
}

/* GRID EXCLUSIVO */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(var(--cat-columns), 1fr);
  gap: var(--cat-gap);
}

/* CARD */
.category-card {
  height: var(--cat-height);
  padding: var(--cat-padding);
  border-radius: var(--cat-radius);
  background: #ffffff;

  box-shadow: 0 20px 50px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
  justify-content: center;

  transition: .3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* DECORACIÓN LATERAL */
.category-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 10px;
  background: linear-gradient(180deg,#7A0B12,#caa437);
}

/* HOVER */
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.15);
}

/* HEADER */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* TITULO */
.category-header h2 {
  font-size: var(--cat-title-size);
  color: #7A0B12;
  margin: 0;
}

/* TEXTO */
.category-card p {
  font-size: var(--cat-text-size);
  color: #555;
  margin-top: 12px;
}

/* FLECHA */
.category-arrow {
  font-size: 15px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  :root {
    --cat-columns: 3;
  }
}

@media (max-width: 768px) {
  :root {
    --cat-columns: 3;
  }
}