/* ==========================================================================
   Comprobador de Vehículos Históricos (DGT / Real Decreto 892/2024)
   Hoja de estilos corporativa - Fijate Tools
   ========================================================================== */

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

  /* Tema claro corporativo */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --accent-primary: #0284c7;
  --accent-hover: #0369a1;
  --accent-light: #e0f2fe;

  --status-success: #10b981;
  --status-success-bg: #ecfdf5;
  --status-success-border: #a7f3d0;

  --status-warning: #f59e0b;
  --status-warning-bg: #fffbeb;
  --status-warning-border: #fde68a;

  --status-error: #ef4444;
  --status-error-bg: #fef2f2;
  --status-error-border: #fecaca;

  --status-info: #3b82f6;
  --status-info-bg: #eff6ff;
  --status-info-border: #bfdbfe;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --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.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
}

/* Selector universal obligatorio de tema oscuro (Lección 529) */
[data-theme="dark"],
html.dark,
body.dark {
  --bg-page: #0b0f17;
  --bg-card: #131b26;
  --bg-card-subtle: #1a2434;
  --bg-input: #101623;
  --border-color: #243042;
  --border-subtle: #334155;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-primary: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-light: rgba(56, 189, 248, 0.12);

  --status-success: #34d399;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-border: rgba(16, 185, 129, 0.35);

  --status-warning: #fbbf24;
  --status-warning-bg: rgba(245, 158, 11, 0.15);
  --status-warning-border: rgba(245, 158, 11, 0.35);

  --status-error: #f87171;
  --status-error-bg: rgba(239, 68, 68, 0.15);
  --status-error-border: rgba(239, 68, 68, 0.35);

  --status-info: #60a5fa;
  --status-info-bg: rgba(59, 130, 246, 0.15);
  --status-info-border: rgba(59, 130, 246, 0.35);
}

/* Reset y estructura general */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.hero-vh-title,
.card-title,
.verdict-title,
.diag-card-title,
.savings-title,
.checklist-title,
.faq-section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-top: 0;
}

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

/* Layout canónico de la suite */
.main-wrapper.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
  width: 100%;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

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

/* Hero card de introducción */
.hero-vh-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-vh-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #f59e0b);
}

.hero-vh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-success);
  display: inline-block;
  box-shadow: 0 0 8px var(--status-success);
}

.hero-vh-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.hero-vh-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
  max-width: 900px;
}

.quick-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.quick-kpi-item {
  display: flex;
  flex-direction: column;
}

.kpi-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.kpi-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Tarjeta principal del formulario */
.card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.card-header-clean {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.card-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* Estructura de secciones en pasos */
.form-section-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
}

.section-badge-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

[data-theme="dark"] .step-num {
  color: #0b0f17;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

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

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Controles de formulario responsivos y accesibles */
.form-input,
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Desplegables <select> conforme a estándares canónicos */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  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 14px center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

[data-theme="dark"] .form-select {
  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='%2394a3b8' 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");
}

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

/* Selector de fecha adaptado a tema oscuro */
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.9);
}

/* Indicador de edad en vivo */
.live-age-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

.age-icon {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
}

.age-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.age-status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.age-status-pill.pill-pass {
  background: var(--status-success-bg);
  color: var(--status-success);
  border-color: var(--status-success-border);
}

.age-status-pill.pill-wait {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border-color: var(--status-warning-border);
}

/* Radio cards */
.radio-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.radio-card input[type="radio"] {
  margin-top: 0.2rem;
  accent-color: var(--accent-primary);
}

.radio-card:has(input:checked) {
  border-color: var(--accent-primary);
  background-color: var(--accent-light);
}

.radio-card-content {
  display: flex;
  flex-direction: column;
}

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

.radio-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Botón principal de acción */
.form-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-primary-vh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.6rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.15s ease, transform 0.08s ease;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.btn-primary-vh:hover {
  background: #0369a1;
}

.btn-primary-vh:active {
  transform: translateY(1px);
}

[data-theme="dark"] .btn-primary-vh {
  background: #38bdf8;
  color: #0b0f17;
  font-weight: 700;
}

[data-theme="dark"] .btn-primary-vh:hover {
  background: #7dd3fc;
}

/* Panel de Resultados y Diagnóstico */
.vh-results-panel {
  margin-top: 2rem;
  scroll-margin-top: 90px;
}

/* Semáforo de veredicto */
.vh-verdict-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.vh-verdict-card.verdict-pass {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
}

.vh-verdict-card.verdict-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
}

.vh-verdict-card.verdict-wait {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
}

.vh-verdict-card.verdict-fail {
  background: var(--status-error-bg);
  border-color: var(--status-error-border);
}

.verdict-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verdict-pass .verdict-icon-box {
  background: var(--status-success);
  color: #ffffff;
}

.verdict-warn .verdict-icon-box {
  background: var(--status-warning);
  color: #ffffff;
}

.verdict-wait .verdict-icon-box {
  background: var(--status-info);
  color: #ffffff;
}

.verdict-fail .verdict-icon-box {
  background: var(--status-error);
  color: #ffffff;
}

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

.verdict-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.verdict-pass .verdict-tag { color: var(--status-success); }
.verdict-warn .verdict-tag { color: var(--status-warning); }
.verdict-wait .verdict-tag { color: var(--status-info); }
.verdict-fail .verdict-tag { color: var(--status-error); }

.verdict-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.verdict-summary {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0;
}

/* Cuadrícula de 4 tarjetas de diagnóstico */
.vh-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.vh-diag-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.diag-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
}

.diag-card-icon {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
}

.diag-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.diag-card-body {
  padding: 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.highlight-metric-box {
  display: flex;
  flex-direction: column;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.diag-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.diag-detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.45rem;
}

.diag-detail-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-highlight {
  font-weight: 700;
  color: var(--status-success);
}

.diag-text-block {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem 0;
  line-height: 1.5;
}

.diag-zbe-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* Distintivo adhesivo oficial circular amarillo "H" */
.vh-badge-preview-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.vh-sticker-yellow {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffcc00;
  border: 4px solid #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  position: relative;
}

.vh-sticker-yellow::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 10px;
  width: 20px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-30deg);
}

.sticker-letter {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #111827;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.sticker-info {
  display: flex;
  flex-direction: column;
}

.sticker-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.sticker-size {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.sticker-place {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Caja de ahorro acumulado a 10 años */
.vh-savings-comparison-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.savings-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.savings-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.savings-col {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
}

.savings-col.net-savings {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
}

.col-head {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.col-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.col-cost-box {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.col-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.savings-col.net-savings .col-num {
  color: var(--status-success);
}

.col-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.savings-footer-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 1.25rem 0 0 0;
  line-height: 1.5;
  border-top: 1px dashed var(--border-color);
  padding-top: 0.85rem;
}

/* Caja de checklist oficial */
.vh-checklist-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.checklist-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  color: var(--accent-primary);
}

.checklist-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.checklist-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem 0;
}

.checklist-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
}

.check-item strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.check-item span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.check-box-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

[data-theme="dark"] .check-box-icon {
  color: #0b0f17;
}

.checklist-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-dgt-external,
.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  min-height: 42px;
  transition: all 0.15s ease;
}

.btn-dgt-external {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
}

[data-theme="dark"] .btn-dgt-external {
  color: #0b0f17;
}

.btn-dgt-external:hover {
  background: var(--accent-hover);
}

.btn-secondary-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

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

/* Preguntas frecuentes (FAQ Accordion) */
.faq-section-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.faq-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.faq-section-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--border-subtle);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* Área de impresión formal A4 (oculta en pantalla) */
.print-dossier-area {
  display: none;
}

/* Toast flotante accesible (cero window.alert) */
.vh-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .vh-toast {
  background: #f1f5f9;
  color: #0f172a;
}

.vh-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Clases de espaciado utilitarias */
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1rem; }

/* Responsive móvil y tablet */
@media (max-width: 900px) {
  .vh-cards-grid,
  .savings-columns-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .form-grid-2,
  .radio-cards-grid {
    grid-template-columns: 1fr;
  }

  .card-main,
  .hero-vh-card,
  .faq-section-box,
  .vh-savings-comparison-box,
  .vh-checklist-box {
    padding: 1.25rem 1rem;
  }

  .hero-vh-title {
    font-size: 1.4rem;
  }

  .form-actions-bar {
    width: 100%;
  }

  .btn-primary-vh {
    width: 100%;
  }

  .checklist-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-dgt-external,
  .btn-secondary-outline {
    width: 100%;
    justify-content: center;
  }
}

/* Reglas de impresión pericial oficial A4 */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  .app-header,
  .tools-ad-banner-section,
  .tool-ad-sidebar,
  .hero-vh-card,
  .card-main,
  .vh-results-panel,
  .affiliate-showcase-section,
  .faq-section-box,
  .related-tools-section,
  .fijate-footer,
  .vh-toast {
    display: none !important;
  }

  .main-wrapper.tool-layout {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tool-with-sidebar,
  .tool-main-content {
    display: block !important;
    width: 100% !important;
  }

  .print-dossier-area {
    display: block !important;
    padding: 1.5cm 1cm;
    font-family: 'Inter', system-ui, sans-serif;
    color: #0f172a;
  }

  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  .print-title {
    font-size: 16pt;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #0f172a;
  }

  .print-subtitle {
    font-size: 10pt;
    color: #475569;
  }

  .print-meta {
    text-align: right;
    font-size: 9pt;
    color: #64748b;
    display: flex;
    flex-direction: column;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5pt;
    margin-bottom: 14px;
  }

  .print-table th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
  }

  .print-table td {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    vertical-align: top;
  }

  .lbl-col {
    width: 38%;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
  }

  .val-col {
    color: #0f172a;
  }

  .print-seal-box {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8.5pt;
    color: #64748b;
  }

  .seal-legend {
    max-width: 65%;
  }

  .seal-stamp {
    font-size: 9pt;
    font-weight: 700;
    border: 1.5px solid #0f172a;
    padding: 6px 12px;
    border-radius: 4px;
    color: #0f172a;
  }
}
