/* ==========================================================================
   Calculadora de «¿Reparo o compro nuevo?» - Fijate Tools
   Estilos corporativos canónicos, modo claro/oscuro y diseño adaptable
   ========================================================================== */

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

  /* Colores base semánticos */
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #0284c7;

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

  --color-primary: #0284c7;
  --color-primary-hover: #0369a1;
  --color-primary-soft: rgba(2, 132, 199, 0.1);

  /* Semáforos de veredicto */
  --verdict-repair-bg: #ecfdf5;
  --verdict-repair-border: #10b981;
  --verdict-repair-text: #065f46;
  --verdict-repair-badge: #059669;

  --verdict-doubt-bg: #fffbeb;
  --verdict-doubt-border: #f59e0b;
  --verdict-doubt-text: #92400e;
  --verdict-doubt-badge: #d97706;

  --verdict-replace-bg: #fef2f2;
  --verdict-replace-border: #ef4444;
  --verdict-replace-text: #991b1b;
  --verdict-replace-badge: #dc2626;

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

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --bg-primary: #0b0f17;
  --bg-card: #151d2a;
  --bg-card-subtle: #1c2637;
  --bg-input: #0f1622;
  --border-color: #27354a;
  --border-focus: #38bdf8;

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

  --color-primary: #38bdf8;
  --color-primary-hover: #7dd3fc;
  --color-primary-soft: rgba(56, 189, 248, 0.15);

  --verdict-repair-bg: rgba(16, 185, 129, 0.12);
  --verdict-repair-border: #059669;
  --verdict-repair-text: #6ee7b7;
  --verdict-repair-badge: #10b981;

  --verdict-doubt-bg: rgba(245, 158, 11, 0.12);
  --verdict-doubt-border: #d97706;
  --verdict-doubt-text: #fcd34d;
  --verdict-doubt-badge: #f59e0b;

  --verdict-replace-bg: rgba(239, 68, 68, 0.12);
  --verdict-replace-border: #dc2626;
  --verdict-replace-text: #fca5a5;
  --verdict-replace-badge: #ef4444;

  --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 15px -3px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Contención básica
   ========================================================================== */
body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.hero-verdict-title,
.card-section-title,
.guide-title {
  font-family: var(--font-heading);
}

.mono,
.kpi-value,
.threshold-val,
.code-num {
  font-family: var(--font-mono);
}

.main-wrapper.tool-layout {
  max-width: 1200px;
  width: 100%;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* ==========================================================================
   Cabecera de introducción y selector de categorías
   ========================================================================== */
.tool-intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.intro-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1.25rem 0;
}

.intro-lead strong {
  color: var(--text-main);
}

/* Chips de categoría */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.category-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 42px;
}

.category-tab-btn:hover {
  background: var(--bg-card);
  border-color: var(--color-primary);
  color: var(--text-main);
}

.category-tab-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Selector de aparatos (Grid) */
.device-selector-wrapper {
  margin-top: 1.25rem;
}

.device-selector-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}

.device-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 70px;
}

.device-chip:hover {
  border-color: var(--color-primary);
  color: var(--text-main);
  transform: translateY(-2px);
}

.device-chip.active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--color-primary);
}

.device-chip-name {
  font-size: 0.82rem;
  line-height: 1.25;
}

/* ==========================================================================
   Panel principal de configuración y cockpit
   ========================================================================== */
.card-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-and-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .config-and-results-grid {
    grid-template-columns: 1fr;
  }
}

/* Formulario de entradas */
.panel-config {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
  margin-bottom: 0.25rem;
}

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

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
}

/* Grupos de formularios */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.input-with-suffix {
  display: flex;
  align-items: stretch;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
  min-height: 44px;
}

.input-with-suffix:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.input-field {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  min-height: 44px;
  box-sizing: border-box;
}

.input-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  background: var(--bg-card-subtle);
  border-left: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  user-select: none;
}

/* Desplegables <select> conforme a estándares canónicos */
.select-custom {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 2.5rem 0.65rem 0.85rem;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-input);
  color: var(--text-main);
  appearance: none;
  -webkit-appearance: none;
  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 0.85rem center;
  background-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
}

.select-custom:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.select-custom option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

/* Sliders con barra táctil */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-card-subtle);
  outline: none;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Averías comunes rápidas (Chips) */
.failures-quick-picker {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.failures-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.failures-chips-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.failure-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 36px;
}

.failure-chip-btn:hover {
  background: var(--bg-card);
  border-color: var(--color-primary);
  color: var(--text-main);
}

.failure-chip-btn.active {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.failure-price-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   Cockpit de Resultados
   ========================================================================== */
.panel-results {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Tarjeta Hero de Veredicto */
.verdict-hero-card {
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.verdict-hero-card.verdict-repair {
  background: var(--verdict-repair-bg);
  border-color: var(--verdict-repair-border);
}

.verdict-hero-card.verdict-doubt {
  background: var(--verdict-doubt-bg);
  border-color: var(--verdict-doubt-border);
}

.verdict-hero-card.verdict-replace {
  background: var(--verdict-replace-bg);
  border-color: var(--verdict-replace-border);
}

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

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.verdict-repair .verdict-badge {
  background: var(--verdict-repair-badge);
}

.verdict-doubt .verdict-badge {
  background: var(--verdict-doubt-badge);
}

.verdict-replace .verdict-badge {
  background: var(--verdict-replace-badge);
}

.hero-verdict-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 800;
}

.verdict-repair .hero-verdict-title { color: var(--verdict-repair-text); }
.verdict-doubt .hero-verdict-title { color: var(--verdict-doubt-text); }
.verdict-replace .hero-verdict-title { color: var(--verdict-replace-text); }

.hero-verdict-summary {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 0.95;
}

/* Barra de umbral comparativo (Presupuesto vs C_max) */
.threshold-comparator-box {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .threshold-comparator-box {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.threshold-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.threshold-bar-track {
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 7px;
  position: relative;
  overflow: visible;
}

[data-theme="dark"] .threshold-bar-track {
  background: rgba(255, 255, 255, 0.1);
}

.threshold-bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.4s ease, background-color 0.3s;
}

.threshold-marker-limit {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 3px;
  background: #0f172a;
  border-radius: 2px;
  z-index: 2;
}

[data-theme="dark"] .threshold-marker-limit {
  background: #ffffff;
}

.threshold-bar-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Gráfico de la Curva de la Bañera (Bathtub Curve SVG)
   ========================================================================== */
.bathtub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

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

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

.bathtub-svg-container {
  width: 100%;
  height: auto;
  min-height: 140px;
}

.bathtub-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.bathtub-phase-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  font-size: 0.85rem;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

/* ==========================================================================
   Rejilla de KPIs analíticos
   ========================================================================== */
.kpis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .kpis-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kpi-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.kpi-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Tarjeta legal de repuestos (10 años RD-ley 7/2021) */
.legal-banner-card {
  background: var(--bg-card);
  border-left: 4px solid var(--color-primary);
  border: 1px solid var(--border-color);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.legal-banner-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.legal-banner-content {
  flex: 1;
}

.legal-banner-title {
  margin: 0 0 0.35rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.legal-banner-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   Botones de acción rápida e informe
   ========================================================================== */
.action-buttons-strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary-action,
.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-primary-action {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #ffffff;
  flex: 1 1 auto;
}

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

.btn-secondary-action {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  flex: 1 1 auto;
}

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

/* ==========================================================================
   Modales accesibles (Sin window.alert)
   ========================================================================== */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.custom-modal-backdrop.active {
  display: flex;
}

.custom-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

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

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-subtle);
}

.modal-body {
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-card-subtle);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.report-copy-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: var(--text-main);
  max-height: 250px;
  overflow-y: auto;
}

/* Toast de confirmación */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Guía técnica y acordeón SEO
   ========================================================================== */
.seo-guide-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.guide-main-title {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.guide-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.guide-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .guide-grid-2col {
    grid-template-columns: 1fr;
  }
}

.guide-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.guide-box-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.guide-box p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Acordeón FAQ canónico */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

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

.faq-item:hover {
  border-color: var(--text-dim);
}

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

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

.faq-summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}

details[open] .faq-summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: 0.25rem;
  padding-top: 0.85rem;
}

/* ==========================================================================
   Ajustes de impresión (@media print)
   ========================================================================== */
@media print {
  .app-header,
  .tools-ad-banner-section,
  .tool-ad-sidebar,
  .fijate-footer,
  .action-buttons-strip,
  .category-tabs,
  .device-selector-wrapper,
  .custom-modal-backdrop,
  .tools-related-section,
  .affiliate-section {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

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

  .config-and-results-grid {
    grid-template-columns: 1fr !important;
  }

  .verdict-hero-card {
    border: 2px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .hero-verdict-title {
    color: #000000 !important;
  }
}
