/* ================================================================
   pages.css — Salud & Ciencia
   Estilos compartidos para páginas estáticas (EEAT + legales)
   Requiere: style.css (variables, topbar, footer, trust strip)
================================================================ */

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb { padding: 12px 0; border-bottom: 1px solid var(--border); background: var(--white); }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--text-muted); transition: color .2s; }
.breadcrumb-inner a:hover { color: var(--teal); }
.breadcrumb-inner span { color: var(--text); font-weight: 500; }
.breadcrumb-sep { color: var(--text-light); flex-shrink: 0; }

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero { padding: 52px 0 44px; }
.page-hero--teal  { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); }
.page-hero--blue  { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.page-hero--green { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.page-hero--dark  { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-bottom: 1px solid var(--border); }
.page-hero .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--teal); margin-bottom: 10px; }
.page-hero h1 { font-size: 2.4rem; font-weight: 800; color: var(--text); line-height: 1.15; margin-bottom: 16px; }
.page-lead { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; max-width: 680px; }
@media (max-width: 768px) { .page-hero { padding: 36px 0 28px; } .page-hero h1 { font-size: 1.8rem; } .page-lead { font-size: .95rem; } }
@media (max-width: 480px) { .page-hero h1 { font-size: 1.5rem; } }

/* ── BODY LAYOUT ─────────────────────────────────────────── */
.page-body { padding: 48px 0 64px; }
.page-content-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
@media (max-width: 1024px) { .page-content-wrap { grid-template-columns: 1fr 240px; gap: 32px; } }
@media (max-width: 768px)  { .page-content-wrap { grid-template-columns: 1fr; } }

/* ── PAGE SECTIONS ───────────────────────────────────────── */
.page-section { margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.page-section:last-of-type { border-bottom: none; }
.page-section h2 { font-size: 1.35rem; font-weight: 800; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.page-section h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.page-section p { font-size: .95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.page-section p:last-child { margin-bottom: 0; }
.page-section-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.page-section-icon svg { width: 26px; height: 26px; }

/* Lists */
.page-list { margin: 12px 0 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.page-list li { font-size: .93rem; color: var(--text-muted); line-height: 1.65; list-style: disc; }
.page-list li::marker { color: var(--teal); }
.page-list strong { color: var(--text); }

/* Inline link */
.inline-link { color: var(--teal); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.inline-link:hover { text-decoration-color: var(--teal); }

/* ── INFO BOXES ──────────────────────────────────────────── */
.info-box { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius); padding: 16px 18px; margin: 24px 0; }
.info-box svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.info-box p { margin: 0; font-size: .88rem; line-height: 1.6; }
.info-box--teal  { background: var(--teal-bg);  border: 1px solid #99f6e4; }
.info-box--teal  p, .info-box--teal  strong { color: var(--teal-dark); }
.info-box--blue  { background: #eff6ff; border: 1px solid #bfdbfe; }
.info-box--blue  p, .info-box--blue  strong { color: #1e40af; }
.info-box--yellow{ background: #fffbeb; border: 1px solid #fde68a; }
.info-box--yellow p, .info-box--yellow strong { color: #92400e; }

/* ── STATS ROW ───────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.stat-box { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 480px) { .stats-row { grid-template-columns: 1fr; } }

/* ── TEAM GRID ───────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.team-card { background: var(--bg-light); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px; }
.team-avatar { font-size: 2rem; margin-bottom: 10px; }
.team-card h3 { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.team-card p { font-size: .83rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* ── VALUES GRID ─────────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.value-item { padding: 20px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); }
.value-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.value-item h3 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.value-item p { font-size: .8rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

/* ── PAGE CTA BOX ────────────────────────────────────────── */
.page-cta-box { background: var(--teal-bg); border: 1.5px solid #99f6e4; border-radius: var(--radius); padding: 28px 24px; text-align: center; margin-top: 40px; }
.page-cta-box h3 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.page-cta-box p { font-size: .9rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }

/* ── SIDEBAR CARDS ───────────────────────────────────────── */
.page-sidebar { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 769px) { .page-sidebar { position: sticky; top: 110px; } }

.trust-sidebar-card, .sidebar-links-card, .contact-info-card, .social-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
}
.trust-sidebar-card h3, .sidebar-links-card h3,
.contact-info-card h3, .social-card h3 {
  font-size: .88rem; font-weight: 700; color: var(--text);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.trust-checklist { display: flex; flex-direction: column; gap: 10px; }
.trust-checklist li { display: flex; align-items: center; gap: 8px; font-size: .83rem; color: var(--text-muted); }
.trust-checklist li a { color: var(--text-muted); transition: color .2s; }
.trust-checklist li a:hover { color: var(--teal); }
.trust-checklist svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-links-card ul { display: flex; flex-direction: column; gap: 9px; }
.sidebar-links-card ul li a { font-size: .84rem; color: var(--teal); transition: color .2s; }
.sidebar-links-card ul li a:hover { color: var(--teal-dark); text-decoration: underline; }

/* ── METHODOLOGY COMPONENTS ──────────────────────────────── */
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.principle-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--white); }
.principle-num { font-size: 2rem; font-weight: 800; color: var(--teal); opacity: .3; line-height: 1; margin-bottom: 8px; }
.principle-card h3 { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.principle-card p { font-size: .83rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
@media (max-width: 600px) { .principles-grid { grid-template-columns: 1fr; } }

.process-steps { display: flex; flex-direction: column; gap: 0; margin: 20px 0; }
.process-step { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.process-step:last-child { border-bottom: none; }
.step-number { width: 36px; height: 36px; background: var(--teal); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; flex-shrink: 0; margin-top: 2px; }
.step-body h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.step-body p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

.content-types-table { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.ct-row { display: grid; grid-template-columns: 1fr 2fr 1.5fr; gap: 0; }
.ct-header { background: var(--teal); color: white; font-size: .8rem; font-weight: 700; }
.ct-row > div { padding: 10px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .83rem; color: var(--text-muted); line-height: 1.5; }
.ct-row > div:last-child { border-right: none; }
.ct-header > div { color: white; border-color: rgba(255,255,255,.2); }
.ct-row:last-child > div { border-bottom: none; }
@media (max-width: 600px) { .ct-row { grid-template-columns: 1fr; } .ct-header { display: none; } }

/* ── SOURCES (fuentes científicas) ───────────────────────── */
.sources-grid { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.source-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); transition: box-shadow .2s; }
.source-card:hover { box-shadow: var(--shadow-md); }
.source-logo-placeholder { width: 72px; height: 52px; flex-shrink: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; text-align: center; }
.source-body h3 { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.source-body p { font-size: .82rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 8px; }
.source-link { font-size: .8rem; color: var(--teal); font-weight: 500; }
.source-link:hover { text-decoration: underline; }

.db-list { display: flex; flex-direction: column; gap: 0; margin: 16px 0; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.db-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--border); background: var(--white); }
.db-item:last-child { border-bottom: none; }
.db-icon { font-size: 1.5rem; flex-shrink: 0; width: 36px; text-align: center; }
.db-body h3 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.db-body p { font-size: .82rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 6px; }

.publications-list { margin: 12px 0; display: flex; flex-direction: column; gap: 10px; padding-left: 0; }
.publications-list li { list-style: none; font-size: .88rem; color: var(--text-muted); line-height: 1.5; padding-left: 20px; position: relative; }
.publications-list li::before { content: "📄"; position: absolute; left: 0; font-size: .9rem; }
.publications-list li strong { color: var(--text); }

/* ── CONTACT COMPONENTS ──────────────────────────────────── */
.contact-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.contact-reason { padding: 18px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); }
.reason-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.contact-reason h3 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.contact-reason p { font-size: .82rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
@media (max-width: 600px) { .contact-reasons { grid-template-columns: 1fr; } }

.sec-note { font-size: .85rem; color: var(--text-muted); background: var(--bg-light); border-left: 3px solid var(--teal); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 24px; line-height: 1.6; }

/* Formulario */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; gap: 16px; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row--2 { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.required { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px 14px; font-size: .9rem; font-family: inherit;
  color: var(--text); background: var(--white);
  outline: none; transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: .75rem; color: var(--text-light); }
.form-group--checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.checkbox-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--teal); width: 16px; height: 16px; }
.btn-submit { align-self: flex-start; padding: 12px 28px; }

/* Success box */
.success-box { display: flex; gap: 14px; align-items: flex-start; background: #f0fdf4; border: 1.5px solid #86efac; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 32px; }
.success-box svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.success-box strong { display: block; font-size: .95rem; color: #15803d; margin-bottom: 4px; }
.success-box p { font-size: .85rem; color: #166534; margin: 0; line-height: 1.5; }

.contact-info-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .84rem; color: var(--text-muted); line-height: 1.5; }
.contact-info-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-link { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--text-muted); transition: color .2s; }
.social-link:hover { color: var(--teal); }
.social-link svg { width: 20px; height: 20px; }

/* ── LEGAL CONTENT ───────────────────────────────────────── */
.legal-content { max-width: 100%; }
.legal-intro { background: var(--bg-light); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 32px; }
.legal-intro p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin: 0 0 8px; }
.legal-intro p:last-child { margin: 0; }
.legal-section { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.legal-section h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin: 18px 0 8px; }
.legal-section p { font-size: .88rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 12px; }

/* Cookies/CT table */
.cookies-table, .content-types-table { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.cookie-row { display: grid; grid-template-columns: 1.2fr 2fr 1fr; }
.cookie-header { background: var(--bg-light); font-size: .8rem; font-weight: 700; color: var(--text); }
.cookie-row > div { padding: 10px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .83rem; color: var(--text-muted); }
.cookie-row > div:last-child { border-right: none; }
.cookie-row:last-child > div { border-bottom: none; }
@media (max-width: 600px) { .cookie-row { grid-template-columns: 1fr; } .cookie-header { display: none; } }

/* ================================================================
   PÁGINAS DE LISTADO (analisis_list, faq_list, herramientas,
   interpretar-resultados)
================================================================ */

/* ── HERO DE LISTADO ─────────────────────────────────────────── */
.list-hero { padding: 48px 0 36px; background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); }
.list-hero--blue  { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.list-hero--green { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.list-hero .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.list-hero-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: .82rem; color: var(--text-muted); }
.list-hero-stats strong { color: var(--teal); font-weight: 700; }

/* ── BODY ────────────────────────────────────────────────────── */
.list-main { min-height: 60vh; }
.list-body { max-width: 1200px; margin: 0 auto; padding: 40px 20px 64px; }

/* ── CLUSTER SECTION ─────────────────────────────────────────── */
.list-cluster-section { margin-bottom: 48px; }
.list-cluster-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.list-cluster-header h2 { font-size: 1.15rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; margin: 0; }
.list-cluster-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── LIST GRID ───────────────────────────────────────────────── */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.list-grid--compact { grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 1024px) { .list-grid { grid-template-columns: repeat(2, 1fr); } .list-grid--compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .list-grid, .list-grid--compact { grid-template-columns: 1fr; } }

/* ── LIST CARD ───────────────────────────────────────────────── */
.list-card { border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); transition: box-shadow .2s, border-color .2s; overflow: hidden; }
.list-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal-light); }
.list-card a { display: block; text-decoration: none; color: inherit; height: 100%; }
.list-card-body { display: flex; gap: 12px; padding: 16px; align-items: flex-start; }
.list-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.list-card-icon svg { width: 20px; height: 20px; }
.list-card-text { flex: 1; min-width: 0; }
.list-card-text h3 { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 4px; }
.list-card-text h4 { font-size: .85rem; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.list-card-text p { font-size: .78rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.list-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .72rem; color: var(--text-light); margin-top: 6px; }
.list-card-meta svg { width: 12px; height: 12px; stroke: currentColor; fill: none; }
.list-card-arrow { font-size: .72rem; color: var(--teal); font-weight: 600; white-space: nowrap; }
.list-card-cluster { font-size: .7rem; color: var(--teal); font-weight: 500; }
.list-card--compact .list-card-body { padding: 12px; gap: 10px; }

/* ── LIST CTA BOX ────────────────────────────────────────────── */
.list-cta-box { background: var(--teal-bg); border: 1.5px solid #99f6e4; border-radius: var(--radius); padding: 28px 24px; margin-top: 40px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.list-cta-box--slim { padding: 20px 24px; }
.list-cta-box h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.list-cta-box p { font-size: .88rem; color: var(--text-muted); margin-bottom: 14px; }
.list-cta-icon { flex-shrink: 0; width: 48px; height: 48px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.list-cta-icon svg { width: 26px; height: 26px; stroke: var(--teal); }
.list-cta-search { display: flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; max-width: 400px; }
.list-cta-search input { flex: 1; border: none; outline: none; padding: 10px 14px; font-family: inherit; font-size: .88rem; }
.list-cta-search button { background: var(--teal); border: none; cursor: pointer; padding: 0 16px; }
.list-cta-search button svg { fill: white; width: 16px; height: 16px; }

/* ── LIST EMPTY ──────────────────────────────────────────────── */
.list-empty { text-align: center; padding: 64px 20px; color: var(--text-muted); }
.list-empty svg { width: 48px; height: 48px; stroke: var(--border); margin: 0 auto 16px; display: block; }
.list-empty p { font-size: .95rem; }

/* ── FAQ LIST ────────────────────────────────────────────────── */
.faq-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.faq-filter-btn { padding: 7px 16px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--white); font-size: .82rem; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all .2s; }
.faq-filter-btn:hover, .faq-filter-btn.active { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
.faq-cluster-section { margin-bottom: 40px; }
.faq-cluster-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.faq-accordion { display: flex; flex-direction: column; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item-link { display: block; padding: 16px 20px; text-decoration: none; color: inherit; transition: background .15s; }
.faq-item-link:hover { background: var(--blue-bg); }
.faq-item-q { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.faq-item-q svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.faq-item-q h3 { font-size: .92rem; font-weight: 600; color: var(--text); line-height: 1.4; margin: 0; }
.faq-item-preview { font-size: .82rem; color: var(--text-muted); line-height: 1.55; padding-left: 30px; margin-bottom: 6px; }
.faq-item-cta { font-size: .75rem; color: var(--teal); font-weight: 600; padding-left: 30px; display: block; }
.view-all--block { display: inline-flex; margin-top: 14px; font-size: .84rem; font-weight: 500; color: var(--teal); }

/* ── TOOLS GRID ──────────────────────────────────────────────── */
.tools-section { margin-bottom: 40px; }
.tools-section-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tool-card-full { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); text-decoration: none; color: inherit; transition: all .2s; }
.tool-card-full:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.tool-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-card-icon svg { width: 24px; height: 24px; }
.tool-card-body { flex: 1; min-width: 0; }
.tool-card-body h3 { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: 3px; line-height: 1.3; }
.tool-card-body p { font-size: .78rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 5px; }
.tool-card-tag { font-size: .68rem; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .3px; }
.tool-card-arrow { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--text-light); }
.tool-card-arrow svg { width: 18px; height: 18px; }
.tools-trust { display: flex; gap: 12px; align-items: flex-start; background: var(--teal-bg); border: 1px solid #99f6e4; border-radius: var(--radius); padding: 14px 16px; margin-top: 32px; font-size: .82rem; color: var(--teal-dark); line-height: 1.5; }
.tools-trust svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

/* ── INTERPRETAR RESULTADOS ──────────────────────────────────── */
.ir-hero { padding: 52px 0 40px; background: linear-gradient(135deg, #f0fdfa 0%, #dbeafe 100%); }
.ir-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ir-hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.ir-hero-steps { display: flex; flex-direction: column; gap: 0; background: white; border-radius: var(--radius); border: 1.5px solid var(--border); overflow: hidden; }
.ir-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ir-step:last-child { border-bottom: none; }
.ir-step-num { width: 28px; height: 28px; background: var(--teal); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; flex-shrink: 0; }
.ir-step strong { display: block; font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ir-step p { font-size: .78rem; color: var(--text-muted); line-height: 1.4; margin: 0; }
.ir-section { padding: 48px 0; }
.ir-section--gray { background: var(--bg-light); }
.ir-section-title { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 24px; }
.ir-subsection-title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 32px 0 14px; }
.ir-quicklinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.ir-quicklink-group { background: white; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px; }
.ir-quicklink-group h3 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ir-quicklink-group h3 svg { width: 16px; height: 16px; flex-shrink: 0; }
.ir-quicklink-group ul { display: flex; flex-direction: column; gap: 6px; }
.ir-quicklink-group li { list-style: none; }
.ir-quicklink-group a { font-size: .82rem; color: var(--text-muted); transition: color .2s; }
.ir-quicklink-group a:hover { color: var(--teal); }
.ir-see-all { color: var(--teal) !important; font-weight: 600; font-size: .78rem !important; margin-top: 4px; display: inline-block; }
.ir-tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ir-ver-todos { margin-top: 20px; text-align: center; }
.ir-disclaimer { display: flex; gap: 14px; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 16px 18px; }
.ir-disclaimer svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.ir-disclaimer strong { display: block; font-size: .9rem; color: #92400e; margin-bottom: 4px; }
.ir-disclaimer p { font-size: .84rem; color: #92400e; line-height: 1.6; margin: 0 0 6px; }

@media (max-width: 1024px) { .ir-quicklinks { grid-template-columns: repeat(2, 1fr); } .ir-hero-inner { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ir-quicklinks, .ir-tools-grid { grid-template-columns: 1fr; } }

/* ================================================================
   PAGINACIÓN (cluster_guias.php y futuras listas paginadas)
================================================================ */
.pagination-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 40px; flex-wrap: wrap;
}
.pagination-nav-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .85rem; font-weight: 600;
  color: var(--text); text-decoration: none; transition: all .2s;
}
.pagination-nav-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-bg); }
.pagination-nav-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.pagination-nav-pages { display: flex; align-items: center; gap: 4px; }
.pagination-nav-page {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: all .2s;
}
.pagination-nav-page:hover { background: var(--teal-bg); color: var(--teal); }
.pagination-nav-page.active { background: var(--teal); color: white; }
.pagination-nav-ellipsis { color: var(--text-light); padding: 0 4px; font-size: .85rem; }

@media (max-width: 480px) {
  .pagination-nav { gap: 10px; }
  .pagination-nav-btn span { display: none; }
}

/* ================================================================
   GLOSARIO MÉDICO
================================================================ */
.glosario-index {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 16px; background: var(--bg-light); border-radius: var(--radius);
  margin-bottom: 36px; position: sticky; top: 110px; z-index: 10;
}
.glosario-index a {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: .8rem; font-weight: 700; color: var(--text-muted);
  text-decoration: none; transition: all .2s;
}
.glosario-index a:hover { background: var(--teal); color: white; }

.glosario-section { margin-bottom: 36px; scroll-margin-top: 130px; }
.glosario-letter {
  font-size: 1.6rem; font-weight: 800; color: var(--teal);
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--teal-bg);
}
.glosario-list { display: flex; flex-direction: column; gap: 20px; }
.glosario-item {
  padding: 16px 20px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius);
}
.glosario-item dt {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.glosario-item dd {
  font-size: .88rem; color: var(--text-muted); line-height: 1.65; margin: 0 0 8px;
}
.glosario-item-link { font-size: .78rem; color: var(--teal); font-weight: 600; }
.glosario-item-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .glosario-index { position: static; }
}

/* ================================================================
   EVALUACIÓN DE RIESGO (evaluacion.php)
================================================================ */
.eval-main { padding: 40px 0 64px; min-height: 60vh; }
.eval-main .container { max-width: 680px; }
.eval-screen { width: 100%; }

/* ── INTRO ───────────────────────────────────────────────────── */
.eval-intro-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 18px;
}
.eval-intro-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.eval-intro-icon svg { width: 36px; height: 36px; }
.eval-intro-card h1 { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.eval-intro-card > p { font-size: .92rem; color: var(--text-muted); line-height: 1.65; max-width: 480px; }
.eval-intro-meta {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  font-size: .8rem; color: var(--text-muted);
  background: var(--bg-light); border-radius: 8px; padding: 10px 16px;
}
.btn-primary { background: var(--teal); }
.btn-primary[style*="--btn-color"] { background: var(--btn-color, var(--teal)); }
.eval-disclaimer {
  font-size: .74rem; color: var(--text-light); line-height: 1.5;
  max-width: 420px; text-align: center;
}

/* ── PROGRESO ────────────────────────────────────────────────── */
.eval-progress-wrap { margin-bottom: 20px; }
.eval-progress-bar {
  height: 6px; background: var(--border); border-radius: 99px;
  overflow: hidden; margin-bottom: 8px;
}
.eval-progress-fill {
  height: 100%; border-radius: 99px;
  background: var(--color, var(--teal));
  transition: width .35s ease;
}
.eval-progress-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; }

/* ── PREGUNTA ────────────────────────────────────────────────── */
.eval-pregunta-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
}
.eval-pregunta-num { font-size: .76rem; font-weight: 700; color: var(--text-light); margin-bottom: 10px; }
.eval-pregunta-texto { font-size: 1.15rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 22px; }

.eval-opciones { display: flex; flex-direction: column; gap: 10px; }
.eval-opcion {
  display: block; width: 100%; text-align: left;
  padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--white);
  font-family: inherit; font-size: .9rem; color: var(--text);
  cursor: pointer; transition: all .18s; line-height: 1.4;
}
.eval-opcion:hover { border-color: var(--teal); background: var(--teal-bg); }
.eval-opcion.selected {
  border-color: var(--teal); background: var(--teal-bg);
  color: var(--teal-dark); font-weight: 600;
}

.eval-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.eval-btn-prev { min-width: 120px; }
.eval-btn-next { min-width: 150px; }
.eval-btn-next[style*="--btn-color"] { background: var(--btn-color, var(--teal)); border-color: var(--btn-color, var(--teal)); }
.eval-btn-next:disabled, .eval-btn-prev:disabled { opacity: .4; pointer-events: none; }

/* ── RESULTADO ────────────────────────────────────────────────── */
.eval-resultado-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.eval-resultado-badge {
  display: inline-block; padding: 5px 18px; border-radius: 99px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.eval-resultado-titulo { font-size: 1.45rem; font-weight: 800; color: var(--text); }
.eval-resultado-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

.eval-score-bar {
  height: 10px; background: var(--border); border-radius: 99px; overflow: hidden;
}
.eval-score-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }
.eval-score-label { font-size: .78rem; color: var(--text-muted); }

.eval-acciones h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.eval-acciones ul { display: flex; flex-direction: column; gap: 10px; padding: 0; }
.eval-acciones li {
  list-style: none; display: flex; gap: 10px; align-items: flex-start;
  font-size: .88rem; color: var(--text-muted); line-height: 1.55;
}
.eval-acciones li::before {
  content: '✓'; color: var(--teal); font-weight: 800; flex-shrink: 0; margin-top: 1px;
}

.eval-resultado-cta { display: flex; flex-direction: column; gap: 10px; }
.eval-resultado-cta a, .eval-btn-reiniciar { width: 100%; text-align: center; }
.eval-resultado-cta a[style*="--btn-color"] { background: var(--btn-color, var(--teal)); border-color: var(--btn-color, var(--teal)); }
.eval-btn-reiniciar {
  background: none; border: none; font-family: inherit;
  font-size: .82rem; color: var(--text-muted); cursor: pointer; padding: 6px;
  text-decoration: underline;
}
.eval-btn-reiniciar:hover { color: var(--text); }

@media (max-width: 480px) {
  .eval-intro-card { padding: 28px 20px; }
  .eval-pregunta-card { padding: 24px 16px; }
  .eval-resultado-card { padding: 24px 16px; }
  .eval-nav { flex-direction: column-reverse; }
  .eval-btn-prev, .eval-btn-next { width: 100%; }
}
