/* ==========================================================================
   Calculadora de Falsos Autónomos y Cesión Ilegal (Art. 43 ET)
   Diseño canónico corporativo Fijate Tools (Dark / Light Theme)
   ========================================================================== */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta Base Light */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #e2e8f0;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;

  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --purple: #7c3aed;
  --purple-bg: #f3e8ff;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --radius-md: 10px;
  --radius-lg: 14px;
}

[data-theme="dark"] {
  --bg-page: #0b0f17;
  --bg-card: #131b2e;
  --bg-card-subtle: #1a243b;
  --bg-card-hover: #22304e;
  --border-color: #24324f;
  --border-focus: #60a5fa;

  --text-main: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: rgba(59, 130, 246, 0.15);

  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.15);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --purple: #a855f7;
  --purple-bg: rgba(168, 85, 247, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
}

/* Reset y Contención */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.mono, code, .price-val {
  font-family: var(--font-mono);
}

/* Layout Canónico */
.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  width: 100%;
  flex: 1 0 auto;
}

.tool-with-sidebar {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.tool-main-content {
  flex: 1;
  min-width: 0;
}

.tool-ad-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Header de la Suite Jurídica */
.suite-hero {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.suite-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.legal-badge.accent {
  background: var(--purple-bg);
  color: var(--purple);
  border-color: rgba(168, 85, 247, 0.25);
}

.suite-title {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.suite-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 850px;
}

/* Selector de Presets */
.preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
}

.preset-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.preset-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  max-width: 480px;
}

/* Navegación por Pestañas (Tabs) */
.nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-subtle);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content .tab-pane {
  display: none;
}

.tab-content .tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Score y Semáforo Pericial */
.pericial-score-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.score-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.score-figure-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.score-figure-num {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}

.score-figure-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verdict-box {
  flex: 1;
  min-width: 260px;
}

.verdict-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.verdict-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Colores de Diagnóstico */
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }

/* Barra de progreso pericial */
.score-progress-track {
  width: 100%;
  height: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.score-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-progress-fill.danger { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.score-progress-fill.warning { background: linear-gradient(90deg, #3b82f6, #f59e0b); }
.score-progress-fill.info { background: #3b82f6; }
.score-progress-fill.success { background: #22c55e; }

/* Mini bloques de barras */
.block-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.block-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.block-stat-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.block-stat-track {
  height: 6px;
  background: var(--bg-card);
  border-radius: 9999px;
  overflow: hidden;
}

.block-stat-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Alerta de Cesión Ilegal */
.cesion-alert-box {
  display: none;
  background: var(--purple-bg);
  border: 1px solid var(--purple);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text-main);
  animation: fadeIn 0.3s ease;
}

.cesion-alert-icon {
  flex-shrink: 0;
  color: var(--purple);
  margin-top: 0.15rem;
}

.cesion-alert-content h4 {
  font-size: 1.05rem;
  color: var(--purple);
  margin-bottom: 0.25rem;
}

.cesion-alert-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Bloques del Cuestionario */
.indicia-block-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.indicia-block-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}

.block-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.badge-dependencia { background: #fee2e2; color: #b91c1c; }
.badge-ajenidad { background: #fef3c7; color: #b45309; }
.badge-exclusividad { background: #dbeafe; color: #1d4ed8; }
.badge-cesion { background: #f3e8ff; color: #6b21a8; }

[data-theme="dark"] .badge-dependencia { background: rgba(239,68,68,0.2); color: #fca5a5; }
[data-theme="dark"] .badge-ajenidad { background: rgba(245,158,11,0.2); color: #fcd34d; }
[data-theme="dark"] .badge-exclusividad { background: rgba(59,130,246,0.2); color: #93c5fd; }
[data-theme="dark"] .badge-cesion { background: rgba(168,85,247,0.2); color: #d8b4fe; }

.indicia-block-title {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.indicia-block-desc {
  font-size: 0.84rem;
  color: var(--text-subtle);
}

.indicia-questions-list {
  padding: 0.5rem 1.25rem;
}

.question-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.question-item:last-child {
  border-bottom: none;
}

.question-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.question-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-subtle);
  background: var(--bg-card-subtle);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.question-text-box {
  flex: 1;
}

.question-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  cursor: pointer;
}

.question-subtext {
  display: block;
  font-size: 0.82rem;
  color: var(--text-subtle);
  line-height: 1.35;
}

/* Reglas de Formularios y Desplegables (Móvil y Desktop) */
.form-select,
.form-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}

.form-select option {
  background-color: var(--bg-card);
  color: var(--text-main);
  white-space: normal;
  padding: 6px;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Formulario Económico */
.economic-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.input-suffix-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
}

.input-suffix-wrap .form-input {
  border: none;
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  border-radius: 0;
}

.input-suffix-wrap .input-suffix {
  padding: 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--bg-card-subtle);
  border-left: 1px solid var(--border-color);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Dashboard de KPIs Económicos */
.kpi-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.kpi-card.highlight {
  border-color: var(--primary);
  background: var(--primary-light);
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.kpi-card.highlight .kpi-value {
  color: var(--primary);
}

.kpi-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Tablas de Desglose */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-table th {
  background: var(--bg-card-subtle);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover {
  background: var(--bg-card-subtle);
}

.text-right { text-align: right; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }

/* Timeline y Hoja de Ruta Procesal */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.roadmap-step {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--primary);
}

.step-body {
  flex: 1;
}

.step-tag-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.step-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.badge-fatal { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--primary-light); color: var(--primary); }

.step-title {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.step-tips-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-tips-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
}

/* Dictamen Pericial A4 */
.report-paper {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.report-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.report-title-box h2 {
  font-size: 1.4rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.report-meta {
  font-size: 0.85rem;
  color: #475569;
}

.report-section {
  margin-bottom: 1.5rem;
}

.report-section-title {
  font-size: 1.1rem;
  color: #0f172a;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

.rep-indicia-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.rep-indicia-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.rep-indicia-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.report-actions-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Botones Corporativos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 40px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-outline-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-outline-danger:hover {
  background: var(--danger-bg);
}

/* Modales Accesibles */
.app-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 23, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.app-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: 1.75rem;
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.app-modal.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: 1.2rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.25rem;
}

.modal-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* FAQs Acordeón SEO */
.tool-faqs-section {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.faq-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg-card-subtle);
  border: none;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  background: var(--bg-card);
}

/* ==========================================================================
   Estilos @media print (Dictamen A4 Imprimible)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .app-header,
  .fijate-footer,
  .tool-ad-sidebar,
  .tools-ad-banner-section,
  .preset-bar,
  .nav-tabs,
  .pericial-score-card,
  .cesion-alert-box,
  .indicia-block-card,
  .economic-form-grid,
  .report-actions-bar,
  .tool-faqs-section,
  .tools-related-section,
  .app-modal {
    display: none !important;
  }

  .tool-layout,
  .card-main,
  .tool-main-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .tab-pane {
    display: none !important;
  }

  #tab-report {
    display: block !important;
  }

  .report-paper {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    color: #000000 !important;
  }

  .report-paper * {
    color: #000000 !important;
  }

  .legal-table th {
    background: #f1f5f9 !important;
    color: #000000 !important;
  }
}

/* ==========================================================================
   Responsive móvil (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .tool-layout {
    margin: 1rem auto 2rem;
    padding: 0 0.75rem;
  }

  .card-main {
    padding: 1rem;
  }

  .suite-title {
    font-size: 1.35rem;
  }

  .preset-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .preset-controls {
    max-width: 100%;
    width: 100%;
  }

  .score-main-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .score-figure-box {
    width: 100%;
  }

  .verdict-box {
    width: 100%;
  }

  .question-header {
    flex-direction: column;
    gap: 0.35rem;
  }

  .question-num {
    display: none;
  }

  .form-select,
  .form-input,
  .btn {
    width: 100%;
    min-height: 40px;
  }

  .roadmap-step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .report-paper {
    padding: 1.25rem;
  }

  .report-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
