/* ══════════════════════════════
   HERO
══════════════════════════════ */
.home-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-20) 0 var(--sp-16);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: var(--sp-16);
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ── Texto hero ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-700);
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
}

.hero-tagline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--sp-8);
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ── Visual decorativo ── */
.hero-visual {
  position: relative;
  height: 340px;
}

.hv-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: var(--r-xl);
  opacity: 0.5;
}

/* Tarjetas decorativas flotantes */
.hv-card {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
  width: 200px;
}
.hv-card--1 { top: 20px;  left: 20px;  transform: rotate(-2deg); z-index: 3; }
.hv-card--2 { top: 80px;  left: 160px; transform: rotate(1.5deg); z-index: 2; }
.hv-card--3 { top: 180px; left: 60px;  transform: rotate(-1deg); z-index: 1; }

.hv-card-chip { margin-bottom: var(--sp-3); }

.hv-bar {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--gray-100);
  margin-bottom: var(--sp-2);
}
.hv-bar--lg { width: 80%; }
.hv-bar--md { width: 60%; }
.hv-bar--sm { width: 40%; }

.hv-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
}
.hv-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hv-dot--red    { background: #CC2222; }
.hv-dot--blue   { background: #1D5FA6; }
.hv-dot--purple { background: #6B3FA0; }

/* Stats flotantes */
.hv-stat {
  position: absolute;
  background: var(--gray-900);
  color: var(--gray-0);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 4;
}
.hv-stat--1 { bottom: 40px; right: 30px; }
.hv-stat--2 { bottom: 40px; right: 130px; }
.hv-stat-num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  line-height: 1;
}
.hv-stat-label {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: 2px;
}


/* ══════════════════════════════
   TIPOS DE CONTENIDO
══════════════════════════════ */
.home-content-types {
  padding: var(--sp-20) 0;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}

.ct-header {
  max-width: 600px;
  margin: 0 auto var(--sp-12);
  text-align: center;
}
.ct-header h2 {
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}
.ct-header p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 1024px) { .ct-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ct-grid { grid-template-columns: 1fr; } }

.ct-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.ct-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.ct-icon {
  width: 44px; height: 44px;
  background: var(--gray-100);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}
.ct-card h3 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
}
.ct-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.ct-link {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin-top: var(--sp-1);
}
.ct-link:hover { color: var(--text-primary); text-decoration: none; }


/* ══════════════════════════════
   ARTÍCULOS
══════════════════════════════ */
.home-articles { padding: var(--sp-16) 0; }

.section-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.section-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
}

.cat-filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
}
.cat-btn {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.cat-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }
.cat-btn.active {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--gray-0);
}

.empty-state {
  text-align: center; padding: var(--sp-16);
  color: var(--text-muted); font-size: var(--text-sm);
}


/* ══════════════════════════════
   BANNER PARA QUIÉN ES
══════════════════════════════ */
.home-about-banner {
  background: var(--gray-900);
  padding: var(--sp-20) 0;
  margin-top: var(--sp-8);
}

.ab-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 860px) {
  .ab-inner { grid-template-columns: 1fr; gap: var(--sp-12); }
}

/* Texto izquierdo */
.ab-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: var(--sp-4);
}

.ab-text h2 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--gray-0);
  margin-bottom: var(--sp-5);
}

.ab-text p {
  font-size: var(--text-base);
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
  max-width: 460px;
}

.ab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.ab-chips .chip {
  opacity: 0.85;
}

/* Pilares derecha */
.ab-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.ab-pillar {
  border-top: 1px solid var(--gray-700);
  padding-top: var(--sp-5);
}

.ab-pillar-num {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--gray-600);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
}

.ab-pillar h4 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--gray-0);
  margin-bottom: var(--sp-2);
}

.ab-pillar p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.6;
}


/* ══════════════════════════════
   BÚSQUEDA (buscar.php)
══════════════════════════════ */
.search-hero { padding: var(--sp-12) 0 var(--sp-10); }
.search-hero h1 { font-size: var(--text-2xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-2); }
.search-hero p  { color: var(--text-muted); font-size: var(--text-sm); }
