:root {
  --brand-dark: #1a524f;
  --brand-primary: #2e7d32;
  --brand-accent: #4caf50;
}

/* Hero moderno y sobrio */
.hero {
  /* Layout & caja */
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: clamp(1.25rem, 2vw + 1rem, 3rem);

  /* Fondo con luz sutil + gradiente de marca */
  background: radial-gradient(
      1200px 600px at -10% -10%,
      rgba(255, 255, 255, 0.14),
      transparent 60%
    ),
    radial-gradient(
      800px 400px at 120% -10%,
      rgba(255, 255, 255, 0.1),
      transparent 55%
    ),
    linear-gradient(
      135deg,
      var(--brand-dark) 0%,
      var(--brand-primary) 55%,
      var(--brand-accent) 100%
    );

  color: #fff;

  /* Borde fino para “definir” el bloque */
  border: 1px solid rgba(255, 255, 255, 0.14);

  /* Sombra realista (tu `box-shadow: 10px` no era válido) */
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 8px 12px rgba(0, 0, 0, 0.12);

  /* Sutil interacción */
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22), 0 10px 16px rgba(0, 0, 0, 0.12);
  }
}

/* Detalles tipográficos sugeridos (opcionales) */
.hero .hero-title {
  margin: 0 0 0.4rem 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.hero .hero-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
}

/* Botones claros sobre fondo oscuro (opcional si usas Bootstrap) */
.hero .btn-light {
  color: #123;
}

:root {
  --brand-900: #0f3a38;
  --brand-800: #1a524f;
  /* primario */
  --brand-600: #2e7d32;
  /* acento */
  --brand-400: #4caf50;
  /* énfasis */
  --brand-100: #e8f5e9;
  --card-radius: 16px;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 16px 42px rgba(0, 0, 0, 0.12);
}

/* Card base */
.card.modern-card {
  border: 0;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.card.modern-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

/* Borde superior sutil con gradiente de marca */
.card.modern-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-800), var(--brand-400));
}

/* Título y subtítulos */
.card.modern-card .card-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.card.modern-card .card-subtitle,
.card.modern-card .text-muted {
  color: #6b7280 !important;
  /* neutral 500 */
}

/* Badges suaves */
.badge-soft {
  background: rgba(46, 125, 50, 0.08);
  color: var(--brand-600);
  border: 1px solid rgba(46, 125, 50, 0.18);
  font-weight: 600;
}

.badge-soft-danger {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.18);
}

/* Icon buttons más “tocables” */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.btn-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.btn-icon:active {
  transform: translateY(0);
}

.btn-icon.edit {
  color: var(--brand-800);
}

.btn-icon.delete {
  color: #b91c1c;
}

/* Separadores y layout interno */
.card.modern-card .card-body {
  padding: 1rem 1rem 1rem 1rem;
}

@media (min-width: 992px) {
  .card.modern-card .card-body {
    padding: 1.1rem 1.1rem 1.1rem 1.1rem;
  }
}

.card-line {
  margin: 0.5rem 0 0.75rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
}

/* Estado “hoverable” en el link de detalles */
.card.modern-card a.text-decoration-none {
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.card.modern-card a.text-decoration-none:hover {
  color: var(--brand-800);
  border-color: var(--brand-400);
}

/* Foco accesible */
.card.modern-card :is(button, a):focus-visible {
  outline: 3px solid rgba(76, 175, 80, 0.35);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Dark mode (Bootstrap 5.3 data-bs-theme) */
[data-bs-theme="dark"] .card.modern-card {
  background: linear-gradient(180deg, #0b1212 0%, #0f1616 100%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .card.modern-card::before {
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
}

[data-bs-theme="dark"] .card.modern-card .text-muted {
  color: #9ca3af !important;
}

[data-bs-theme="dark"] .btn-icon {
  background: #0f1616;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

[data-bs-theme="dark"] .btn-icon:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .badge-soft {
  background: rgba(76, 175, 80, 0.12);
  color: #c7f7cd;
  border-color: rgba(76, 175, 80, 0.22);
}

[data-bs-theme="dark"] .badge-soft-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.22);
}

/* Animación respetuosa */
@media (prefers-reduced-motion: reduce) {
  .card.modern-card,
  .btn-icon {
    transition: none;
  }
}
