/* ==========================================================================
   Fijate Tools - Registro de Viajeros y Check-in Online
   Estilos corporativos canónicos, modo oscuro Midnight Slate y adaptabilidad táctil
   ========================================================================== */

:root,
[data-theme="dark"],
body.dark-mode {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta Midnight Slate */
  --bg-page: #0b0f17;
  --bg-card: #131b2e;
  --bg-surface: #1a253c;
  --bg-input: #0e1526;
  --bg-hover: #22304d;

  --border-color: #23324d;
  --border-subtle: #1c273d;
  --border-focus: #38bdf8;

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

  --color-primary: #38bdf8;
  --color-primary-hover: #0ea5e9;
  --color-primary-bg: rgba(56, 189, 248, 0.12);

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #20bd5a;
  --color-whatsapp-text: #ffffff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="light"],
body.light-mode {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-input: #ffffff;
  --bg-hover: #e2e8f0;

  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;
  --border-focus: #0284c7;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

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

  --color-whatsapp: #1da851;
  --color-whatsapp-hover: #178942;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Base y contención */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  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,
.welcome-title,
.form-card-title,
.admin-title,
.faq-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
  line-height: 1.25;
}

p {
  margin: 0;
}

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

.text-uppercase {
  text-transform: uppercase;
}

.text-sm {
  font-size: 0.875rem;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.w-100 { width: 100%; }

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

.tool-with-sidebar {
  display: block;
  width: 100%;
}

@media (min-width: 1536px) {
  .tool-with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
  }
}

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

/* Barra de navegación de modos (Huésped vs Gestor) */
.mode-navigation-bar {
  display: flex;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.mode-tab-btn {
  flex: 1 1 0%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mode-tab-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-surface);
}

.mode-tab-btn.is-active {
  color: var(--text-main);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.badge-tab-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Tarjeta de bienvenida del huésped */
.guest-welcome-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.welcome-icon-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-info-box {
  flex: 1 1 0%;
  min-width: 0;
}

.welcome-title {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.welcome-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Tarjetas de formulario */
.form-card {
  background-color: 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);
  transition: border-color 0.2s ease;
}

.form-card:hover {
  border-color: var(--border-focus);
}

.form-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-step-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #0b0f17;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-card-title {
  font-size: 1.1rem;
  color: var(--text-main);
}

.form-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Rejilla de formulario responsiva */
.form-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

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

.form-label .required {
  color: var(--color-danger);
  margin-left: 0.2rem;
}

.label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.btn-help-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-main);
}

.btn-help-link:hover {
  color: var(--color-primary-hover);
}

.badge-optional {
  font-size: 0.7rem;
  color: var(--color-primary);
  background: var(--color-primary-bg);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-control,
.form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.form-select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  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 14px center;
  padding-right: 40px;
}

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

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

/* Módulo de acompañantes */
.guests-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-guests-notice {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.empty-guests-notice svg {
  margin-bottom: 0.75rem;
  color: var(--text-subtle);
}

.empty-guests-notice p {
  font-size: 0.9rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

.guest-item-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  animation: fadeIn 0.25s ease-out;
}

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

.guest-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.guest-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guest-num-pill {
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-remove-guest {
  background: none;
  border: none;
  color: var(--color-danger);
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.btn-remove-guest:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.minor-toggle-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

/* Módulo de firma digital en pantalla */
.signature-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow: hidden;
}

.signature-canvas-container {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: #ffffff;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  touch-action: none;
  cursor: crosshair;
}

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

.signature-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(148, 163, 184, 0.45);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
  text-align: center;
}

.signature-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
}

.signature-status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.signature-status.is-signed {
  color: var(--color-success);
  font-weight: 600;
}

/* Declaración legal y checkbox */
.declaration-checkbox-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.custom-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-input);
  margin-top: 0.15rem;
  position: relative;
  transition: all 0.2s ease;
}

.custom-checkbox-label input[type="checkbox"]:checked ~ .checkbox-box {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.custom-checkbox-label input[type="checkbox"]:checked ~ .checkbox-box::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #0b0f17;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Tarjeta de envío y botones de acción principal */
.action-submit-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .action-buttons-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.submit-help-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.5rem;
}

/* Botones estándar de fijate */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-lg {
  min-height: 48px;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

.btn-sm {
  min-height: 36px;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #0b0f17;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

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

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

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

.btn-outline:hover {
  border-color: var(--border-focus);
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background-color: var(--bg-surface);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-whatsapp-text);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

/* Vista del Gestor / Admin */
.admin-intro-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-badge-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.admin-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Layout de compartir QR del gestor */
.qr-share-layout {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .qr-share-layout {
    flex-direction: column;
    text-align: center;
  }
}

.qr-preview-box {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qr-canvas-wrapper {
  background-color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 140px;
}

.qr-caption {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.qr-share-details {
  flex: 1 1 0%;
  min-width: 0;
}

.copy-input-group {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .copy-input-group {
    flex-direction: column;
  }
}

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

/* Grilla de utilidades del gestor */
.admin-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .admin-tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-tool-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.admin-tool-box .tool-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.admin-tool-box .tool-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.admin-tool-box .tool-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Modales accesibles */
.app-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.app-modal-dialog {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  overflow: hidden;
  animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.app-modal-title {
  font-size: 1.1rem;
  color: var(--text-main);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

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

.app-modal-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  display: flex;
  justify-content: flex-end;
}

.support-help-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}

.support-help-list li {
  margin-bottom: 0.45rem;
}

.support-help-list code {
  background-color: var(--bg-surface);
  color: var(--color-primary);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.modal-text-subtle {
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-style: italic;
}

/* Acordeón de FAQs SEO */
.seo-guide-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.faq-section-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

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

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

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

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text-subtle);
}

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

.faq-answer {
  padding: 0 1.15rem 1.15rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.25rem;
  padding-top: 0.75rem;
}

.faq-answer strong {
  color: var(--text-main);
}
