/* ============================================================
   Hero Metrics — Tarjetas de navegación con métricas destacadas
   ============================================================ */

.hm-section {
  background: #ffffff;
}

/* Encabezado */
.hm-heading {
  color: #111827;
}
.hm-subheading {
  color: #6b7280;
}

/* Grid — 5 columnas en desktop, 3 en tablet, 2 en móvil grande, 1 en móvil */
.hm-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  max-width: 90rem;
  margin: 0 auto;
}
/* 5 items: en pantallas medias usar 3 col (2 últimas centradas) */
@media (max-width: 1200px) {
  .hm-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
  }
  .hm-card { grid-column: span 2; }
  .hm-card:nth-child(4) { grid-column: 2 / span 2; }
  .hm-card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 900px) {
  .hm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .hm-card { grid-column: span 1; }
  .hm-card:nth-child(4) { grid-column: span 1; }
  .hm-card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 600px) {
  .hm-grid { grid-template-columns: 1fr; }
}

/* Tarjeta base */
.hm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.hm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Barra de acento */
.hm-card__accent {
  height: 5px;
  width: 100%;
}
.hm-card--blue   .hm-card__accent { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.hm-card--indigo .hm-card__accent { background: linear-gradient(90deg, #6366f1, #4f46e5); }
.hm-card--emerald .hm-card__accent { background: linear-gradient(90deg, #10b981, #059669); }
.hm-card--teal   .hm-card__accent { background: linear-gradient(90deg, #14b8a6, #0d9488); }
.hm-card--orange .hm-card__accent { background: linear-gradient(90deg, #f97316, #ea580c); }

/* Cabecera: icono + métrica */
.hm-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem 1.5rem;
}

/* Círculo del icono */
.hm-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hm-card--blue   .hm-card__icon-wrap { background: #eff6ff; }
.hm-card--indigo .hm-card__icon-wrap { background: #eef2ff; }
.hm-card--emerald .hm-card__icon-wrap { background: #ecfdf5; }
.hm-card--teal   .hm-card__icon-wrap { background: #f0fdfa; }
.hm-card--orange .hm-card__icon-wrap { background: #fff7ed; }

.hm-card__icon {
  font-size: 1.35rem;
}
.hm-card--blue   .hm-card__icon { color: #2563eb; }
.hm-card--indigo .hm-card__icon { color: #4f46e5; }
.hm-card--emerald .hm-card__icon { color: #059669; }
.hm-card--teal   .hm-card__icon { color: #0d9488; }
.hm-card--orange .hm-card__icon { color: #ea580c; }

/* Métrica */
.hm-card__metric-wrap {
  text-align: right;
}
.hm-card__metric {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}
.hm-card--blue   .hm-card__metric { color: #2563eb; }
.hm-card--indigo .hm-card__metric { color: #4f46e5; }
.hm-card--emerald .hm-card__metric { color: #059669; }
.hm-card--teal   .hm-card__metric { color: #0d9488; }
.hm-card--orange .hm-card__metric { color: #ea580c; }

.hm-card__metric-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Cuerpo */
.hm-card__body {
  flex: 1;
  padding: 0.5rem 1.5rem 1rem 1.5rem;
}
.hm-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.hm-card__desc {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.55;
}

/* Footer CTA */
.hm-card__footer {
  padding: 0.75rem 1.5rem 1.25rem 1.5rem;
  border-top: 1px solid #f3f4f6;
}
.hm-card__cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.hm-card--blue   .hm-card__cta { color: #2563eb; }
.hm-card--indigo .hm-card__cta { color: #4f46e5; }
.hm-card--emerald .hm-card__cta { color: #059669; }
.hm-card--teal   .hm-card__cta { color: #0d9488; }
.hm-card--orange .hm-card__cta { color: #ea580c; }

.hm-card__cta-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}
.hm-card:hover .hm-card__cta-arrow {
  transform: translateX(4px);
}

/* Animación de entrada */
@keyframes hmFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hm-card {
  animation: hmFadeUp 0.5s ease-out both;
}
.hm-card:nth-child(1) { animation-delay: 0.05s; }
.hm-card:nth-child(2) { animation-delay: 0.12s; }
.hm-card:nth-child(3) { animation-delay: 0.19s; }
.hm-card:nth-child(4) { animation-delay: 0.26s; }
.hm-card:nth-child(5) { animation-delay: 0.33s; }
