/* ==========================================================================
 * 11-guias.css · parte 11/11 — Guías y metodología
 * Orden de carga obligatorio (reproduce la cascada del styles.css original).
 * No reordenar los <link> ni mover reglas entre partes sin revisar la cascada.
 * ========================================================================== */

/* ── Sección Guías y Metodología ────────────────────────────── */
.guias-page-section {
  padding-top: 14px;
}

.guias-page-section > .section-title-row > .scope-badge {
  display: none;
}

/* Maqueta: índice lateral fijo + contenido a todo el ancho disponible */
.guias-container {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  column-gap: 36px;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ── Índice de apartados ── */
.guias-nav-tabs {
  position: sticky;
  top: calc(var(--topbar-height) + 24px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  margin: 0;
  padding: 2px 20px 2px 0;
  border: 0;
  border-right: 1px solid var(--line-soft);
  overflow: visible;
}

.guias-nav-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  transition: color .12s ease, border-color .12s ease;
}

.guias-nav-tab svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--muted-2);
  transition: color .12s ease;
}

.guias-nav-tab:hover {
  background: transparent;
  color: var(--ink);
}

.guias-nav-tab:hover svg {
  color: var(--ink-3);
}

.guias-nav-tab.active {
  background: transparent;
  border-left-color: var(--accent);
  box-shadow: none;
  color: var(--ink);
  font-weight: 700;
}

.guias-nav-tab.active svg {
  color: var(--accent);
}

/* ── Paneles de apartados ── */
.guias-panels-wrap {
  width: 100%;
  min-width: 0;
}

.guias-panel {
  display: block;
}

.guias-panel[hidden] {
  display: none !important;
}

.guias-panel-header {
  margin: 0 0 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.guias-panel-title-area {
  display: block;
}

.guias-panel-title-area h3 {
  margin: 6px 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--ink);
}

.guias-panel-desc {
  max-width: 120ch;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Etiquetas sobrias dentro de las Guías */
#guias-section .scope-badge,
#guias-section .guias-mini-tag {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── Contenedor de contenido vacío (preparado para rellenar) ── */
.guias-empty-container {
  margin-top: 8px;
}

.guias-empty-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 40px 0;
  min-height: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.guias-empty-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.guias-empty-box h4 {
  margin: 0 0 6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.guias-empty-box p {
  margin: 0;
  max-width: 90ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Pestaña Principal: Aviso y Proyecto ── */
.guias-intro-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: none;
}

/* Disclaimer / Inversor Particular */
.guias-disclaimer-card {
  padding: 18px 22px;
  background: var(--amber-bg);
  border: 0;
  border-left: 3px solid var(--amber-text);
  border-radius: 2px;
}

.guias-disclaimer-header {
  display: block;
  margin: 0 0 10px;
}

.guias-disclaimer-icon-wrap {
  display: none;
}

.guias-disclaimer-header h4 {
  margin: 4px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.guias-disclaimer-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--amber-text);
}

.guias-disclaimer-body {
  max-width: 120ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.guias-disclaimer-body p {
  margin: 0 0 10px 0;
}

.guias-disclaimer-body p:last-child {
  margin-bottom: 0;
}

/* Tarjetas de sección */
.guias-section-card {
  padding: 30px 0 4px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.guias-section-title-wrap {
  margin-bottom: 18px;
}

.guias-section-title {
  display: block;
  margin: 8px 0 6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.guias-section-desc {
  max-width: 120ch;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.guias-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* Encabezados decorativos: fuera iconos y cajas dentro de las Guías */
#guias-section .guias-section-title svg,
#guias-section .guias-lines-title-row h4 svg,
#guias-section .guias-df-header h3 svg,
#guias-section .guias-df-box h4 svg,
#guias-section .guias-ia-quota-title svg,
#guias-section .guias-circulante-title-wrap h5 svg,
#guias-section .guias-info-callout-icon,
#guias-section .guias-heart-icon,
#guias-section .guias-line-rule-box > svg {
  display: none;
}

/* Grid de funcionalidades */
.guias-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 28px;
  margin-top: 6px;
  border-top: 1px solid var(--line-soft);
}

.guias-feature-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 0 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  cursor: pointer;
  transition: none;
}

.guias-feature-card:hover {
  background: transparent;
  border-color: var(--line-soft);
  transform: none;
}

.guias-feature-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.guias-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: none;
  color: var(--muted-2);
}

.guias-feature-card:hover .guias-feature-icon {
  color: var(--accent);
}

.guias-feature-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.guias-feature-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* Panel IA & Sectores */
.guias-ia-panel {
  border-top: 1px solid var(--line);
}

.guias-ia-sectors-info {
  margin-bottom: 22px;
}

.guias-info-callout {
  display: block;
  padding: 0 0 0 18px;
  margin: 0;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--line-mid);
  border-radius: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.guias-info-callout p {
  max-width: 120ch;
  margin: 0;
}

/* Quotas IA */
.guias-ia-quota-box {
  padding: 24px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
}

.guias-ia-quota-title {
  display: block;
  margin: 0 0 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.guias-ia-quota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4px 40px;
}

.guias-quota-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.guias-quota-card.highlight {
  background: transparent;
  border: 0;
}

.guias-quota-badge {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.guias-quota-badge.highlight {
  background: none;
  color: var(--green-text);
}

.guias-quota-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.guias-quota-card p {
  max-width: 90ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* Tarjeta de Fase Beta y Donaciones */
.guias-beta-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}

.guias-beta-content {
  display: block;
}

.guias-beta-header {
  margin-bottom: 10px;
}

.guias-beta-header h3 {
  margin: 8px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}

.guias-beta-text {
  max-width: 120ch;
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.guias-beta-callout {
  display: block;
  padding: 0 0 0 18px;
  margin: 0 0 20px;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--line-mid);
  border-radius: 0;
}

.guias-beta-callout p {
  max-width: 120ch;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.guias-beta-action {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.guias-donate-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
  transition: background .12s ease;
}

.guias-donate-action-btn:hover {
  background: var(--accent-hover);
  transform: none;
  box-shadow: none;
}

.guias-donate-action-btn svg {
  color: #fff;
}

.guias-donate-subnote {
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Sub-navegación de Datos Financieros ── */
.guias-subnav-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0 0 28px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.guias-subnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .12s ease, border-color .12s ease;
}

.guias-subnav-tab svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--muted-2);
  transition: color .12s ease;
}

.guias-subnav-tab:hover {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}

.guias-subnav-tab:hover svg {
  color: var(--ink-3);
}

.guias-subnav-tab.active {
  background: transparent;
  color: var(--ink);
  border-bottom-color: var(--accent);
  box-shadow: none;
}

.guias-subnav-tab.active svg {
  color: var(--accent);
}

/* ── Paneles de Datos Financieros / IA ── */
.guias-df-wrap {
  width: 100%;
}

.guias-df-panels {
  width: 100%;
}

.guias-df-panel {
  display: block;
}

.guias-df-panel[hidden] {
  display: none !important;
}

.guias-df-card {
  padding: 0;
  margin: 0 0 34px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.guias-df-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.guias-df-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guias-df-header h3 {
  margin: 4px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.guias-df-en-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.guias-df-desc {
  max-width: 120ch;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.guias-df-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px 36px;
  margin-bottom: 28px;
}

.guias-df-box {
  padding: 2px 0 2px 18px;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--line-mid);
  border-radius: 0;
}

.guias-df-box h4 {
  margin: 0 0 6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.guias-df-box p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ── Desglose de líneas (cuenta, balance, cash flow, IA) ── */
.guias-lines-section {
  margin-top: 34px;
}

.guias-lines-title-row {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.guias-lines-title-row h4 {
  margin: 6px 0 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.guias-lines-title-row p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.guias-lines-list {
  display: flex;
  flex-direction: column;
}

.guias-line-card {
  display: block;
  padding: 26px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
}

.guias-line-card:hover {
  border-color: var(--line-soft);
}

.guias-line-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin: 0 0 12px;
}

.guias-line-card-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.guias-line-number {
  display: inline-block;
  width: auto;
  height: auto;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--muted-2);
  background: none;
  border: 0;
  border-radius: 0;
}

.guias-line-card-head h5 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.guias-line-en-name {
  display: inline;
  margin-top: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.guias-line-type-badge {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.guias-line-type-badge.non-cash {
  background: none;
  border: 0;
  color: var(--amber-text);
}

.guias-line-type-badge.warning {
  background: none;
  border: 0;
  color: #ef4444;
}

.guias-line-type-badge.highlight {
  background: none;
  border: 0;
  color: var(--accent-text);
}

.guias-line-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.guias-line-desc {
  max-width: 120ch;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.guias-line-rule-box {
  display: block;
  padding: 2px 0 2px 18px;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--line-mid);
  border-radius: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.guias-line-rule-box.amber {
  background: transparent;
  border-color: var(--amber-text);
  color: var(--ink-2);
}

.guias-line-rule-box.red {
  background: transparent;
  border-color: #ef4444;
  color: var(--ink-2);
}

.guias-line-rule-box.green {
  background: transparent;
  border-color: var(--green-text);
  color: var(--ink-2);
}

/* ── Guías: Ejemplo real con capturas del informe ────────────── */
.guias-example-figure {
  margin: 0;
}

.guias-example-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #ffffff;
  box-shadow: none;
}

.guias-example-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
}

.guias-example-figure.compact {
  margin: 0;
}

/* ── Guías: Módulo Especial de Circulante e Inflación ────────── */
.guias-circulante-section {
  padding: 20px 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
}

.guias-circulante-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.guias-circulante-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guias-circulante-title-wrap h5 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.guias-circulante-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 24px;
  margin: 16px 0;
}

.guias-circulante-item {
  padding: 12px 0 0;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--line-mid);
  border-radius: 0;
  text-align: left;
}

.guias-circulante-item-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.guias-circulante-item-val {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.guias-circulante-item-val.plus {
  color: var(--amber-text);
}

.guias-circulante-item-val.minus {
  color: var(--green-text);
}

.guias-circulante-item-val.total {
  color: var(--accent);
}

.guias-circulante-item-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-strong);
}

.guias-circulante-answer-box {
  padding: 2px 0 2px 18px;
  margin: 16px 0 0;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--green-text);
  border-radius: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.guias-circulante-answer-badge {
  display: inline-block;
  padding: 0;
  margin-bottom: 6px;
  border-radius: 0;
  background: none;
  color: var(--green-text);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ── Adaptación a pantallas estrechas ── */
@media (max-width: 1024px) {
  .guias-container {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }
  .guias-nav-tabs {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    margin-bottom: 22px;
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .guias-nav-tab {
    width: auto;
    padding: 7px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }
  .guias-nav-tab.active {
    border-bottom-color: var(--accent);
  }
}

@media (max-width: 860px) {
  .guias-panel-title-area h3 {
    font-size: 22px;
  }
  .guias-df-header h3 {
    font-size: 21px;
  }
}
.sidebar-donations-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--accent-mid);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  text-align: left;
  box-sizing: border-box;
}

.sidebar-donations-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-light);
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(67, 56, 202, 0.12);
}

.donations-btn-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.donations-btn-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.donations-btn-badge {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-light);
  color: var(--accent-text);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.donations-modal {
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px 28px 22px;
}

.donations-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.donations-header-badge {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-faint), var(--accent-soft));
  border: 1px solid var(--accent-mid);
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.18);
}

.donations-heart-big {
  font-size: 26px;
  line-height: 1;
}

.donations-modal-header h3 {
  margin: 0 0 6px 0;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.donations-modal-header p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.donations-amount-section {
  margin-bottom: 18px;
  padding: 13px 15px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.donations-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 9px;
}

.donations-amount-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.donation-amount-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.donation-amount-pill small {
  font-size: 9.5px;
  font-weight: 400;
  color: var(--soft-muted);
  margin-top: 2px;
}

.donation-amount-pill:hover {
  border-color: var(--accent-light);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.donation-amount-pill.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-faint), var(--accent-soft));
  color: var(--accent-dark);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.18);
}

.donation-amount-pill.active small {
  color: var(--accent-dark);
  font-weight: 600;
}

.donations-custom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.donations-custom-label {
  font-size: 12px;
  color: var(--muted);
}

.donations-custom-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 105px;
}

.donations-custom-input-wrap input {
  width: 100%;
  height: 32px;
  padding: 0 22px 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  box-sizing: border-box;
}

.donations-custom-input-wrap input:focus {
  border-color: var(--accent);
  outline: none;
}

.donations-custom-input-wrap .currency-symbol {
  position: absolute;
  right: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.donations-methods-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donation-method-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.donation-method-btn.method-paypal {
  background: linear-gradient(135deg, #0070ba 0%, #009cde 100%);
  color: #fff;
  border-color: #0068ad;
  box-shadow: 0 4px 12px rgba(0, 112, 186, 0.25);
}

.donation-method-btn.method-paypal:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 112, 186, 0.35);
}

.donation-method-btn.method-paypal:active {
  transform: translateY(0);
}

.donation-method-btn .method-icon-svg {
  flex-shrink: 0;
}

.donation-method-btn .method-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.donation-method-btn .method-info strong {
  font-size: 14px;
  line-height: 1.2;
}

.donation-method-btn .method-info small {
  font-size: 10.5px;
  opacity: 0.9;
  margin-top: 2px;
}

.donation-method-btn .method-arrow {
  font-size: 16px;
  font-weight: 700;
}

.compact-btn {
  min-height: 26px;
  padding: 0 10px;
  font-size: 11px;
}

.donations-legal-note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--soft-muted);
  text-align: center;
  line-height: 1.55;
}

/* ── Botón Sidebar Reportes ────────────────────────────────── */
.sidebar-report-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line-soft2);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  text-align: left;
  box-sizing: border-box;
}

.sidebar-report-btn:hover {
  background: var(--surface-3);
  border-color: var(--line-mid);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.report-btn-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.report-btn-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.report-btn-badge {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--line-soft2);
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Zona de capturas de pantalla / Dropzone para reportes ── */
.report-attach-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-attach-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.report-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border: 1.5px dashed var(--line-mid);
  border-radius: 6px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  outline: none;
}

.report-dropzone:hover,
.report-dropzone:focus-visible,
.report-dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.report-dropzone-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  pointer-events: none;
}

.report-dropzone-content svg {
  color: var(--accent);
  flex-shrink: 0;
}

.report-dropzone-content strong {
  color: var(--ink);
}

.report-previews-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.report-thumb-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-mid);
  background: #000;
}

.report-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-thumb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.report-thumb-del:hover {
  background: #dc2626;
}

/* ==========================================================================
   ADMINISTRACIÓN Y PANTALLA DE REPORTES
   - Badges de admin y botones de regeneración de análisis
   - Parte 1: Supervisión de Informes IA por Empresa y Resultados
   - Parte 2: Tabla y Gestión de Reportes Generales
   ========================================================================== */

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.35);
}

.account-plan-admin {
  color: #9333ea !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}

.filing-action-regenerate {
  background: var(--red-bg) !important;
  color: var(--red-text) !important;
  border: 1px solid var(--red-border) !important;
  font-weight: 700 !important;
  transition: all 0.15s ease;
}

.filing-action-regenerate:hover {
  background: var(--red-bg) !important;
  border-color: #f87171 !important;
  color: var(--red-text) !important;
  transform: translateY(-1px);
}

.admin-regen-report-btn {
  background: var(--red-bg) !important;
  color: var(--red-text) !important;
  border: 1px solid #fca5a5 !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.admin-regen-report-btn:hover {
  background: var(--red-bg) !important;
  border-color: #ef4444 !important;
  color: #7f1d1d !important;
  transform: translateY(-1px);
}

/* ── Contenedor General de la Pantalla de Reportes ─────────────────── */
.reportes-page-section {
  padding: 24px 32px 64px;
}

.reports-page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Encabezado y Navegación de Pestañas ────────────────────────────── */
.reports-header-card {
  background: var(--surface);
  border: 1px solid var(--line-soft2);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.reports-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reports-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.reports-main-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.reports-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fdf4ff;
  border: 1px solid #f0abfc;
  color: #86198f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.reports-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 860px;
}

.reports-tabs-nav {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-3);
  flex-wrap: wrap;
}

.reports-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--line-soft2);
  background: var(--surface-2);
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reports-nav-btn:hover {
  background: var(--surface-3);
  color: var(--ink-2);
  border-color: var(--line-mid);
}

.reports-nav-btn.active {
  background: #0f172a;
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
}

.reports-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.reports-nav-btn.active .reports-tab-badge {
  background: #f87171;
  color: #7f1d1d;
}

/* ── KPI Stats Grid ────────────────────────────────────────────────── */
.reports-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.reports-stat-card {
  background: var(--surface);
  border: 1px solid var(--line-soft2);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stat-icon-blue { background: var(--info-bg); color: var(--info-text); }
.stat-icon-amber { background: var(--amber-bg); color: #d97706; }
.stat-icon-red { background: var(--red-bg); color: var(--red-text); }
.stat-icon-green { background: var(--green-bg); color: var(--green-text); }

.stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Barras de Herramientas y Filtros ───────────────────────────────── */
.reports-tab-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reports-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft2);
  border-radius: 10px;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.reports-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
}

.reports-search-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--muted-2);
  pointer-events: none;
}

.reports-search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: 6px;
  border: 1px solid var(--line-mid);
  font-size: 13px;
  outline: none;
  background: var(--surface-2);
  color: var(--ink);
  transition: all 0.15s ease;
}

.reports-search-input:focus {
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.reports-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.report-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft2);
  background: var(--surface-2);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}

.report-chip:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.report-chip.active {
  background: #0f172a;
  border-color: var(--ink);
  color: #fff;
}

.reports-filters-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reports-select {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-mid);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.reports-select:focus {
  border-color: var(--ink);
  background: var(--surface);
}

/* ── PARTE 1: Tarjetas de Empresas y Resultados de IA ─────────────── */
.company-reports-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-reports-card {
  background: var(--surface);
  border: 1px solid var(--line-soft2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease;
}

.company-reports-card.card-has-errors {
  border-color: #fca5a5;
  box-shadow: 0 0 0 1px var(--red-border);
}

.company-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft2);
  gap: 16px;
  flex-wrap: wrap;
}

.company-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.company-card-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #0f172a;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.company-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-card-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.company-card-ticker {
  background: var(--line-soft2);
  color: var(--ink-3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.company-card-sub {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.company-error-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--red-bg);
  border: 1px solid #fca5a5;
  color: var(--red-text);
  font-size: 12px;
  font-weight: 700;
}

.company-ok-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green-text-2);
  font-size: 12px;
  font-weight: 700;
}

/* Lista de Resultados de la Empresa */
.company-results-container {
  display: flex;
  flex-direction: column;
}

.company-result-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--surface-3);
  transition: background 0.12s ease;
}

.company-result-item:last-child {
  border-bottom: 0;
}

.company-result-item:hover {
  background: var(--surface-2);
}

.result-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.result-item-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-item-period {
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

.result-item-accession {
  font-size: 11px;
  color: var(--muted-2);
  font-family: monospace;
}

.result-item-date,
.result-item-model {
  font-size: 12px;
  color: var(--muted);
}

.result-item-version {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--accent-mid);
  border-radius: 4px;
  background: var(--accent-faint);
  color: var(--accent-dark);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.result-item-feedback-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-text);
  font-size: 12px;
  font-weight: 700;
}

.res-rating-pill .star {
  color: #f59e0b;
}

.res-rating-pill.pill-muted {
  background: var(--surface-2);
  border-color: var(--line-soft2);
  color: var(--muted-2);
}

.res-error-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.res-error-pill.pill-warning {
  background: var(--red-bg);
  border: 1px solid #fca5a5;
  color: var(--red-text);
}

.res-error-pill.pill-ok {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green-text);
}

.result-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-regen {
  background: #b91c1c !important;
  color: #fff !important;
  border-color: #991b1b !important;
  font-weight: 700 !important;
}

.btn-regen:hover {
  background: #991b1b !important;
}

/* Incidencias reportadas por usuarios en análisis */
.res-error-reports-wrap {
  margin-top: 14px;
  padding: 14px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 8px;
}

.res-error-reports-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 10px;
}

.res-errors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.res-error-card {
  background: var(--surface);
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 12px 14px;
}

.res-error-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.res-error-category {
  font-weight: 700;
  color: var(--red-text);
  background: var(--red-bg);
  padding: 1px 6px;
  border-radius: 4px;
}

.res-error-date,
.res-error-user {
  color: var(--muted);
}

.res-error-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 10px;
}

.res-error-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--surface-3);
}

.res-error-status-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-strong);
}

.res-error-status-select,
.general-status-select {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-mid);
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
}

.res-error-notes-input,
.general-notes-input {
  flex: 1;
  min-width: 160px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-mid);
  font-size: 12px;
  outline: none;
}

.res-error-notes-input:focus,
.general-notes-input:focus {
  border-color: var(--ink);
}

/* ── PARTE 2: Tabla de Reportes Generales ──────────────────────────── */
.reports-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line-soft2);
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.reports-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.reports-data-table th {
  background: var(--surface-2);
  color: var(--muted-strong);
  font-weight: 700;
  font-size: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reports-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--surface-3);
  vertical-align: top;
}

.reports-data-table tr:last-child td {
  border-bottom: 0;
}

.reports-data-table tr:hover td {
  background: var(--surface-2);
}

.col-id {
  font-weight: 700;
  color: var(--muted);
  width: 50px;
}

.col-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.col-category {
  white-space: nowrap;
}

.category-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--line-soft2);
  color: var(--ink-3);
}

.category-tag.tag-bug { background: var(--red-bg); color: var(--red-text); }
.category-tag.tag-screener { background: var(--amber-bg); color: var(--amber-text); }
.category-tag.tag-market_data { background: var(--info-bg); color: var(--info-text); }
.category-tag.tag-portfolio { background: #ede9fe; color: #5b21b6; }
.category-tag.tag-suggestion { background: var(--green-bg); color: #166534; }

.col-details {
  max-width: 380px;
}

.general-report-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.general-report-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted-strong);
  line-height: 1.45;
  white-space: pre-wrap;
}

.report-images-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.report-img-thumb-link {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-mid);
  background: #000;
}

.report-img-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease;
}

.report-img-thumb:hover {
  transform: scale(1.1);
}

.col-user {
  font-size: 12px;
  color: var(--muted-strong);
  white-space: nowrap;
}

.status-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.status-badge.status-pending { background: var(--red-bg); color: var(--red-text); }
.status-badge.status-reviewed { background: var(--amber-bg); color: var(--amber-text); }
.status-badge.status-resolved { background: var(--green-bg); color: var(--green-text); }
.status-badge.status-dismissed { background: var(--surface-3); color: var(--muted); }

.report-notes-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reports-table-empty,
.reports-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 12px;
  border: 1px dashed var(--line-mid);
}

.reports-empty-state h3 {
  margin: 12px 0 6px;
  color: var(--ink);
}

/* ── Acceso no autorizado a reportes ───────────────────────────────── */
.reports-unauthorized-card {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-soft2);
  border-radius: 12px;
  padding: 36px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.unauthorized-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.reports-unauthorized-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.reports-unauthorized-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ── Estilos de Análisis Anual 10-K (Conclusión, Extractos SEC y Calificación) ── */
.annual-conclusion-section {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.annual-conclusion-header {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.annual-conclusion-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
}

.annual-conclusion-subtitle {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.annual-deepdive-card {
  padding: 18px 20px;
  border: 1px solid var(--line-soft2);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.annual-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.annual-card-text {
  max-width: 1080px;
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #374151;
}

/* Cambios en la dirección */
.ceo-change-card {
  border-left: 3px solid var(--accent);
}

.ceo-change-separator {
  margin: 14px 0;
  border-top: 1px dashed var(--line-soft2);
}

.ceo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.ceo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 4px 0 12px;
}

.ceo-person-box {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft2);
  border-radius: 6px;
}

.ceo-block-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.ceo-person-name {
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.ceo-person-role {
  font-weight: 500;
  color: var(--muted);
}

.ceo-field {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.55;
  color: #374151;
}

.ceo-field-label {
  font-weight: 700;
  color: var(--ink-3);
}

.ceo-disclaimer {
  margin: 10px 0 0;
  font-size: 10.5px;
  font-style: italic;
  color: var(--muted-2);
}

@media (max-width: 700px) {
  .result-preview { padding: 20px 16px; }
  .annual-deepdive-card { padding: 14px; }
  .report-block .table-wrap td { font-size: 11.5px; }
}

.annual-metric-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.annual-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--surface-3);
  border: 1px solid var(--line-soft2);
  border-radius: 4px;
  font-size: 10.5px;
  color: var(--ink-3);
}

.annual-badge strong {
  color: var(--ink);
}

.annual-badge.badge-accent {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  color: var(--amber-text);
}

/* Nota «Posición en el ciclo» (empresas cíclicas): lecturas de tiempo destacadas */
.cycle-stat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.cycle-stat {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-left: 3px solid #d97706;
  border-radius: 5px;
}

.cycle-stat-value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--amber-text);
}

.cycle-stat-label {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--amber-text);
}

/* Notas del trimestre (10-Q) */
.quarter-guidance-card {
  border-left: 3px solid var(--accent);
}

.quarter-note-card {
  border-left: 3px solid var(--line-mid);
}

.quarter-guidance-badge {
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.quarter-guidance-badge.status-raised {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-text-2);
}

.quarter-guidance-badge.status-lowered,
.quarter-guidance-badge.status-withdrawn {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red-text);
}

.quarter-guidance-badge.status-new,
.quarter-guidance-badge.status-reaffirmed {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  color: var(--amber-text);
}

/* Gráfico de evolución del número de acciones */
.shares-chart {
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft2);
  border-radius: 6px;
}

.sc-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-strong);
  margin-bottom: 4px;
}

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

.annual-calc-box {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 6px 6px 0;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.5;
}

.annual-calc-box strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.annual-calc-box p {
  margin: 2px 0;
}

.annual-calc-box .calc-impact {
  margin-top: 6px;
  color: var(--amber-text);
  font-weight: 600;
}

/* Extractos visuales SEC */
.sec-extract-card {
  margin: 10px 0 6px;
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.sec-extract-head {
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sec-extract-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--muted-strong);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sec-extract-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.sec-extract-summary {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
}

.sec-table-wrap {
  overflow-x: auto;
}

.sec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.sec-table th {
  padding: 6px 10px;
  text-align: left;
  background: #1e293b;
  color: var(--surface-2);
  font-weight: 700;
  border-bottom: 1px solid #334155;
  white-space: nowrap;
}

.sec-table td {
  padding: 5px 10px;
  color: var(--ink-2);
  border-top: 1px solid var(--surface-3);
  border-right: 1px solid var(--surface-2);
}

.sec-table tbody tr:nth-child(odd) {
  background: var(--surface-2);
}

.sec-table tbody tr:hover {
  background: var(--surface-3);
}

.sec-highlight-yellow {
  background: #fef08a !important;
  color: #854d0e !important;
  font-weight: 700 !important;
}

.sec-highlight-orange {
  background: var(--accent-mid) !important;
  color: var(--accent-text) !important;
  font-weight: 700 !important;
}

.sec-highlight-soft {
  background: var(--line-soft2) !important;
  color: var(--ink-2) !important;
  font-weight: 600 !important;
}

.sec-table th.sec-th-num {
  text-align: right;
}

.sec-table td.sec-col-metric {
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

.sec-table td.sec-col-prev {
  font-weight: 600;
  color: var(--muted-strong);
  background-color: var(--surface-2);
  text-align: right;
  white-space: nowrap;
}

.sec-table td.sec-col-guidance {
  font-weight: 700;
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}

.sec-table td.sec-col-proj {
  font-weight: 700;
  color: #0d9488 !important;
  background-color: var(--green-bg) !important;
  text-align: right;
  white-space: nowrap;
}

.sec-table td.sec-col-num {
  font-weight: 600;
  text-align: right;
}

/* Watchlist */
.watchlist-card {
  border-left: 3px solid #16a34a;
}

.watchlist-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.watchlist-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 11px;
  line-height: 1.5;
  color: #374151;
}

.watchlist-check {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green-text);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Nota de Resultados (Rating) */
.annual-rating-card {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.annual-rating-card.score-high {
  background: linear-gradient(135deg, var(--green-bg) 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
}

.annual-rating-card.score-mid {
  background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%);
  border: 2px solid #eab308;
}

.annual-rating-card.score-low {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #ef4444;
}

.annual-rating-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.annual-rating-badge {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
}

.annual-rating-score {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.annual-rating-score small {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.annual-rating-rationale {
  max-width: 1080px;
  margin: 6px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 500;
}

.annual-rating-disclaimer {
  margin: 6px 0 0;
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
}


/* ── Sistema de Temas (Ajustes → Apariencia) ────────────────── */

/* Tema Naranja (paleta clásica) */
html[data-theme="naranja"] {
  --topbar: #242424;
  --accent: #ff9900;
  --accent-hover: #ffab2e;
  --accent-dark: #d97900;
  --accent-text: #d97900;
  --accent-light: #ffb84d;
  --accent-mid: #ffd9a0;
  --accent-soft: #fff0d9;
  --accent-faint: #fff8ec;
  --accent-deep: #b96700;
  --accent-ink: #7c3e00;
  --accent-on: #1e1e1e;
}

/* ── Modo oscuro: variables base ─────────────────────────────── */
html[data-mode="dark"] {
  --ink: #e6eaf1;
  --ink-2: #dbe2ec;
  --ink-3: #b6c0cf;
  --muted: #98a2b3;
  --muted-strong: #aab4c3;
  --muted-2: #6e7888;
  --soft-muted: #6e7888;
  --line: #2b3240;
  --line-soft: #232935;
  --line-soft2: #2b3240;
  --line-mid: #3d4654;
  --surface: #14181e;
  --surface-2: #191f27;
  --surface-3: #1e242e;
  --surface-soft: #191f27;
  --topbar: #0d1014;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-dark: #4f46e5;
  --accent-text: #a5b4fc;
  --accent-light: #818cf8;
  --accent-mid: #4338ca;
  --accent-soft: rgba(99, 102, 241, .2);
  --accent-faint: rgba(99, 102, 241, .12);
  --accent-deep: #c7d2fe;
  --accent-ink: #e0e7ff;
  --accent-on: #fff;
  --info-text: #93c5fd;
  --info-solid: #3b82f6;
  --info-bg: rgba(59, 130, 246, .12);
  --info-border: rgba(59, 130, 246, .4);
  --green: #38ad4f;
  --green-text: #4ade80;
  --green-text-2: #4ade80;
  --green-bg: rgba(34, 197, 94, .1);
  --green-border: rgba(74, 222, 128, .35);
  --red-border: rgba(248, 113, 113, .35);
  --amber-border: rgba(251, 191, 36, .35);
  --red: #f04b43;
  --red-text: #f87171;
  --red-bg: rgba(239, 68, 68, .12);
  --yellow: #3a3617;
  --amber-text: #fbbf24;
  --amber-bg: rgba(251, 191, 36, .08);
  --shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

html[data-theme="naranja"][data-mode="dark"] {
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-dark: #d97706;
  --accent-text: #fbbf24;
  --accent-light: #fbbf24;
  --accent-mid: #b45309;
  --accent-soft: rgba(245, 158, 11, .16);
  --accent-faint: rgba(245, 158, 11, .1);
  --accent-deep: #fcd34d;
  --accent-ink: #fde68a;
  --accent-on: #1e1e1e;
}


/* Ajustes puntuales sobre elementos con estilos muy acoplados */
html[data-mode="dark"] .search-wrap input { color: var(--ink); }
html[data-mode="dark"] .modal-backdrop { background: rgba(0, 0, 0, .6); }
html[data-mode="dark"] .settings-group-title,
html[data-mode="dark"] .settings-check-copy strong { color: var(--ink-2); }
html[data-mode="dark"] .settings-group-desc,
html[data-mode="dark"] .settings-check-copy small,
html[data-mode="dark"] .settings-subs-title,
html[data-mode="dark"] .settings-sub-checkbox-row,
html[data-mode="dark"] .settings-note { color: var(--muted-strong); }
html[data-mode="dark"] .settings-sub-checkbox-row input:checked + .settings-check-custom.small { background: var(--green-text); border-color: var(--green-text); }
html[data-mode="dark"] #app-report-title,
html[data-mode="dark"] #app-report-category,
html[data-mode="dark"] #app-report-desc,
html[data-mode="dark"] #error-report-category,
html[data-mode="dark"] #error-report-desc,
html[data-mode="dark"] #pref-username {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  border-color: var(--line-mid) !important;
}
html[data-mode="dark"] .report-dropzone { background: var(--surface-2); border-color: var(--line-mid); }
html[data-mode="dark"] .pa-ticker-results,
html[data-mode="dark"] .pa-ticker-option { background: var(--surface-2); color: var(--ink); }
html[data-mode="dark"] .pa-ticker-option:hover { background: var(--surface-3); }
html[data-mode="dark"] ::-webkit-scrollbar-track { background: var(--surface-2); }
html[data-mode="dark"] ::-webkit-scrollbar-thumb { background: #3a4352; }
html[data-mode="dark"] ::-webkit-scrollbar-thumb:hover { background: #4a5464; }

/* ── Modal de Ajustes: pestañas ─────────────────────────────── */

.settings-modal { width: min(680px, 94vw); max-height: 88vh; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.settings-modal .modal-close { z-index: 5; }
.settings-modal-header { padding: 20px 24px 14px; margin-bottom: 0; border-bottom: 1px solid var(--line-soft); }
.settings-body { display: flex; min-height: 0; }
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 168px;
  flex: 0 0 168px;
  padding: 14px 10px;
  border-right: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.settings-nav-item:hover { background: var(--surface-3); color: var(--ink); }
.settings-nav-item.active { background: var(--accent-soft); color: var(--accent-text); }
.settings-nav-item .settings-nav-icon { font-size: 14px; line-height: 1; }
.settings-panels { flex: 1; min-width: 0; overflow-y: auto; padding: 18px 22px 20px; }
.settings-form { display: flex; flex-direction: column; gap: 16px; }
.settings-panel[hidden] { display: none !important; }

.settings-panel-title { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.settings-panel-sub { margin: 0 0 6px; font-size: 11.5px; color: var(--muted); }

@media (max-width: 640px) {
  .settings-body { flex-direction: column; }
  .settings-nav {
    flex-direction: row;
    width: 100%;
    flex: none;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    overflow-x: auto;
  }
  .settings-nav-item { width: auto; white-space: nowrap; padding: 6px 10px; font-size: 12px; }
  .settings-panels { padding: 14px 16px 18px; }
}

/* ── Apariencia: tarjetas de tema, interruptor oscuro, idioma ── */

.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1.5px solid var(--line-soft2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.theme-option:hover { border-color: var(--accent-light); transform: translateY(-1px); }
.theme-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-option.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.theme-option .theme-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s ease, transform .15s ease;
}
.theme-option.active .theme-check { opacity: 1; transform: scale(1); }
.theme-preview {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 7px;
  border: 1px solid var(--line-soft2);
  overflow: hidden;
  height: 64px;
}
.theme-preview-bar { height: 14px; display: flex; align-items: center; gap: 4px; padding: 0 6px; }
.theme-preview-dot { width: 6px; height: 6px; border-radius: 2px; background: rgba(255,255,255,.35); }
.theme-preview-content { flex: 1; display: flex; gap: 6px; padding: 6px; }
.theme-preview-side { width: 16px; border-radius: 3px; }
.theme-preview-main { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.theme-preview-line { height: 7px; border-radius: 3px; }
.theme-preview-line.short { width: 55%; }
.theme-preview-title { display: flex; flex-direction: column; gap: 1px; padding: 0 2px; }
.theme-preview-title strong { font-size: 12.5px; color: var(--ink-2); }
.theme-preview-title small { font-size: 11px; color: var(--muted); }

.settings-switch-row { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; padding: 4px 0; }
.settings-switch-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.settings-switch { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--line-mid); flex-shrink: 0; transition: background .18s ease; }
.settings-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .18s ease; }
.settings-switch-row input:checked + .settings-switch { background: var(--accent); }
.settings-switch-row input:checked + .settings-switch::after { transform: translateX(16px); }
.settings-switch-copy { display: flex; flex-direction: column; }
.settings-switch-copy strong { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.settings-switch-copy small { font-size: 11px; color: var(--muted); margin-top: 1px; }

.settings-select-row { display: flex; flex-direction: column; gap: 4px; }
.settings-select-row span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.settings-select-row select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line-mid);
  border-radius: 7px;
  padding: 0 8px;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink);
}
.settings-soon-note { font-size: 11px; color: var(--muted); }

/* ── Página legal dentro de la aplicación ── */
.company-wrap .company-section.legal-page-section { padding: 22px 0 0; }

/* ── Artículos de guías y páginas legales servidos dentro de la aplicación ── */
.guias-article-view,
.legal-article-view {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 36px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.68;
}
.guias-article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.guias-article-back:hover { color: var(--accent-dark); text-decoration: underline; }
.guias-article-view .guia-meta,
.legal-article-view .guia-meta { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.guias-article-view h1,
.legal-article-view h1 { margin: 6px 0 14px; color: var(--ink-2); font-size: 30px; line-height: 1.25; letter-spacing: -.02em; }
.guias-article-view h2,
.legal-article-view h2 { margin: 32px 0 10px; color: var(--ink-2); font-size: 21px; line-height: 1.3; }
.guias-article-view h3,
.legal-article-view h3 { margin: 22px 0 6px; color: var(--ink-2); font-size: 17px; }
.guias-article-view p,
.legal-article-view p { margin: 10px 0; }
.guias-article-view a,
.legal-article-view a { color: var(--accent-text); }
.guias-article-view a:hover,
.legal-article-view a:hover { text-decoration: underline; }
.guias-article-view ul,
.guias-article-view ol,
.legal-article-view ul,
.legal-article-view ol { margin: 10px 0 10px 22px; padding: 0; }
.guias-article-view li,
.legal-article-view li { margin: 6px 0; }
.guias-article-view strong,
.legal-article-view strong { color: var(--ink-2); }
.guias-article-view .guia-lead,
.legal-article-view .guia-lead { color: var(--muted-strong); font-size: 17px; }
.guias-article-view blockquote,
.guias-article-view .guia-formula,
.legal-article-view blockquote,
.legal-article-view .guia-formula {
  margin: 14px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: var(--surface-3);
  font-family: ui-monospace, 'Cascadia Mono', monospace;
  font-size: 14.5px;
  overflow-x: auto;
}
.guias-article-view table,
.legal-article-view table {
  width: 100%;
  margin: 14px 0 18px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.guias-article-view th,
.guias-article-view td,
.legal-article-view th,
.legal-article-view td {
  padding: 8px 12px;
  border: 1px solid var(--line-mid);
  text-align: left;
  vertical-align: top;
}
.guias-article-view th,
.legal-article-view th { background: var(--surface-3); color: var(--ink-2); font-size: 14px; }
.guias-article-view .guia-source,
.guias-article-view .guia-notes,
.legal-article-view .guia-source,
.legal-article-view .guia-notes { color: var(--muted); font-size: 13.5px; }
.guias-article-view .guia-source,
.legal-article-view .guia-source { padding-left: 12px; border-left: 3px solid var(--line-mid); }
.guias-article-view .guia-rating,
.legal-article-view .guia-rating { padding: 12px 16px; border: 1px solid var(--line-mid); border-radius: 8px; background: var(--surface-2); }
.guias-article-view .guia-faq,
.guias-article-view .guia-related,
.legal-article-view .guia-faq,
.legal-article-view .guia-related { margin-top: 34px; border-top: 1px solid var(--line-soft2); padding-top: 16px; }
.guias-article-view .guia-faq h2,
.guias-article-view .guia-related h2,
.legal-article-view .guia-faq h2,
.legal-article-view .guia-related h2 { margin-top: 0; }
.guias-article-view .guia-cards,
.legal-article-view .guia-cards { display: grid; gap: 12px; list-style: none; margin: 18px 0; padding: 0; }
.guias-article-view .guia-cards a,
.legal-article-view .guia-cards a {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
}
.guias-article-view .guia-cards a:hover,
.legal-article-view .guia-cards a:hover { border-color: var(--accent); background: var(--surface-2); text-decoration: none; }
.guias-article-view .guia-cards strong,
.legal-article-view .guia-cards strong { display: block; color: var(--ink-2); }
.guias-article-view .guia-cards span,
.legal-article-view .guia-cards span { color: var(--muted); font-size: 13.5px; }
.guias-article-view .guia-cta,
.legal-article-view .guia-cta {
  display: inline-block;
  margin: 8px 0;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 600;
  text-decoration: none;
}
.guias-article-view .guia-cta:hover,
.legal-article-view .guia-cta:hover { background: var(--accent-hover); text-decoration: none; }
.guias-article-view .guia-figure,
.legal-article-view .guia-figure { margin: 18px 0; }
.guias-article-view .guia-figure img,
.legal-article-view .guia-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  background: #fff;
}
.guias-article-view .guia-figure figcaption,
.legal-article-view .guia-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.guias-article-view .guia-disclaimer,
.legal-article-view .guia-disclaimer { margin-top: 26px; color: var(--muted); font-size: 13px; }
.legal-article-view .guia-cookie-settings {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-on);
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.legal-article-view .guia-cookie-settings:hover { background: var(--accent-hover); }
.legal-article-view .legal-lang-notice {
  margin: 16px 0 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--muted-strong);
  font-size: 13.5px;
  line-height: 1.55;
}
.legal-article-view .legal-lang-notice a { color: var(--accent-text); }

@media (max-width: 640px) {
  .guias-article-view h1,
  .legal-article-view h1 { font-size: 24px; }
  .guias-article-view table,
  .legal-article-view table { display: block; overflow-x: auto; }
}
