/* ===== CONTENEDOR PRINCIPAL ===== */
.metodo-container {
    max-width: 850px;
    margin: 80px auto;
    padding: 0 25px;
    line-height: 1.7;
    color: #222;
}

/* ===== TÍTULOS ===== */
.metodo-title {
    font-size: 2.4rem;
    margin-bottom: 10px;
    color: #111;
    text-align: center;
}

.metodo-subtitle {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}

/* ===== SECCIONES ===== */
.metodo-section {
    margin-bottom: 40px;
}

.metodo-section h2 {
    font-size: 1.6rem;
    color: #111;
    margin-bottom: 10px;
}

.metodo-section p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
    .metodo-container {
        margin: 40px auto;
        padding: 0 20px;
    }

    .metodo-title {
        font-size: 2rem;
    }
}
/* CONTENEDOR CENTRAL */
.metodo-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 25px;
    line-height: 1.7;
    color: #222;
}

/* TITULOS */
.metodo-title {
    font-size: 2.4rem;
    margin-bottom: 10px;
    color: #111;
    text-align: center;
}

.metodo-subtitle {
    font-size: 1.15rem;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}

/* SECCIONES */
.metodo-section {
    margin-bottom: 45px;
}

.metodo-section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #111;
}

.metodo-section p {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #333;
}

/* RESPONSIVE */
@media (max-width: 720px) {
    .metodo-container {
        margin: 40px auto;
        padding: 0 20px;
    }
}

/* ============================================================
   GLOBAL
============================================================ */
body {
    margin: 0;
    padding-top: 70px;
    background: #fafafa;
    font-family: Arial, sans-serif;
    color: #222;
}

/* ============================================================
   NAVBAR
============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background: black;
    z-index: 1000;
}

.navbar {
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-nav {
    height: 70px;
}

.menu-btn {
    font-size: 22px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
}

.nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.top-date {
    color: #ccc;
    font-size: 12px;
    margin-bottom: 8px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
}

.btn-suscripcion {
    background: #d9a404 !important;
    color: black !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
}

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 260px;
    height: 100%;
    background: #0a0a0a;
    color: white;
    padding: 80px 24px 40px;
    transition: 0.3s ease;
    overflow-y: auto;
    z-index: 1400;
    border-right: 1px solid #222;
}

.sidebar.open {
    left: 0;
}

.sidebar-close {
    position: absolute;
    top: 16px;
    right: 14px;
    font-size: 22px;
    cursor: pointer;
    color: white;
}

.side-title {
    font-size: 20px;
    margin-bottom: 14px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.side-subtitle {
    font-size: 16px;
    margin-top: 20px;
}

.side-list {
    list-style: none;
    padding: 0;
}

.side-list li {
    margin: 12px 0;
}

.side-list a {
    color: white;
    text-decoration: none !important;
    font-size: 1.05rem;
}

.side-list a:hover {
    color: #ffcc00;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1300;
}
.overlay.show {
    display: block;
}

/* ============================================================
   CONTENIDO PRINCIPAL — METODOLOGÍA
============================================================ */
.metodo-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 25px;
    color: #222;
    line-height: 1.65;
}

.metodo-title {
    font-size: 2.4rem;
    margin-bottom: 10px;
    text-align: center;
    color: #111;
}

.metodo-subtitle {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: #555;
}

.metodo-section {
    margin-bottom: 45px;
}

.metodo-section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #111;
}

.metodo-section p {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #333;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    background: #0b0b0b;
    color: #ccc;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    gap: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col a {
    text-decoration: none;
    color: #ccc;
}

.footer-col a:hover {
    color: white;
}

.footer-btn {
    padding: 10px;
    background: #ffcc00;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 720px) {
    .metodo-container {
        margin: 40px auto;
        padding: 0 20px;
    }
}

.metodo-bias-bar {
    width: 100%;
    height: 18px;
    border-radius: 10px;
    margin: 18px 0;
    background: linear-gradient(to right,
        #1d4ed8 0%,
        #ffffff 50%,
        #dc2626 100%
    );
    position: relative;
}

.metodo-needle {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 26px;
    transform: translate(-50%, -50%);
    border-radius: 3px;
    z-index: 5;
}

/* Aguja negra (global) */
.needle-global {
    background: black;
}

/* Aguja blanca (textual) */
.needle-textual {
    background: white;
    border: 1px solid #333;
}

/* Texto del porcentaje */
.bias-percent {
    font-size: 14px;
    margin-top: 4px;
    color: #444;
    text-align: left;
}

/* ======== ESTILO PARA PÁGINAS LARGAS DE TEXTO ======== */

.contenido {
    max-width: 850px;
    margin: 60px auto 50px;
    padding: 0 40px;
    line-height: 1.7;
    font-size: 17px;
    color: #1f2937;
}

@media (max-width: 720px) {
    .contenido {
        margin: 40px auto;
        padding: 0 20px;
    }
}

.contenido h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contenido h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 24px;
    color: #111827;
}

.contenido h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 20px;
}

.contenido p {
    margin-bottom: 16px;
}

.contenido ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.contenido li {
    margin-bottom: 8px;
}

/* Fecha de actualización */
.last-update {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 25px;
}

/* ============================
   FOOTER — ESTILOS COMPLETOS
============================ */
.footer {
    background: #0b0b0b;
    color: #ccc;
    padding: 45px 20px 25px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-content {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* Columnas del footer */
.footer-col {
    flex: 1 1 220px;
}

/* Títulos */
.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 12px;
    font-weight: bold;
}

.footer-col h3 {
    font-size: 22px;
}
.footer-col h4 {
    font-size: 16px;
}

/* Descripción */
.footer-desc {
    max-width: 260px;
    line-height: 1.5;
    color: #ccc;
}

/* Listas */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: white;
}

/* Newsletter */
.footer input {
    padding: 10px;
    width: 210px;
    border-radius: 6px;
    border: none;
    margin-bottom: 8px;
}

.footer-btn {
    padding: 10px 14px;
    background: #ffcc00;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.footer-btn:hover {
    background: #e6b800;
}

/* Redes sociales */
.footer-social {
    margin-top: 14px;
    display: flex;
    gap: 18px;
}

.social-icon {
    color: #ccc;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icon svg {
    width: 26px;
    height: 26px;
    transition: 0.2s;
}

.social-icon:hover svg {
    color: white;
    transform: scale(1.05);
}

/* Línea inferior */
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid #333;
    color: #888;
    font-size: 13px;
}

/* ========== BOTÓN MENÚ EN NAVBAR ========== */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-btn {
    font-size: 22px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    color: white;
    transition: 0.2s;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.18);
}

/* ========== SIDEBAR LATERAL ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;          /* escondido por defecto */
    width: 260px;
    height: 100vh;
    background: #0a0a0a;
    color: #ffffff;
    padding: 40px 24px;
    padding-top: 90px;     /* para no tapar la navbar */
    transition: left 0.3s ease;
    z-index: 1200;
    overflow-y: auto;
    border-right: 1px solid #222;
}

/* cuando se abre */
.sidebar.open {
    left: 0;
}

/* Botón de cerrar (✕) */
.sidebar-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
}

.sidebar-close:hover {
    opacity: 1;
}

/* ========== OVERLAY OSCURO ========== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 1100;
}

.overlay.show {
    display: block;
}

/* ========== TIPOGRAFÍA Y LISTAS ========== */

/* título principal (Plan Brújula) */
.side-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
    letter-spacing: 0.5px;
}

/* subtítulos “Cuenta”, etc. */
.side-subtitle {
    margin-top: 28px;
    font-size: 19px;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.side-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 18px 0;
}

.side-list li {
    margin: 10px 0;
}

.side-list li a {
    color: #ffffff;
    font-size: 1.05rem;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.side-list li a:hover {
    color: #ffcc00;
}

/* línea divisoria */
.divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.25);
    margin: 15px 0;
}

/* parte inferior (contacto + redes) */
.sidebar-bottom {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.25);
}

/* ========== SUBMENÚ “Nosotros ▸” ========== */
.submenu-toggle {
    font-size: 1.05rem;
    color: #ffffff;
    cursor: pointer;
    display: block;
    padding: 6px 0;
    letter-spacing: 0.2px;
}

.submenu-toggle span {
    font-size: inherit;
    color: inherit;
}

.submenu-toggle:hover {
    color: #ffcc00;
}

.submenu {
    list-style: none;
    padding-left: 12px;
    margin: 6px 0 12px 0;
}

.submenu li a {
    font-size: 0.95rem;
}

/* ========== REDES SOCIALES EN FILA ========== */
.side-social-row {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    align-items: center;
}

.side-social-row .social-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
}

.side-social-row .social-icon svg {
    width: 24px;
    height: 24px;
    fill: white !important;
    transition: opacity 0.2s;
}

.side-social-row .social-icon:hover svg {
    opacity: 0.75;
}

/* =========================
   DARK MODE — METODOLOGÍA
   (básico y seguro)
========================= */

body.dark {
  background: #0b0f14;
  color: #e5e7eb;
}

/* Contenedor principal */
body.dark .metodo-container {
  background: transparent;
}

/* Títulos */
body.dark .metodo-container h1,
body.dark .metodo-container h2 {
  color: #f3f4f6;
}

/* Texto general */
body.dark .metodo-container p {
  color: #ffffff;
}

/* Secciones (las cajas) */

/* Subtítulo */
body.dark .metodo-subtitle {
  color: #ffffff;
}

/* Texto pequeño / ejemplos */
body.dark .bias-percent {
  color: #ffffff;
}






/* TÍTULOS */
body.dark .contenido h1,
body.dark .contenido h2,
body.dark .contenido h3 {
  color: #f3f4f6;
}

/* TEXTO */
body.dark .contenido p,
body.dark .contenido li {
  color: #cbd5e1;
}

/* TEXTO SECUNDARIO */
body.dark .last-update,
body.dark .bias-percent {
  color: #f3f5f9;
}

/* LISTAS */
body.dark .contenido ul {
  color: #cbd5e1;
}

/* LINKS */
body.dark .contenido a {
  color: #93c5fd;
}

body.dark .contenido a:hover {
  color: #bfdbfe;
}

/* ==========================================================
   TWO-COLUMN LAYOUT
========================================================== */

/* Widen container for two-column layout */
.metodo-container {
    max-width: 1100px;
}

.metodo-row {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.metodo-text {
    flex: 1;
    min-width: 0;
}

.metodo-visual {
    flex: 0 0 380px;
    width: 380px;
}

@media (max-width: 768px) {
    .metodo-row { flex-direction: column; }
    .metodo-visual { width: 100%; flex: 1 1 100%; }
}

/* ==========================================================
   SECTION 1 — ANIMATED NEWS CARDS
========================================================== */

.metodo-news-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metodo-news-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(30px);
    animation: metodoSlideIn 0.5s ease forwards;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

@keyframes metodoSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

.metodo-card-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

.metodo-card-body {
    flex: 1;
    min-width: 0;
}

.metodo-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main, #111827);
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.metodo-card-meta {
    font-size: 11px;
    color: var(--text-muted, #6b7280);
}

/* ==========================================================
   SECTION 2 — CLUSTER DOT DEMO
========================================================== */

.metodo-cluster-demo {
    position: relative;
}

.dot-field {
    position: relative;
    width: 100%;
    height: 210px;
    background: var(--bg-card, #f9fafb);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.cluster-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.7s cubic-bezier(0.4,0,0.2,1), top 0.7s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dot-labels {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    opacity: 0;
    transition: opacity 0.5s ease 0.4s;
    pointer-events: none;
}

.dot-field.is-clustered .dot-labels {
    opacity: 1;
}

.dot-label {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
}

.dot-label.lbl-politica { background: #2563eb; }
.dot-label.lbl-economia { background: #16a34a; }
.dot-label.lbl-justicia { background: #d97706; }

.cluster-demo-btns {
    display: flex;
    gap: 8px;
}

.cluster-demo-btns button {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-soft, #e5e7eb);
    background: var(--bg-card, #ffffff);
    color: var(--text-main, #111827);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}

.cluster-demo-btns button:first-child {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.cluster-demo-btns button:first-child:hover { background: #1d4ed8; }
.cluster-demo-btns button:last-child:hover  { border-color: #9ca3af; }

/* ==========================================================
   SECTION 3 — MINI CLUSTER CARD
========================================================== */

.metodo-cluster-sample {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.metodo-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.metodo-tag-light {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--bg-soft, #f3f4f6);
    color: var(--text-muted, #6b7280);
}

.metodo-cluster-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main, #111827);
    margin: 10px 0 8px 0;
    line-height: 1.35;
}

.metodo-cluster-resumen {
    font-size: 13px;
    color: var(--text-muted, #4b5563);
    line-height: 1.55;
    margin: 0 0 12px 0;
}

.metodo-cluster-footer {
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--border-soft, #e5e7eb);
    padding-top: 10px;
}

.metodo-cluster-stat {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}

/* ==========================================================
   SECTION 4 — INTERACTIVE BIAS BAR
   (sesgo bar classes defined here so they work without styles.css)
========================================================== */

.sesgo-bar {
    position: relative;
    width: 100%;
    height: 22px;
    border-radius: 20px;
    margin: 12px 0;
    background: linear-gradient(90deg, #1d4ed8, #ffffff, #dc2626);
    overflow: visible;
}

.aguja-global {
    position: absolute;
    top: -6px;
    width: 4px;
    height: 34px;
    background: black;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0,0,0,0.8);
    transition: left 0.2s ease;
}

.aguja-textual {
    position: absolute;
    top: -6px;
    width: 4px;
    height: 34px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 3px rgba(0,0,0,0.8), 0 0 6px rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.6);
    transition: left 0.2s ease;
}

.sesgo-percent {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-main, #111827);
    margin-bottom: 4px;
}

.sesgo-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    margin-top: 4px;
}

.metodo-bias-demo {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 12px;
    padding: 18px;
}

.bias-demo-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.bias-demo-controls label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-main, #374151);
}

.bias-demo-controls input[type="range"] {
    width: 100%;
    accent-color: #2563eb;
    cursor: pointer;
}

.bias-demo-hint {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    text-align: center;
    margin: 10px 0 0 0;
}

/* ==========================================================
   SECTION 5 — MINI RADAR CARD
========================================================== */

.metodo-radar-sample {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radar-stat-row {
    display: flex;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main, #111827);
}

.radar-status {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted, #374151);
}

.radar-bar-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.radar-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main, #374151);
}

.radar-bar-label small {
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    font-weight: normal;
}

.radar-bar-track {
    width: 100%;
    height: 8px;
    background: var(--bg-soft, #f3f4f6);
    border-radius: 4px;
    overflow: hidden;
}

.radar-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.radar-dist {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    border-top: 1px solid var(--border-soft, #e5e7eb);
    padding-top: 10px;
}

.dist-left   { color: #1d4ed8; font-weight: 600; }
.dist-center { color: #6b7280; font-weight: 600; }
.dist-right  { color: #dc2626; font-weight: 600; }

/* ==========================================================
   SECTION 6 — FEATURE CARDS 2×2 GRID
========================================================== */

.metodo-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metodo-feature-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 10px;
    padding: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.metodo-feature-card:hover {
    transform: scale(1.03);
    border-color: #E8A020;
    box-shadow: 0 4px 12px rgba(232,160,32,0.15);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.feature-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main, #111827);
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    line-height: 1.4;
}

/* ==========================================================
   DARK MODE — NEW COMPONENTS
========================================================== */

body.dark .metodo-news-card {
    background: var(--bg-card);
    border-color: var(--border-soft);
}

body.dark .metodo-card-title { color: var(--text-main); }
body.dark .metodo-card-meta  { color: var(--text-muted); }

body.dark .dot-field {
    background: var(--bg-soft);
    border-color: var(--border-soft);
}

body.dark .cluster-demo-btns button:last-child {
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-soft);
}

body.dark .metodo-cluster-sample {
    background: var(--bg-card);
    border-color: var(--border-soft);
}

body.dark .metodo-cluster-title   { color: var(--text-main); }
body.dark .metodo-cluster-resumen { color: var(--text-muted); }

body.dark .metodo-tag-light {
    background: var(--bg-soft);
    color: var(--text-muted);
}

body.dark .metodo-cluster-footer  { border-color: var(--border-soft); }
body.dark .metodo-cluster-stat    { color: var(--text-muted); }

body.dark .metodo-bias-demo {
    background: var(--bg-card);
    border-color: var(--border-soft);
}

body.dark .sesgo-percent { color: var(--text-main); }
body.dark .sesgo-labels  { color: var(--text-muted); }

body.dark .aguja-global {
    background: #e5e7eb;
    box-shadow: 0 0 4px rgba(255,255,255,0.5);
}

body.dark .bias-demo-controls label { color: var(--text-main); }
body.dark .bias-demo-hint           { color: var(--text-muted); }

body.dark .metodo-radar-sample {
    background: var(--bg-card);
    border-color: var(--border-soft);
}

body.dark .radar-stat-row   { color: var(--text-main); }
body.dark .radar-status     { color: var(--text-muted); }
body.dark .radar-bar-label  { color: var(--text-main); }

body.dark .radar-bar-label small { color: var(--text-muted); }

body.dark .radar-bar-track { background: var(--bg-soft); }
body.dark .radar-dist      { border-color: var(--border-soft); }

body.dark .metodo-feature-card {
    background: var(--bg-card);
    border-color: var(--border-soft);
}

body.dark .feature-name { color: var(--text-main); }
body.dark .feature-desc { color: var(--text-muted); }

/* ==========================================================
   SECTION 5 EXTENSION — RADAR PREGUNTAS
========================================================== */

.radar-preguntas {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft, #e5e7eb);
}

.radar-preguntas-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted, #6b7280);
    margin: 0 0 16px 0;
}

.radar-pregunta {
    margin-bottom: 16px;
}

.radar-pregunta strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main, #111827);
    margin-bottom: 4px;
}

.radar-pregunta p {
    font-size: 0.88rem;
    color: var(--text-muted, #4b5563);
    margin: 0;
    line-height: 1.55;
}

/* ==========================================================
   SECTION 6 — ACTIVIDAD LECTORA
========================================================== */

.actividad-privacidad-note {
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
    margin-top: 4px;
}

.metodo-actividad-demo {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.actividad-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.actividad-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #6b7280);
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.heatmap-cell {
    height: 14px;
    border-radius: 3px;
    background: var(--bg-soft, #f3f4f6);
}

.heatmap-cell.heatmap-active {
    background: #22c55e;
}

.actividad-medio-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.actividad-medio-name {
    width: 68px;
    font-size: 12px;
    color: var(--text-main, #374151);
    flex-shrink: 0;
}

.actividad-bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-soft, #f3f4f6);
    border-radius: 4px;
    overflow: hidden;
}

.actividad-bar-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 4px;
}

.actividad-medio-pct {
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}

.actividad-disclaimer {
    font-size: 11px;
    color: var(--text-muted, #9ca3af);
    text-align: center;
    font-style: italic;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft, #e5e7eb);
}

/* ==========================================================
   SECTION 8 — VERIFICADO DEMO
========================================================== */

.verificado-disclaimer-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted, #6b7280);
    border-left: 3px solid var(--border-soft, #e5e7eb);
    padding-left: 12px;
    margin-top: 4px;
}

.metodo-verificado-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.verificado-snippets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.verificado-snippet {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.badge-verificado {
    display: inline-block;
    background: #16a34a;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.badge-en-verificacion {
    display: inline-block;
    background: #d97706;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.snippet-medio-count {
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    margin: 0 0 5px 0;
}

.snippet-title-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main, #111827);
    line-height: 1.35;
    margin: 0 0 8px 0;
}

.snippet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    border-top: 1px solid var(--border-soft, #e5e7eb);
    padding-top: 7px;
}

.conc-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.conc-tag.conc-low  { background: #dcfce7; color: #15803d; }
.conc-tag.conc-high { background: #fee2e2; color: #dc2626; }

.verificado-info-box {
    background: var(--bg-soft, #f0f4ff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-left: 3px solid #2563eb;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-main, #374151);
    line-height: 1.45;
}

/* ==========================================================
   DARK MODE — SECTIONS 5 EXT, 6, 7, 8
========================================================== */

body.dark .radar-preguntas        { border-color: var(--border-soft); }
body.dark .radar-preguntas-title  { color: var(--text-muted); }
body.dark .radar-pregunta strong  { color: var(--text-main); }
body.dark .radar-pregunta p       { color: var(--text-muted); }

body.dark .actividad-privacidad-note { color: var(--text-muted); }

body.dark .metodo-actividad-demo {
    background: var(--bg-card);
    border-color: var(--border-soft);
}

body.dark .actividad-label       { color: var(--text-muted); }
body.dark .heatmap-cell          { background: var(--bg-soft); }
body.dark .actividad-medio-name  { color: var(--text-main); }
body.dark .actividad-bar-track   { background: var(--bg-soft); }
body.dark .actividad-medio-pct   { color: var(--text-muted); }

body.dark .actividad-disclaimer {
    color: var(--text-muted);
    border-color: var(--border-soft);
}

body.dark .verificado-disclaimer-note {
    color: var(--text-muted);
    border-color: var(--border-soft);
}

body.dark .verificado-snippet {
    background: var(--bg-card);
    border-color: var(--border-soft);
}

body.dark .snippet-medio-count { color: var(--text-muted); }
body.dark .snippet-title-text  { color: var(--text-main); }

body.dark .snippet-footer {
    color: var(--text-muted);
    border-color: var(--border-soft);
}

body.dark .conc-tag.conc-low  { background: #14532d; color: #86efac; }
body.dark .conc-tag.conc-high { background: #450a0a; color: #fca5a5; }

body.dark .verificado-info-box {
    background: var(--bg-soft);
    border-color: var(--border-soft);
    color: var(--text-main);
}

/* ==========================================================
   SECTION 5 IMPROVEMENTS — RADAR VISUAL
========================================================== */

/* Two-card stack inside the visual column */
.radar-visual-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Bigger, roomier radar stats card */
.metodo-radar-sample {
    padding: 24px;
}

/* Taller bar tracks in radar card */
.metodo-radar-sample .radar-bar-track {
    height: 10px;
}

/* More breathing room between bar items */
.metodo-radar-sample .radar-bar-item {
    margin-bottom: 10px;
}

/* Narrativa section separator */
.radar-narrativa-section {
    border-top: 1px solid var(--border-soft, #e5e7eb);
    margin-top: 14px;
    padding-top: 12px;
}

/* Tooltip icon next to Narrativa label */
.radar-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-soft, #e5e7eb);
    color: var(--text-muted, #6b7280);
    font-size: 9px;
    font-weight: 700;
    cursor: help;
    position: relative;
    margin-left: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

.radar-info-icon::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #f9fafb;
    font-size: 11px;
    font-weight: normal;
    padding: 7px 10px;
    border-radius: 6px;
    width: 200px;
    white-space: normal;
    line-height: 1.45;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 20;
}

.radar-info-icon:hover::after {
    opacity: 1;
}

/* Mini bars for Narrativa del texto */
.narrativa-mini-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 8px 0;
}

.narrativa-mini-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.narrativa-mini-label {
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    width: 38px;
    flex-shrink: 0;
}

.narrativa-mini-track {
    flex: 1;
    height: 7px;
    background: var(--bg-soft, #f3f4f6);
    border-radius: 3px;
    overflow: hidden;
}

.narrativa-mini-fill {
    height: 100%;
    border-radius: 3px;
}

.narrativa-mini-pct {
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}

.narrativa-note {
    font-size: 11px;
    font-style: italic;
    color: var(--text-muted, #9ca3af);
    margin: 6px 0 0 0;
    line-height: 1.4;
}

/* Q&A card below radar stats */
.radar-qa-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.radar-qa-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted, #6b7280);
    margin: 24px 0 12px 0;
}

.radar-qa-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-soft, #f0f0f0);
}

.radar-qa-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.radar-qa-q {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #E8A020;
    margin-bottom: 5px;
}

.radar-qa-a {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================
   SECTION 6 IMPROVEMENTS — ACTIVITY DASHBOARD
========================================================== */

/* 8-column override for heatmap */
.heatmap-grid {
    grid-template-columns: repeat(8, 1fr);
}

/* Month labels row */
.heatmap-months {
    display: flex;
    justify-content: space-around;
    margin-bottom: 4px;
}

.heatmap-months span {
    font-size: 10px;
    color: var(--text-muted, #9ca3af);
    text-align: center;
    flex: 1;
}

/* Three green intensity levels */
.heatmap-cell.heatmap-light { background: #c6f6d5; }
.heatmap-cell.heatmap-mid   { background: #48bb78; }
.heatmap-cell.heatmap-dark  { background: #276749; }

/* Taller bar tracks in activity section */
.metodo-actividad-demo .actividad-bar-track {
    height: 10px;
}

/* Keyword chips */
.actividad-palabras {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.palabra-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--bg-soft, #f3f4f6);
    color: var(--text-main, #374151);
    border: 1px solid var(--border-soft, #e5e7eb);
}

/* ==========================================================
   SECTION 8 IMPROVEMENTS — VERIFICADO VISUAL
========================================================== */

/* Bigger snippet cards */
.verificado-snippet {
    padding: 16px;
}

/* Pulse animation on the pending badge */
@keyframes verifPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(217,119,6,0); }
}

.badge-en-verificacion {
    animation: verifPulse 2.2s ease-in-out infinite;
}

/* Concentration dot visualization */
.snippet-conc-viz {
    margin: 10px 0 8px;
}

.conc-viz-track {
    position: relative;
    height: 18px;
    background: var(--bg-soft, #f3f4f6);
    border-radius: 9px;
    margin-bottom: 4px;
}

.conc-dot-viz {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.conc-viz-label {
    font-size: 10px;
    color: var(--text-muted, #6b7280);
}

/* Prominent amber info box */
.verificado-info-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid #E8A020;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.45;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.verificado-info-icon {
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1.3;
}

/* ==========================================================
   DARK MODE — IMPROVEMENTS
========================================================== */

body.dark .radar-narrativa-section { border-color: var(--border-soft); }
body.dark .radar-info-icon         { background: var(--bg-soft); color: var(--text-muted); }
body.dark .narrativa-mini-label    { color: var(--text-muted); }
body.dark .narrativa-mini-track    { background: var(--bg-soft); }
body.dark .narrativa-mini-pct      { color: var(--text-muted); }
body.dark .narrativa-note          { color: var(--text-muted); }

body.dark .radar-qa-card   { background: var(--bg-card); border-color: var(--border-soft); }
body.dark .radar-qa-title  { color: var(--text-muted); }
body.dark .radar-qa-item   { border-color: var(--border-soft); }
body.dark .radar-qa-a      { color: var(--text-muted); }

body.dark .heatmap-months span        { color: var(--text-muted); }
body.dark .heatmap-cell.heatmap-light { background: #1a472a; }
body.dark .heatmap-cell.heatmap-mid   { background: #276749; }
body.dark .heatmap-cell.heatmap-dark  { background: #22c55e; }

body.dark .palabra-chip {
    background: var(--bg-soft);
    color: var(--text-main);
    border-color: var(--border-soft);
}

body.dark .conc-viz-track   { background: var(--bg-soft); }
body.dark .conc-dot-viz     { border-color: var(--bg-card); }
body.dark .conc-viz-label   { color: var(--text-muted); }

body.dark .verificado-info-box {
    background: #1c1308;
    border-color: #92400e;
    color: #fcd34d;
}

body.dark .metodo-radar-sample .radar-bar-track { background: var(--bg-soft); }
body.dark .narrativa-mini-track                 { background: var(--bg-soft); }

/* ==========================================================
   SELF-RUNNING ANIMATIONS — all sections
========================================================== */

/* ----------------------------------------------------------
   SECTION 1 — News cards infinite fade-in loop
   Cycle = 6s: card1 appears at 0s, card2 at 1.5s, card3 at 3s,
   all visible until ~4.3s, all fade out ~5.2s, restart.
---------------------------------------------------------- */
@keyframes newsCard1Loop {
    0%   { opacity: 0; transform: translateY(8px); }
    8%   { opacity: 1; transform: translateY(0);   }
    71%  { opacity: 1; transform: translateY(0);   }
    88%  { opacity: 0; transform: translateY(-4px);}
    100% { opacity: 0; transform: translateY(8px); }
}
@keyframes newsCard2Loop {
    0%,24%  { opacity: 0; transform: translateY(8px); }
    33%     { opacity: 1; transform: translateY(0);   }
    71%     { opacity: 1; transform: translateY(0);   }
    88%     { opacity: 0; transform: translateY(-4px);}
    100%    { opacity: 0; transform: translateY(8px); }
}
@keyframes newsCard3Loop {
    0%,49%  { opacity: 0; transform: translateY(8px); }
    58%     { opacity: 1; transform: translateY(0);   }
    71%     { opacity: 1; transform: translateY(0);   }
    88%     { opacity: 0; transform: translateY(-4px);}
    100%    { opacity: 0; transform: translateY(8px); }
}

/* Override the one-shot slide-in with the loop animation */
.metodo-news-card:nth-child(1) {
    animation: newsCard1Loop 6s ease-in-out infinite;
    transform: none;
}
.metodo-news-card:nth-child(2) {
    animation: newsCard2Loop 6s ease-in-out infinite;
    transform: none;
}
.metodo-news-card:nth-child(3) {
    animation: newsCard3Loop 6s ease-in-out infinite;
    transform: none;
}

/* Pause all cards when container has .paused (off-screen) */
.metodo-news-cards.paused .metodo-news-card {
    animation-play-state: paused;
}

/* ----------------------------------------------------------
   SECTION 3 — Cluster card fade transition
---------------------------------------------------------- */
.metodo-cluster-sample {
    transition: opacity 0.35s ease;
}

/* ----------------------------------------------------------
   SECTION 4 — Bias needles: smoother transition for auto-demo
---------------------------------------------------------- */
#demo-global, #demo-textual {
    transition: left 0.7s ease-in-out;
}

/* ----------------------------------------------------------
   SECTION 5 — Radar bars: animate width on loop
---------------------------------------------------------- */
.metodo-radar-sample .radar-bar-fill {
    transition: width 1.1s ease-out;
}
.narrativa-mini-fill {
    transition: width 1.1s ease-out;
}

/* ----------------------------------------------------------
   SECTION 6 — Activity dashboard transitions
---------------------------------------------------------- */
.actividad-bar-fill {
    transition: width 0.9s ease-out;
}
.heatmap-cell {
    transition: background 0.2s ease;
}
#act-chips .palabra-chip {
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* ----------------------------------------------------------
   SECTION 8 — Verificado snippet transition (legacy, kept for compat)
---------------------------------------------------------- */
#verif-left {
    transition: opacity 0.45s ease;
}
body.dark .narrativa-mini-track                 { background: var(--bg-soft); }

/* ==========================================================
   SECTION 5 REDESIGN — Radar Dashboard (rings + vbars + donut)
========================================================== */

.metodo-radar-dashboard {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 14px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 100%;
    box-sizing: border-box;
}

.radar-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.radar-dash-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main, #111827);
}
.radar-status-pill {
    font-size: 11px;
    background: #dcfce7;
    color: #166534;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Circular stat rings */
.radar-circles-row {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}
.radar-circle-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.radar-ring-wrap {
    position: relative;
    width: 110px;
    height: 110px;
}
.radar-ring-svg {
    width: 110px;
    height: 110px;
    display: block;
}
.radar-ring-track {
    fill: none;
    stroke: var(--bg-soft, #f3f4f6);
    stroke-width: 10;
}
.radar-ring-fill {
    fill: none;
    stroke: #E8A020;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dasharray 1.1s ease-out;
}
.radar-ring-center {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radar-circle-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main, #111827);
    line-height: 1;
}
.radar-circle-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted, #6b7280);
}

/* Vertical bars */
.radar-vbars-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 0;
}
.radar-vbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.radar-vbar-pct {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main, #111827);
    min-height: 16px;
}
.radar-vbar-track {
    width: 70%;
    height: 100px;
    background: var(--bg-soft, #f3f4f6);
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.radar-vbar-fill {
    width: 100%;
    height: 0%;
    border-radius: 7px 7px 0 0;
    transition: height 1s ease-out;
}
.radar-vbar-debate { background: linear-gradient(to top, #ef4444, #f59e0b); }
.radar-vbar-conc   { background: #1d4ed8; }
.radar-vbar-rep    { background: #6b7280; }
.radar-vbar-label {
    font-size: 10px;
    color: var(--text-muted, #6b7280);
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
}

/* Donut chart */
.radar-donut-row {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    width: 100%;
}
.radar-donut-svg {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.radar-donut-track {
    fill: none;
    stroke: var(--bg-soft, #f3f4f6);
    stroke-width: 18;
}
.radar-donut-seg {
    fill: none;
    stroke-width: 18;
    transition: stroke-dasharray 0.6s ease-out;
}
.radar-donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.radar-donut-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.radar-donut-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.radar-donut-lbl {
    font-size: 11px;
    color: var(--text-main, #111827);
    flex: 1;
}
.radar-donut-pct {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #6b7280);
}

/* Dark mode — Section 5 dashboard */
body.dark .metodo-radar-dashboard { background: var(--bg-card); border-color: var(--border-soft); }
body.dark .radar-dash-title        { color: var(--text-main); }
body.dark .radar-status-pill       { background: #14532d; color: #86efac; }
body.dark .radar-ring-track        { stroke: var(--bg-soft); }
body.dark .radar-circle-num        { color: var(--text-main); }
body.dark .radar-circle-label      { color: var(--text-muted); }
body.dark .radar-vbar-track        { background: var(--bg-soft); }
body.dark .radar-vbar-pct          { color: var(--text-main); }
body.dark .radar-vbar-label        { color: var(--text-muted); }
body.dark .radar-donut-track       { stroke: var(--bg-soft); }
body.dark .radar-donut-lbl         { color: var(--text-main); }
body.dark .radar-donut-pct         { color: var(--text-muted); }

/* ==========================================================
   SECTION 8 REDESIGN — 3-card verification journey
========================================================== */

.verif-journey-demo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.verif-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-soft, #e5e7eb);
    border-radius: 12px;
    padding: 14px 16px;
    border-left-width: 4px;
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.verif-card-no       { border-left-color: #ef4444; }
.verif-card-checking { border-left-color: #f59e0b; }
.verif-card-ok       { border-left-color: #22c55e; }

.verif-active {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.verif-dimmed {
    opacity: 0.42;
    transform: scale(0.98);
}

.verif-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.badge-no-verificado {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: #fee2e2;
    color: #991b1b;
    animation: pulseRedBadge 1.6s ease-in-out infinite;
}
@keyframes pulseRedBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50%       { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}
.badge-verificado {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: #dcfce7;
    color: #166534;
    animation: pulseGreenBadge 2.4s ease-in-out infinite;
}
@keyframes pulseGreenBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.3); }
    50%       { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}
.verif-medios-count {
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    font-weight: 500;
}
.verif-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main, #111827);
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.verif-dots-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.verif-dots-track {
    position: relative;
    height: 14px;
    background: var(--bg-soft, #f3f4f6);
    border-radius: 7px;
}
.verif-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
}
.verif-conc-label {
    font-size: 10px;
    color: var(--text-muted, #9ca3af);
}
.verif-info-tip {
    background: #fffbeb;
    border-left: 4px solid #E8A020;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
    margin-top: 4px;
}

/* Dark mode — Section 8 journey */
body.dark .verif-card            { background: var(--bg-card); border-color: var(--border-soft); }
body.dark .verif-card-no         { border-left-color: #ef4444; }
body.dark .verif-card-checking   { border-left-color: #f59e0b; }
body.dark .verif-card-ok         { border-left-color: #22c55e; }
body.dark .badge-no-verificado   { background: #450a0a; color: #fca5a5; }
body.dark .badge-verificado      { background: #14532d; color: #86efac; }
body.dark .verif-card-title      { color: var(--text-main); }
body.dark .verif-medios-count    { color: var(--text-muted); }
body.dark .verif-dots-track      { background: var(--bg-soft); }
body.dark .verif-dot             { border-color: var(--bg-card); }
body.dark .verif-conc-label      { color: var(--text-muted); }
body.dark .verif-active          { box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
body.dark .verif-info-tip        { background: #1c1308; border-left-color: #E8A020; color: #fcd34d; }

/* ==========================================================
   SECTION 5 — Weekly activity histogram
========================================================== */

.radar-histogram-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    border-top: 1px solid var(--border-soft, #e5e7eb);
    padding-top: 14px;
}

.radar-histogram-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted, #6b7280);
}

.radar-histogram-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    width: 100%;
    height: 64px;
}

.radar-hist-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}

.radar-hist-bar {
    width: 100%;
    height: 0%;
    border-radius: 3px 3px 0 0;
    background: #93c5fd;
    transition: height 0.9s ease-out;
    min-height: 0;
}

.radar-hist-peak {
    background: #E8A020;
}

.radar-hist-day {
    font-size: 9px;
    color: var(--text-muted, #9ca3af);
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}

.radar-hist-day-peak {
    color: #E8A020;
    font-weight: 700;
}

/* Dark mode */
body.dark .radar-histogram-row   { border-top-color: var(--border-soft); }
body.dark .radar-histogram-label { color: var(--text-muted); }
body.dark .radar-hist-bar        { background: #1e3a5f; }
body.dark .radar-hist-peak       { background: #E8A020; }
body.dark .radar-hist-day        { color: var(--text-muted); }
body.dark .radar-hist-day-peak   { color: #E8A020; }
