/* MENTALES — estilos custom complementarios a Tailwind */

:root {
  --shadow-card: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
}

.nav-link.active {
  background: rgba(255,255,255,0.25);
  font-weight: 600;
}

.card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #e0e7ff;
  color: #4338ca;
}

.badge-evidence {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.difficulty-bar {
  display: inline-block;
  width: 60px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
}
.difficulty-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399, #fbbf24, #f87171);
}

details > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0;
}
details[open] > summary {
  margin-bottom: 0.5rem;
}

.prose-mentales h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}
.prose-mentales h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #334155;
}
.prose-mentales p { margin-bottom: 0.75rem; line-height: 1.7; }
.prose-mentales ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 0.75rem; }
.prose-mentales ol { list-style: decimal; margin-left: 1.5rem; margin-bottom: 0.75rem; }

input[type="checkbox"]:checked + label .check-text {
  text-decoration: line-through;
  color: #94a3b8;
}

.print-only { display: none; }

@media print {
  header, footer, nav { display: none !important; }
  .print-only { display: block; }
  body { background: white; }
  .card { box-shadow: none; border: 1px solid #cbd5e1; break-inside: avoid; }
}
