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

  /* Paleta base clara (tonos bosque, tierra y musgo) */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #15803d;

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

  /* Acentos micológicos */
  --accent-forest: #15803d;
  --accent-forest-hover: #166534;
  --accent-forest-light: #dcfce7;
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-red: #dc2626;
  --accent-red-light: #fee2e2;

  /* Sombras y radios */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

[data-theme="dark"] {
  --bg-primary: #0b0f17;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-card: #141d2e;
  --border-color: #1e293b;
  --border-focus: #22c55e;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --accent-forest: #22c55e;
  --accent-forest-hover: #4ade80;
  --accent-forest-light: #14532d44;
  --accent-gold: #f59e0b;
  --accent-gold-light: #78350f33;
  --accent-red: #ef4444;
  --accent-red-light: #7f1d1d44;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
}

/* Base reset */
*, *::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,
.section-title,
.hero-title,
.modal-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

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

/* Layout */
.main-wrapper.tool-layout {
  max-width: 1200px;
  width: 100%;
  margin: 1.25rem auto 3rem;
  padding: 0 1rem;
  flex: 1 0 auto;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  width: 100%;
}

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

/* Banner de emergencia SIT */
.sit-emergency-strip {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(254, 202, 202, 0.3);
}

.sit-strip-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sit-strip-icon {
  background: rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.sit-strip-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.sit-strip-sub {
  font-size: 0.82rem;
  color: #fecaca;
  margin-top: 0.15rem;
}

.sit-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #991b1b;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  min-height: 40px;
}

.sit-call-btn:hover {
  transform: translateY(-2px);
  background-color: #fef2f2;
}

/* Hero micológico */
.myco-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.myco-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--accent-forest-light) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.myco-hero-header {
  position: relative;
  z-index: 1;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background-color: var(--accent-forest-light);
  color: var(--accent-forest);
  margin-bottom: 0.75rem;
}

.myco-hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.myco-hero-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  max-width: 820px;
  line-height: 1.55;
}

/* Métricas destacadas */
.myco-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.quick-stat-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  text-align: center;
}

.quick-stat-num {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-forest);
  line-height: 1.1;
}

.quick-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Barra de pestañas */
.tabs-navigation {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs-navigation::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  min-height: 40px;
}

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

.tab-btn.active {
  background-color: var(--accent-forest);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Vistas de pestañas */
.tab-view {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.tab-view.active {
  display: flex;
}

/* PESTAÑA 1: CATÁLOGO */
.catalog-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-bar-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.search-input-wrap {
  position: relative;
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
}

.search-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 1rem 0 2.5rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  height: 42px;
  padding: 0 2.2rem 0 0.85rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--text-primary);
  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='%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.75rem center;
}

.filter-select:focus {
  border-color: var(--border-focus);
}

.chips-scroll-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  border-color: var(--text-muted);
}

.chip-btn.active {
  background: var(--accent-forest-light);
  border-color: var(--accent-forest);
  color: var(--accent-forest);
  font-weight: 600;
}

/* Resultados del catálogo */
.catalog-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.species-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.species-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.species-card.card-mortal {
  border-left: 4px solid var(--accent-red);
}

.species-card.card-excelente {
  border-left: 4px solid var(--accent-forest);
}

.species-card.card-toxica {
  border-left: 4px solid #ea580c;
}

.species-card.card-precaucion {
  border-left: 4px solid var(--accent-gold);
}

.card-top {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.edibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-excelente {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

[data-theme="dark"] .badge-excelente {
  background: #14532d44;
  color: #4ade80;
  border-color: #22c55e;
}

.badge-buen-comestible {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

[data-theme="dark"] .badge-buen-comestible {
  background: #064e3b44;
  color: #34d399;
  border-color: #10b981;
}

.badge-precaucion {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

[data-theme="dark"] .badge-precaucion {
  background: #78350f44;
  color: #fbbf24;
  border-color: #f59e0b;
}

.badge-sin-valor {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

[data-theme="dark"] .badge-sin-valor {
  background: #1f293780;
  color: #9ca3af;
  border-color: #4b5563;
}

.badge-toxica {
  background: #ffedd5;
  color: #ea580c;
  border: 1px solid #fdba74;
}

[data-theme="dark"] .badge-toxica {
  background: #7c2d1244;
  color: #fb923c;
  border-color: #f97316;
}

.badge-mortal {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  animation: pulse-border 2s infinite ease-in-out;
}

[data-theme="dark"] .badge-mortal {
  background: #7f1d1d44;
  color: #f87171;
  border-color: #ef4444;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); }
}

.species-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.species-scientific {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

.card-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.75rem;
}

.card-feature-item {
  display: flex;
  gap: 0.5rem;
}

.feature-tag {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 68px;
  flex-shrink: 0;
}

.feature-val {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-bottom-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-card-details {
  flex: 1;
  height: 40px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-card-details:hover {
  background-color: var(--accent-forest-light);
  color: var(--accent-forest);
  border-color: var(--accent-forest);
}

/* PESTAÑA 2: COMPARADOR DE CONFUSIONES */
.comparison-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.selector-duo-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--bg-surface-elevated);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.duo-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.duo-box-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.duo-box-label.label-comestible {
  color: var(--accent-forest);
}

.duo-box-label.label-toxica {
  color: var(--accent-red);
}

.duo-vs-badge {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.comparison-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-chip {
  padding: 0.45rem 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover,
.preset-chip.active {
  background: var(--accent-forest-light);
  border-color: var(--accent-forest);
  color: var(--accent-forest);
}

/* Tabla de comparación */
.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--bg-surface-elevated);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

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

.col-criterio {
  width: 25%;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-surface-elevated);
}

.col-comestible {
  width: 37.5%;
  background-color: rgba(34, 197, 94, 0.04);
}

.col-toxica {
  width: 37.5%;
  background-color: rgba(239, 68, 68, 0.04);
}

.text-danger-highlight {
  color: var(--accent-red);
  font-weight: 700;
}

.text-success-highlight {
  color: var(--accent-forest);
  font-weight: 700;
}

/* PESTAÑA 3: CALENDARIO Y HÁBITATS */
.calendar-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.months-slider-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .months-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.month-btn {
  height: 48px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  transition: all var(--transition-fast);
}

.month-btn:hover {
  border-color: var(--accent-forest);
  color: var(--accent-forest);
}

.month-btn.active {
  background: var(--accent-forest);
  border-color: var(--accent-forest);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.habitat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.habitat-select-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.habitat-select-card:hover {
  border-color: var(--accent-forest);
  transform: translateY(-2px);
}

.habitat-select-card.active {
  border-color: var(--accent-forest);
  background: var(--accent-forest-light);
}

.habitat-icon-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.habitat-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* PESTAÑA 4: TOXICOLOGÍA Y MITOS */
.tox-alert-banner {
  background: var(--bg-card);
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tox-grid-syndromes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

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

.syndrome-card.latency-long {
  border-top: 4px solid var(--accent-red);
}

.syndrome-card.latency-short {
  border-top: 4px solid #ea580c;
}

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

.syndrome-badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.syndrome-phase-list {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Cazador de mitos */
.myths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.myth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.myth-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.9rem;
}

.myth-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  font-style: italic;
}

.reality-box {
  background: var(--bg-surface-elevated);
  border-left: 3px solid var(--accent-forest);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* PESTAÑA 5: NORMATIVA Y DECÁLOGO */
.decalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.decalogo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.decalogo-num {
  width: 44px;
  height: 44px;
  background: var(--accent-forest-light);
  color: var(--accent-forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.decalogo-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.decalogo-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Modal de detalle de seta */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

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

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 2;
}

.modal-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

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

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-section-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.modal-section-content {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.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-surface);
}

/* Acordeón SEO y FAQs */
.seo-accordion-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-top: 1rem;
}

.seo-accordion-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

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

.faq-question-btn svg {
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-question-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

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

.faq-answer.open {
  display: block;
}

/* Responsividad móvil */
@media (max-width: 768px) {
  .sit-emergency-strip {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .sit-strip-content {
    flex-direction: column;
    text-align: center;
  }

  .sit-call-btn {
    width: 100%;
    justify-content: center;
  }

  .selector-duo-panel {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .duo-vs-badge {
    margin: 0.25rem auto;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
    font-size: 0.82rem;
  }
}
