/* ============================
   COLORES DE MARCA
============================ */

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-soft: #f1f5f9;
}

/* ============================
   ENLACES
============================ */

a {
  color: var(--primary-dark);
}

a:hover {
  text-decoration: underline;
}

/* ============================
   HERO DETALLE
============================ */

.home-hero {
  position: relative;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(14,165,233,0.15),
    transparent 70%
  );
  z-index: -1;
}

/* ============================
   CATEGORÍAS COLOR
============================ */

.category-card h3 {
  color: var(--text-main);
}

.category-card:hover h3 {
  color: var(--primary-dark);
}

/* ============================
   BLOQUE AUTORIDAD
============================ */

.autoridad {
  border-left: 6px solid var(--primary);
}

/* ============================
   UTILIDADES
============================ */

.text-muted {
  color: var(--text-muted);
}
/* =========================
   HOME CATEGORIES
   ========================= */

.home-categories {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.home-categories h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* CARD */
.category-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

/* IMAGE */
.category-image {
  height: 160px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTENT */
.category-content {
  padding: 1.5rem;
}

.category-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.category-content p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}
