@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #1a237e;
  --primary-light: #283593;
  --primary-lighter: #3949ab;
  --accent: #5c6bc0;
  --accent-light: #e8eaf6;
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --text: #212121;
  --text-muted: #616161;
  --border: #e0e0e0;
  --success: #2e7d32;
  --warning: #e65100;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
  --nav-width: 260px;
}

/* ─── DARK MODE ───────────────────────────────────────────────── */
[data-theme="dark"] {
  --primary: #3949ab;
  --primary-light: #5c6bc0;
  --primary-lighter: #7986cb;
  --accent: #7986cb;
  --accent-light: rgba(92,107,192,0.15);
  --bg: #111827;
  --card-bg: #1f2937;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #374151;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.45);
}

[data-theme="dark"] .topbar { background: #0f172a; }
[data-theme="dark"] .sidebar { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); }
[data-theme="dark"] .callout { background: rgba(92,107,192,0.12); }
[data-theme="dark"] .callout.warning { background: rgba(230,81,0,0.12); }
[data-theme="dark"] .callout.success { background: rgba(46,125,50,0.12); }
[data-theme="dark"] .topbar-search { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .hero-search { background: #1f2937; color: var(--text); }
[data-theme="dark"] .search-results-dropdown,
[data-theme="dark"] .hero-search-results { background: #1f2937; }
[data-theme="dark"] .search-result-item:hover { background: rgba(92,107,192,0.15); }
[data-theme="dark"] .faq-item { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .faq-question:hover,
[data-theme="dark"] .faq-question.open { background: rgba(92,107,192,0.15); }
[data-theme="dark"] .site-footer { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .feedback-section { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .feedback-btn { background: #1f2937; border-color: #374151; color: var(--text-muted); }

:root {
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
}

a { color: var(--primary-lighter); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── TOP BAR ─────────────────────────────────────────────────── */
.topbar {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  height: 60px;
}

/* ─── SKIP LINK ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ─── DARK MODE TOGGLE ────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.15s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.12); }

.menu-toggle:hover { background: rgba(255,255,255,0.12); }

.menu-toggle svg { display: block; }

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  padding: 2px;
  display: block;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* ─── SEARCH BAR ──────────────────────────────────────────────── */
.search-wrapper {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.topbar-search {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: none;
  border-radius: 24px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: background 0.2s;
}

.topbar-search::placeholder { color: rgba(255,255,255,0.65); }
.topbar-search:focus { background: rgba(255,255,255,0.22); }

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  max-height: 360px;
  overflow-y: auto;
  z-index: 300;
  display: none;
}

.search-results-dropdown.visible { display: block; }

.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--accent-light); }

.search-result-item .result-icon {
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.search-result-item .result-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  display: block;
}

.search-result-item .result-section {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.search-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── LAYOUT ──────────────────────────────────────────────────── */
.layout {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
}

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--nav-width);
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.sidebar-section {
  padding: 0 0.75rem 1rem;
}

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0.75rem;
  margin-bottom: 0.4rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s;
}

.sidebar-link:hover {
  background: var(--accent-light);
  color: var(--primary);
  text-decoration: none;
}

.sidebar-link.active {
  background: var(--accent-light);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-link .nav-icon { font-size: 1rem; flex-shrink: 0; }

/* ─── MAIN CONTENT ────────────────────────────────────────────── */
.main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
}

/* ─── BREADCRUMB ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ─── ARTICLE ─────────────────────────────────────────────────── */
.article-header { margin-bottom: 2rem; }

.article-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

.article-body h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-light);
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent-light);
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.article-body p { margin-bottom: 0.9rem; color: var(--text); }

.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
}

.article-body li { margin-bottom: 0.4rem; }

.article-body strong { font-weight: 600; color: var(--primary-light); }

.article-body em { font-style: italic; color: var(--text-muted); }

.article-body code {
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.87em;
  color: var(--primary);
}

/* ─── CALLOUT / ALERT BOXES ───────────────────────────────────── */
.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
}

.callout.warning {
  border-color: #f57c00;
  background: #fff3e0;
}

.callout.success {
  border-color: #388e3c;
  background: #e8f5e9;
}

.callout p { margin: 0; font-size: 0.9rem; }
.callout p + p { margin-top: 0.5rem; }

.callout-title {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.callout.warning .callout-title { color: #e65100; }
.callout.success .callout-title { color: var(--success); }

/* ─── STEPS ───────────────────────────────────────────────────── */
.steps { counter-reset: step; list-style: none; padding-left: 0; }

.steps li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── VIDEO EMBED ─────────────────────────────────────────────── */
.video-section {
  margin: 1.75rem 0;
}

.video-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.75rem;
}

.video-section-label::before, .video-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.video-embed-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 16/9;
  position: relative;
}

.video-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Placeholder state (shown when no video ID is set) */
.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  text-align: center;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.video-placeholder .play-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.video-placeholder h4 {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
}

.video-placeholder p {
  font-size: 0.78rem;
  opacity: 0.65;
  margin: 0;
}

/* ─── RELATED ARTICLES ────────────────────────────────────────── */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.related-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-2px);
}

.related-card .rc-icon { font-size: 1.25rem; margin-bottom: 0.5rem; display: block; }
.related-card .rc-title { font-size: 0.875rem; font-weight: 500; color: var(--text); display: block; }
.related-card .rc-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }

/* ─── FEEDBACK ────────────────────────────────────────────────── */
.feedback-section {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.feedback-section p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.feedback-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.feedback-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-muted);
  transition: all 0.2s;
}

.feedback-btn:hover { border-color: var(--accent); color: var(--primary); background: var(--accent-light); }
.feedback-btn.selected-yes { border-color: #388e3c; background: #e8f5e9; color: #2e7d32; }
.feedback-btn.selected-no { border-color: #d32f2f; background: #ffebee; color: #c62828; }
.feedback-thankyou { font-size: 0.875rem; color: var(--success); font-weight: 500; }

/* ─── HOME PAGE ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lighter) 100%);
  color: white;
  padding: 3.5rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 1.75rem;
}

.hero-search-wrapper {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.hero-search {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: none;
  border-radius: 32px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: var(--text);
}

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

.hero-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  max-height: 400px;
  overflow-y: auto;
  z-index: 300;
  display: none;
  text-align: left;
}

.hero-search-results.visible { display: block; }

/* ─── HOME: POPULAR TOPICS ────────────────────────────────────── */
.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.topic-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}

.topic-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  text-decoration: none;
}

.topic-card .tc-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.topic-card .tc-title { font-size: 0.95rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 0.25rem; }
.topic-card .tc-desc { font-size: 0.8rem; color: var(--text-muted); display: block; }

/* ─── HOME: ALL SECTIONS LIST ─────────────────────────────────── */
.all-sections { margin-bottom: 2.5rem; }

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

.section-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--text);
  transition: all 0.15s;
}

.section-list-item:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--primary);
  text-decoration: none;
}

.section-list-item .sli-icon { flex-shrink: 0; }

/* ─── FAQ PAGE ────────────────────────────────────────────────── */
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

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

.faq-question:hover { background: var(--accent-light); }

.faq-question.open { background: var(--accent-light); color: var(--primary); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--text-muted);
}

.faq-question.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.open { max-height: 1000px; }

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
}

/* ─── CONTACT PAGE ────────────────────────────────────────────── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.contact-card .cc-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.contact-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--primary); }
.contact-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ─── OVERLAY (mobile nav) ────────────────────────────────────── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 150;
}

.overlay.visible { display: block; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary); }
.footer-sep { margin: 0 0.5rem; opacity: 0.4; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    z-index: 160;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }

  .sidebar.open { transform: translateX(0); }

  .menu-toggle { display: flex; }

  .main { padding: 1.5rem 1.25rem; }

  .hero { padding: 2.5rem 1.25rem; }
  .hero h1 { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .topbar-inner { gap: 0.75rem; }
  .logo-text small { display: none; }
  .search-wrapper { max-width: none; }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .persona-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.4rem; }
  .related-grid { grid-template-columns: 1fr; }
  .feedback-buttons { flex-direction: column; align-items: center; }
  .main { padding: 1.25rem 1rem; }
  .hero { border-radius: 0; }
  /* Trust badge: ocultar separadores en móvil, mostrar texto apilado */
  .trust-badge { font-size: 0.72rem; padding: 5px 12px; gap: 4px; }
}

/* ─── OFFLINE INDICATOR DEMO ──────────────────────────────────── */
.banner-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0.4rem 0;
}

.banner-demo.red { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.banner-demo.orange { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }

/* ─── TRUST BADGE ─────────────────────────────────────────────── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 24px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
  margin-top: 1rem;
}

/* ─── PERSONA CARDS (homepage) ────────────────────────────────── */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.persona-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}

.persona-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  text-decoration: none;
}

.persona-card .pc-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.persona-card .pc-title { font-size: 1rem; font-weight: 700; color: var(--text); display: block; margin-bottom: 0.4rem; }
.persona-card .pc-links { list-style: none; padding: 0; margin: 0; }
.persona-card .pc-links li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.persona-card .pc-links li::before { content: "→"; color: var(--accent); font-size: 0.75rem; }

/* Tablet: 2 columnas para evitar huérfano (después de la regla base para ganar cascada) */
@media (max-width: 900px) {
  .persona-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── FAQ TABS ────────────────────────────────────────────────── */
.faq-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.faq-tab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.faq-tab-btn:hover { color: var(--primary); background: var(--accent-light); }
.faq-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.faq-panel { display: none; }
.faq-panel.active { display: block; }

/* ─── SECTION-LIST dark mode ──────────────────────────────────── */
[data-theme="dark"] .section-list-item { background: var(--card-bg); }
[data-theme="dark"] .topic-card { background: var(--card-bg); }
[data-theme="dark"] .persona-card { background: var(--card-bg); }
[data-theme="dark"] .related-card { background: var(--card-bg); }
[data-theme="dark"] .contact-card { background: var(--card-bg); }
[data-theme="dark"] .banner-demo.red { background: rgba(198,40,40,0.15); border-color: rgba(198,40,40,0.3); }
[data-theme="dark"] .banner-demo.orange { background: rgba(230,81,0,0.15); border-color: rgba(230,81,0,0.3); }

/* Fix hover/active contrast in dark mode */
[data-theme="dark"] .sidebar-link:hover,
[data-theme="dark"] .sidebar-link.active { color: #c5cae9; }

[data-theme="dark"] .section-list-item:hover { color: #c5cae9; }

[data-theme="dark"] .faq-question:hover,
[data-theme="dark"] .faq-question.open { color: #c5cae9; }

[data-theme="dark"] .faq-tab-btn:hover { color: #c5cae9; }
[data-theme="dark"] .faq-tab-btn.active { color: #9fa8da; border-bottom-color: #9fa8da; }
