/* ==========================================================================
   Calculadora de ratio y extracción de café - Estilos Canónicos
   Paleta Midnight Slate con acentos cálidos de café de especialidad
   ========================================================================== */

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

  /* Paleta café de especialidad (Tostado miel y ámbar espresso) */
  --primary-color: #d97706;
  --primary-hover: #b45309;
  --primary-light: rgba(217, 119, 6, 0.14);
  --primary-border: rgba(217, 119, 6, 0.35);

  --accent-coffee: #92400e;
  --accent-foam: #fef3c7;

  /* Tema Oscuro por Defecto (Midnight Slate) */
  --bg-page: #0b0f17;
  --bg-card: #111827;
  --bg-card-alt: #1a2234;
  --bg-input: #1e293b;
  --border-color: #334155;
  --border-subtle: rgba(255, 255, 255, 0.08);

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

  /* Estados semánticos en modo oscuro (Lección 282) */
  --state-success-bg: rgba(34, 197, 94, 0.16);
  --state-success-text: #86efac;
  --state-success-border: rgba(34, 197, 94, 0.35);

  --state-warning-bg: rgba(245, 158, 11, 0.16);
  --state-warning-text: #fde68a;
  --state-warning-border: rgba(245, 158, 11, 0.35);

  --state-danger-bg: rgba(239, 68, 68, 0.16);
  --state-danger-text: #fca5a5;
  --state-danger-border: rgba(239, 68, 68, 0.35);

  --state-info-bg: rgba(56, 189, 248, 0.16);
  --state-info-text: #bae6fd;
  --state-info-border: rgba(56, 189, 248, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
}

/* Modo Claro */
[data-theme="light"],
body.light-theme {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #cbd5e1;
  --border-subtle: rgba(0, 0, 0, 0.06);

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

  --state-success-bg: #dcfce7;
  --state-success-text: #166534;
  --state-success-border: #86efac;

  --state-warning-bg: #fef3c7;
  --state-warning-text: #92400e;
  --state-warning-border: #fcd34d;

  --state-danger-bg: #fee2e2;
  --state-danger-text: #991b1b;
  --state-danger-border: #fca5a5;

  --state-info-bg: #e0f2fe;
  --state-info-text: #075985;
  --state-info-border: #7dd3fc;

  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  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,
.card-header-title,
.stat-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.mono-val,
.stat-num,
.code-badge,
code {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Barra de Suite Unificada de Barismo
   ========================================================================== */
.suite-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.suite-bar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.suite-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-border);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.suite-bar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.suite-tools-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
}

.suite-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 40px;
}

.suite-switch-link:hover {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.suite-switch-link.is-active {
  background: var(--bg-card);
  color: var(--primary-color);
  border-color: var(--primary-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Contenedor Principal y Pestañas
   ========================================================================== */
.card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

.tool-nav-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  background: var(--bg-card-alt);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-tab-btn:hover {
  color: var(--text-main);
}

.nav-tab-btn.is-active {
  background: var(--bg-card);
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.tool-tab-pane.is-active {
  display: block;
  animation: fadeIn 0.2s ease forwards;
}

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

/* Grid de Formulario y Resultados */
.tool-grid-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .tool-grid-dual {
    grid-template-columns: 1fr;
  }
  .tool-nav-tabs {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Controles, Entradas y Botones
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-label-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 400;
}

.input-flex-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.input-flex-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input-flex-wrapper input[type="number"],
.input-flex-wrapper input[type="text"] {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  min-height: 42px;
  background: transparent;
  border: none;
  padding: 0 0.85rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.input-unit {
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-alt);
  min-height: 42px;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border-subtle);
  user-select: none;
  white-space: nowrap;
}

/* Desplegables Select Canónicos */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  min-height: 42px;
  padding: 0 40px 0 0.85rem;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.select-wrapper select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-color: var(--text-muted);
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  pointer-events: none;
}

/* Chips y Botones de Selección Rápida */
.chips-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

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

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

.chip-btn.is-active {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-border);
}

/* ==========================================================================
   Tarjetas Métricas de Resultados
   ========================================================================== */
.results-card-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.metric-hero-box {
  background: linear-gradient(135deg, var(--bg-card-alt) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.metric-hero-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.metric-hero-val {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  font-family: var(--font-heading);
}

.metric-hero-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.stats-grid-quad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-item-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.stat-item-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.stat-item-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.stat-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   Cronómetro y Fases de Vertido
   ========================================================================== */
.pour-timer-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

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

.timer-digits {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.timer-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-timer {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

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

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

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

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

/* Línea de tiempo de fases */
.pour-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.pour-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.pour-step-row.is-current {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

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

.step-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.step-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.step-target {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* ==========================================================================
   Canvas 2D: Coffee Brewing Control Chart
   ========================================================================== */
.canvas-chart-wrapper {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.75rem;
}

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

#brewingChartCanvas {
  width: 100%;
  max-width: 520px;
  height: 340px;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.chart-legend-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ==========================================================================
   Brújula del Sabor (Coffee Compass)
   ========================================================================== */
.compass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.compass-card-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.85rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  min-height: 48px;
}

.compass-card-btn:hover {
  border-color: var(--primary-color);
  background: var(--bg-input);
}

.compass-card-btn.is-active {
  border-color: var(--primary-color);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary-border);
}

.compass-icon-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.compass-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Tarjeta de Diagnóstico Activo */
.diagnosis-panel-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

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

.diagnosis-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success {
  background: var(--state-success-bg);
  color: var(--state-success-text);
  border: 1px solid var(--state-success-border);
}

.badge-warning {
  background: var(--state-warning-bg);
  color: var(--state-warning-text);
  border: 1px solid var(--state-warning-border);
}

.badge-danger {
  background: var(--state-danger-bg);
  color: var(--state-danger-text);
  border: 1px solid var(--state-danger-border);
}

.badge-info {
  background: var(--state-info-bg);
  color: var(--state-info-text);
  border: 1px solid var(--state-info-border);
}

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

.diagnosis-recs-list {
  margin: 0.85rem 0 0 0;
  padding-left: 1.25rem;
  color: var(--text-main);
  font-size: 0.875rem;
  line-height: 1.5;
}

.diagnosis-recs-list li {
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   Modales Canónicos HTML/CSS/JS (Cero window.alert())
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  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 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.btn-close-modal {
  min-height: 40px;
  min-width: 40px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

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

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card-alt);
}

.btn-primary-action {
  min-height: 42px;
  padding: 0 1.25rem;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

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

/* ==========================================================================
   Sección Didáctica SEO Canónica (Lección 316)
   ========================================================================== */
.seo-guide-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.seo-guide-header {
  margin-bottom: 2rem;
  text-align: left;
}

.seo-guide-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

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

.seo-guide-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.seo-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.seo-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.seo-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.seo-step-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.5rem 0;
}

.seo-step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Tabla Estructurada SEO */
.seo-table-wrapper {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.seo-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.seo-data-table th,
.seo-data-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.seo-data-table th {
  background: var(--bg-card-alt);
  color: var(--text-main);
  font-weight: 700;
  font-family: var(--font-heading);
}

.seo-data-table tr:last-child td {
  border-bottom: none;
}

.badge-table {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--bg-card-alt);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Acordeón FAQ Canónico */
.seo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

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

.seo-faq-question:hover {
  color: var(--primary-color);
}

.seo-faq-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
  stroke: var(--text-muted);
}

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

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

.seo-faq-answer p {
  margin: 0;
}
