/* ==========================================================================
   Fijate Tools - Calculadora de clamp() fluido para CSS
   style.css - Estilos específicos, diseño responsivo y temas claro/oscuro
   ========================================================================== */

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

  /* Colores temáticos base */
  --bg-primary: #0a0d14;
  --bg-card: #111622;
  --bg-card-subtle: #161c2d;
  --bg-input: #1a2236;
  --bg-hover: #222b42;

  --border-color: #242f49;
  --border-focus: #3b82f6;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.25);

  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #e2e8f0;
  --bg-hover: #cbd5e1;

  --border-color: #e2e8f0;
  --border-focus: #2563eb;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.15);

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 1. Reset y contención canónica */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3, h4, h5, h6,
.brand-title,
.section-title,
.hero-title,
.faq-section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

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

/* 2. Layout canónico con barra lateral */
.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%;
}

/* 3. Hero y cabecera de la herramienta */
.tool-hero-header {
  margin-bottom: 2rem;
  text-align: left;
}

.tool-badge-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: var(--accent-glow);
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

.tool-hero-title {
  font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.tool-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 860px;
  line-height: 1.55;
}

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

.card-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 5. Barra de presets rápidos */
.presets-scroller {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.btn-preset-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-preset-chip.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

/* 6. Cuadrícula de configuración (Grid de dos columnas) */
.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .config-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

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

.col-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-group-field {
  margin-bottom: 1rem;
}

.form-group-field:last-child {
  margin-bottom: 0;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.field-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.input-text-num {
  width: 100%;
  height: 42px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0 0.85rem;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-text-num:focus {
  border-color: var(--border-focus);
}

.input-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background-color: var(--border-color);
  outline: none;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.input-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 42px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0 2.5rem 0 0.85rem;
  font-size: 0.92rem;
  outline: none;
  cursor: pointer;
  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='%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");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-segmented-control {
  display: inline-flex;
  background-color: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.unit-seg-label {
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.unit-seg-label input {
  display: none;
}

.unit-seg-label:has(input:checked) {
  background-color: var(--accent-color);
  color: #ffffff;
}

/* 7. Gran caja de resultado visual */
.clamp-hero-result {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

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

.res-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.formula-display-box {
  background-color: rgba(10, 13, 20, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.28rem);
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .formula-display-box {
  background-color: #0f172a;
  color: #38bdf8;
}

/* KPIs de desglose matemático */
.kpi-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .kpi-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kpi-cell {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* 8. Simulador interactivo de pantalla */
.simulator-panel {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.sim-controls-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.sim-slider-box {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.device-preset-buttons {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.btn-sim-device {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sim-device:hover,
.btn-sim-device.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

.sim-metrics-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sim-zone-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.sim-zone-tag.zone-min {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.sim-zone-tag.zone-fluid {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.sim-zone-tag.zone-max {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* Área de muestra en vivo (Live Preview) */
.live-preview-box-card {
  background-color: var(--bg-primary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.live-preview-sample-text {
  color: var(--text-primary);
  font-weight: 700;
  text-align: center;
  max-width: 900px;
  transition: font-size 0.05s linear;
}

.live-preview-boxes-container {
  display: none;
  width: 100%;
  border: 2px solid var(--accent-color);
  border-radius: var(--radius-sm);
  background-color: rgba(59, 130, 246, 0.05);
}

.live-preview-inner-box {
  background-color: var(--accent-color);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  flex: 1;
  text-align: center;
}

.preview-mode-switch {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  justify-content: flex-end;
}

.btn-preview-mode {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
}

.btn-preview-mode.active {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent-color);
}

/* 9. Gráfico SVG interactivo */
.chart-container-card {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

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

.chart-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

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

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-color.blue { background-color: var(--accent-color); }
.legend-color.green { background-color: var(--accent-emerald); }

.svg-canvas-wrapper {
  width: 100%;
  position: relative;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  cursor: crosshair;
}

.svg-canvas-wrapper svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 10. Pestañas de código y exportador */
.code-export-box {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.code-tabs-header {
  display: flex;
  background-color: var(--bg-input);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.code-tab-btn {
  padding: 0.7rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  border-bottom: 2px solid transparent;
}

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

.code-tab-btn.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background-color: var(--bg-card-subtle);
}

.code-snippet-wrap {
  position: relative;
  padding: 1.25rem;
}

.code-pre-box {
  margin: 0;
  padding: 1rem 1.25rem;
  background-color: #0b0f17;
  color: #38bdf8;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-x: auto;
  border: 1px solid var(--border-color);
}

[data-theme="light"] .code-pre-box {
  background-color: #0f172a;
  color: #38bdf8;
}

.btn-copy-code-action {
  position: absolute;
  top: 1.85rem;
  right: 1.85rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: rgba(30, 41, 59, 0.85);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-copy-code-action:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* 11. Botón de acción para abrir Escala Modular */
.modular-scale-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.modular-cta-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.modular-cta-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.btn-primary-action {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

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

/* 12. Toast flotante de copiado */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #0f172a;
  color: #10b981;
  border: 1px solid #10b981;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 13. Modales accesibles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.modal-dialog {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-dialog {
  transform: scale(1);
}

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

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

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

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

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

/* Tabla de escala modular dentro del modal */
.modal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

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

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

.table-modular-scale th {
  background-color: var(--bg-input);
  font-weight: 700;
  color: var(--text-primary);
}

.table-modular-scale tr:last-child td {
  border-bottom: none;
}

.code-pill {
  display: inline-block;
  background-color: #0b0f17;
  color: #38bdf8;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  word-break: break-all;
}

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

/* 14. Guía SEO y Sección FAQ */
.seo-guide-section {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
}

.guide-block {
  margin-bottom: 2.25rem;
}

.guide-block h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.guide-block p,
.guide-block li {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.guide-block ul,
.guide-block ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.guide-block li {
  margin-bottom: 0.4rem;
}

.formula-box {
  background-color: var(--bg-card);
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.comparison-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.comparison-table th {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  font-weight: 700;
}

/* Acordeón FAQ accesible */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

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

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}
