/**
 * Sonómetro digital y analizador de decibelios con micrófono
 * Estilos canónicos de fijate.com
 */

:root {
  --bg-page: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-subtle: #1a243b;
  --border-color: #23314f;
  --border-focus: #38bdf8;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-accent: #38bdf8;
  --text-dim: #64748b;

  --color-safe: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-purple: #a855f7;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #0284c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-accent: #0284c7;
  --text-dim: #64748b;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Modo atenuado para dormitorio / vigilancia nocturna */
body.night-watch-dimmed {
  filter: brightness(0.45) contrast(0.95);
  transition: filter 0.4s ease;
}

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

/* Layout de la herramienta */
.tool-layout {
  max-width: 1200px;
  width: 100%;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.tool-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1536px) {
  .tool-with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

.tool-main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* Tarjeta de bienvenida */
.card-intro {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-accent);
  background: rgba(56, 189, 248, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-accent);
  box-shadow: 0 0 8px var(--text-accent);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

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

/* Tarjeta principal del sonómetro */
.meter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Cabecera del sonómetro */
.meter-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.mic-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #64748b;
  transition: all 0.3s ease;
}

.status-dot.is-active {
  background-color: var(--color-safe);
  box-shadow: 0 0 10px var(--color-safe);
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.meter-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Botón de acción principal del micrófono */
.btn-mic-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 42px;
  padding: 0.5rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-mic-toggle:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transform: translateY(-1px);
}

.btn-mic-toggle.is-active {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.btn-reset-metrics {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.5rem 1rem;
  font-family: var(--font-base);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.btn-reset-metrics:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
}

/* Sección central: Visualizador radial y valor numérico */
.meter-visual-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .meter-visual-area {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.gauge-canvas-box {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Pantalla numérica en JetBrains Mono */
.digits-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.weighting-badge {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-accent);
  background: rgba(56, 189, 248, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.digits-unit-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.digits-value-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
}

.digits-big {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.digits-unit {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Cuadrícula de métricas complementarias */
.metrics-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

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

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

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Semáforo acústico OMS */
.oms-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  background: var(--bg-card-subtle);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.oms-indicator-bar {
  width: 6px;
  height: 100%;
  min-height: 48px;
  border-radius: 4px;
  background-color: var(--text-dim);
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.oms-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.oms-badge-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

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

/* Estados del semáforo OMS */
.oms-card.status-safe {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}
.oms-card.status-safe .oms-indicator-bar {
  background-color: var(--color-safe);
  box-shadow: 0 0 10px var(--color-safe);
}
.oms-card.status-safe .oms-badge-title {
  color: var(--color-safe);
}

.oms-card.status-warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
}
.oms-card.status-warning .oms-indicator-bar {
  background-color: var(--color-warning);
  box-shadow: 0 0 10px var(--color-warning);
}
.oms-card.status-warning .oms-badge-title {
  color: var(--color-warning);
}

.oms-card.status-danger {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.08);
  animation: pulseCard 1.5s infinite;
}
.oms-card.status-danger .oms-indicator-bar {
  background-color: var(--color-danger);
  box-shadow: 0 0 12px var(--color-danger);
}
.oms-card.status-danger .oms-badge-title {
  color: var(--color-danger);
}

@keyframes pulseCard {
  0%, 100% { border-color: rgba(239, 68, 68, 0.5); }
  50% { border-color: rgba(239, 68, 68, 0.9); }
}

/* Gráfico de historial temporal continuo */
.history-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-card);
}

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

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

.history-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.history-canvas-box {
  width: 100%;
  height: 180px;
  position: relative;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.history-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Panel de controles acústicos: Ponderación, tiempo y calibración */
.controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .controls-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.control-panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-card-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.btn-toggle-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-family: var(--font-base);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.btn-toggle-option.is-active {
  background: var(--bg-card);
  color: var(--text-accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.control-caption {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

/* Deslizador de calibración */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.slider-val-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-accent);
}

input[type="range"] {
  width: 100%;
  height: 8px;
  background: var(--bg-card-subtle);
  border-radius: 4px;
  outline: none;
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-accent);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  border: 2px solid #ffffff;
}

.preset-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.btn-preset {
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
  text-align: center;
  padding: 0.4rem 0.5rem;
}

.btn-preset:hover {
  border-color: var(--border-focus);
  color: var(--text-main);
}

/* Panel de Modo vigilante de ruido nocturno */
.night-watch-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.night-watch-panel.is-active {
  border-color: rgba(168, 85, 247, 0.45);
}

.night-watch-panel.flash-incident {
  animation: flashPurple 0.8s ease;
}

@keyframes flashPurple {
  0% { background: rgba(168, 85, 247, 0.25); }
  100% { background: var(--bg-card); }
}

.night-watch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.night-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.night-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
}

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

.night-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}

/* Switch toggle */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  touch-action: manipulation;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  background-color: #334155;
  border-radius: 13px;
  transition: 0.3s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch-input:checked + .switch-slider {
  background-color: var(--color-purple);
}

.switch-input:checked + .switch-slider:before {
  transform: translateX(22px);
}

/* Opciones del vigilante nocturno */
.night-options-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .night-options-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.btn-dim-screen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.btn-dim-screen.is-active {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border-color: #a855f7;
}

/* Tabla y listado de incidentes */
.incidents-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.incidents-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.incident-badge-counter {
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
  border-radius: 9999px;
}

.incidents-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 220px;
  overflow-y: auto;
}

.incident-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-purple);
  font-size: 0.85rem;
}

.inc-time {
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.inc-db {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-danger);
}

.inc-db small {
  color: var(--text-dim);
  font-weight: 500;
}

.inc-duration {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.empty-incidents {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-align: center;
  margin: 1.5rem 0;
}

.night-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-report-action {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.btn-report-action:hover {
  border-color: var(--border-focus);
  background: var(--bg-card);
}

/* Modales canónicos personalizados (Cero alerts) */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

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

.modal-icon-alert {
  color: var(--color-warning);
}

.modal-icon-error {
  color: var(--color-danger);
}

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

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

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

.btn-modal-cancel {
  min-height: 40px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  touch-action: manipulation;
}

.btn-modal-confirm {
  min-height: 40px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--color-danger);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  touch-action: manipulation;
}

/* Toast de aviso */
.toast-box {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-box.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Guía técnica y educativa SEO */
.card-guide {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.guide-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--text-main);
}

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

.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.guide-table th, .guide-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.guide-table th {
  font-family: var(--font-heading);
  color: var(--text-accent);
  background: var(--bg-card-subtle);
}

/* Acordeón FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.4rem 0;
  outline: none;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  padding-top: 0.5rem;
}
