/* ============================================================================
   TranEx · Sistema de diseño web
   Consistente con la app móvil MAUI (Recursos/Colores.xaml + Estilos.xaml).
   ========================================================================== */

:root {
    /* Marca Phibro */
    --verde: #1A5C1A;
    --verde-dark: #27500A;
    --verde-light: #EAF3DE;
    --verde-accent: #C0DD97;

    /* Estados */
    --ambar: #BA7517;
    --ambar-light: #FAEEDA;
    --ambar-dark: #633806;
    --rojo: #E24B4A;
    --rojo-light: #FCEBEB;
    --rojo-dark: #791F1F;

    /* Neutros */
    --gris-oscuro: #444441;
    --gris-medio: #888780;
    --gris-light: #F1EFE8;
    --fondo: #F7F7F3;
    --tarjeta: #FFFFFF;
    --borde: #E0DDD4;
    --borde-2: #CCCAC0;

    /* Texto */
    --texto-1: #1C1B18;
    --texto-2: #5F5E5A;
    --texto-3: #888780;

    --radio-tarjeta: 14px;
    --radio-control: 10px;
    --radio-pill: 999px;
    --sombra: 0 1px 2px rgba(28, 27, 24, .04), 0 4px 16px rgba(28, 27, 24, .06);
}

* { box-sizing: border-box; }

html, body {
    background: var(--fondo);
    color: var(--texto-1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--texto-1); font-weight: 600; margin: 0 0 .5rem; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.30rem; font-weight: 500; }
h3 { font-size: 1.10rem; font-weight: 500; }
a { color: var(--verde); text-decoration: none; }
a:hover { color: var(--verde-dark); }

.tx-etiqueta {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--texto-2);
}
.tx-meta { font-size: .82rem; color: var(--texto-2); }
.tx-mute { color: var(--texto-3); }

/* ── Barra superior ───────────────────────────────────────────────────── */
.tx-topbar {
    background: var(--tarjeta);
    border-top: 4px solid var(--verde);
    border-bottom: 1px solid var(--borde);
    color: var(--texto-1);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 2px rgba(28, 27, 24, .04), 0 6px 18px rgba(28, 27, 24, .04);
}
.tx-topbar__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.tx-brand { display: flex; align-items: center; gap: 13px; color: var(--texto-1); }
.tx-brand:hover { color: var(--texto-1); opacity: .9; }
.tx-brand__logo { height: 38px; width: auto; object-fit: contain; }
.tx-brand__sep { width: 1px; height: 26px; background: var(--borde); }
.tx-brand__text { font-weight: 500; font-size: 1.02rem; color: var(--verde-dark); letter-spacing: -.01em; }

.tx-nav { display: flex; gap: 4px; margin-left: 6px; flex: 1; }
.tx-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--texto-2);
    padding: 8px 14px;
    border-radius: 9px;
    font-size: .92rem;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.tx-nav__link:hover { color: var(--texto-1); background: var(--gris-light); }
.tx-nav__link.activo { color: #fff; background: var(--verde); }
.tx-nav__link.activo:hover { color: #fff; background: var(--verde-dark); }
.tx-ico { width: 17px; height: 17px; flex-shrink: 0; }

.tx-usuario { display: flex; align-items: center; }

/* Menú de usuario */
.tx-usermenu { position: relative; }
.tx-usermenu__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid var(--borde);
    border-radius: var(--radio-pill);
    padding: 5px 10px 5px 6px;
    cursor: pointer;
    font-family: inherit;
    color: var(--texto-1);
    transition: background .15s, border-color .15s;
}
.tx-usermenu__trigger:hover { background: var(--gris-light); border-color: var(--borde-2); }
.tx-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--verde-light);
    color: var(--verde-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .8rem;
    flex-shrink: 0;
}
.tx-usermenu__id { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.tx-usermenu__nombre { font-size: .82rem; font-weight: 500; color: var(--texto-1); }
.tx-usermenu__rol { font-size: .7rem; color: var(--texto-3); }
.tx-chevron { width: 16px; height: 16px; color: var(--texto-3); transition: transform .15s; flex-shrink: 0; }
.tx-usermenu.abierto .tx-chevron { transform: rotate(180deg); }

.tx-usermenu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    background: var(--tarjeta);
    border: 1px solid var(--borde);
    border-radius: 12px;
    box-shadow: var(--sombra);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .14s, transform .14s, visibility .14s;
    z-index: 1030;
}
.tx-usermenu.abierto .tx-usermenu__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.tx-usermenu__cab { padding: 8px 10px 10px; border-bottom: 1px solid var(--gris-light); margin-bottom: 6px; }
.tx-usermenu__cab-nombre { font-weight: 500; font-size: .9rem; }
.tx-usermenu__cab-rol { font-size: .76rem; color: var(--texto-3); }
.tx-logout { margin: 0; }
.tx-logout__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: none;
    color: var(--rojo-dark);
    font-family: inherit;
    font-size: .88rem;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
}
.tx-logout__btn:hover { background: var(--rojo-light); }

@media (max-width: 720px) {
    .tx-brand__text, .tx-brand__sep { display: none; }
    .tx-nav__link span { display: none; }
    .tx-nav__link { padding: 8px 11px; }
    .tx-usermenu__id { display: none; }
}

/* ── Contenedor principal ─────────────────────────────────────────────── */
.tx-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}
.tx-main--centrado {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.tx-encabezado {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.tx-encabezado p { margin: 2px 0 0; }

/* ── Tarjetas ─────────────────────────────────────────────────────────── */
.tx-card {
    background: var(--tarjeta);
    border: 1px solid var(--borde);
    border-radius: var(--radio-tarjeta);
    box-shadow: var(--sombra);
    padding: 20px;
}
.tx-card--plano { box-shadow: none; }
.tx-card__titulo { font-weight: 600; font-size: 1rem; margin-bottom: 14px; }

/* ── Botones ──────────────────────────────────────────────────────────── */
.tx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 500;
    font-size: .92rem;
    line-height: 1;
    padding: 11px 18px;
    border-radius: var(--radio-control);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, opacity .15s;
    text-decoration: none;
}
.tx-btn:disabled { opacity: .55; cursor: not-allowed; }
.tx-btn--primario { background: var(--verde); color: #fff; }
.tx-btn--primario:hover { background: var(--verde-dark); color: #fff; }
.tx-btn--outline { background: transparent; color: var(--verde); border-color: var(--verde); }
.tx-btn--outline:hover { background: var(--verde-light); color: var(--verde-dark); }
.tx-btn--secundario { background: transparent; color: var(--texto-1); border-color: var(--borde); }
.tx-btn--secundario:hover { background: var(--gris-light); }
.tx-btn--peligro { background: transparent; color: var(--rojo); border-color: var(--rojo); }
.tx-btn--peligro:hover { background: var(--rojo-light); }
.tx-btn--chico { padding: 7px 12px; font-size: .82rem; }

/* ── Formularios ──────────────────────────────────────────────────────── */
.tx-form-grupo { margin-bottom: 16px; }
.tx-form-grupo > label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 500; color: var(--texto-2); }
.tx-input,
.tx-select,
.tx-textarea {
    width: 100%;
    font-family: inherit;
    font-size: .95rem;
    color: var(--texto-1);
    background: var(--tarjeta);
    border: 1px solid var(--borde);
    border-radius: var(--radio-control);
    padding: 11px 14px;
    transition: border-color .15s, box-shadow .15s;
}
.tx-input:focus,
.tx-select:focus,
.tx-textarea:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 0 3px var(--verde-light);
}
.tx-textarea { resize: vertical; min-height: 88px; }
.tx-input::placeholder { color: var(--texto-3); }
.field-validation-error, .tx-error { color: var(--rojo-dark); font-size: .82rem; display: block; margin-top: 5px; }
.validation-summary-errors { color: var(--rojo-dark); font-size: .88rem; }
.input-validation-error { border-color: var(--rojo) !important; }

/* ── Chips / etiquetas de estado ──────────────────────────────────────── */
.tx-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: var(--radio-pill);
    background: var(--gris-light);
    color: var(--texto-2);
    white-space: nowrap;
}
.tx-chip--verde { background: var(--verde-light); color: var(--verde-dark); }
.tx-chip--ambar { background: var(--ambar-light); color: var(--ambar-dark); }
.tx-chip--rojo { background: var(--rojo-light); color: var(--rojo-dark); }
.tx-chip--claro { background: rgba(255, 255, 255, .22); color: #fff; }
.tx-chip--modulo { background: var(--gris-light); color: var(--texto-2); border-radius: 6px; padding: 2px 8px; }

/* ── Tablas ───────────────────────────────────────────────────────────── */
.tx-tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tx-tabla th {
    text-align: left;
    font-weight: 500;
    font-size: .74rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--texto-2);
    padding: 10px 14px;
    border-bottom: 1px solid var(--borde);
    white-space: nowrap;
}
.tx-tabla td { padding: 12px 14px; border-bottom: 1px solid var(--gris-light); vertical-align: middle; }
.tx-tabla tbody tr:hover { background: var(--verde-light); }
.tx-tabla tbody tr:last-child td { border-bottom: none; }
.tx-tabla--clic tbody tr { cursor: pointer; }

/* ── Pantalla de acceso ───────────────────────────────────────────────── */
.tx-acceso {
    width: 100%;
    max-width: 880px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--tarjeta);
    border: 1px solid var(--borde);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(28, 27, 24, .04), 0 18px 50px rgba(28, 27, 24, .10);
}

/* Panel de marca */
.tx-acceso__marca {
    position: relative;
    background: var(--verde);
    color: #fff;
    padding: 38px 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-height: 460px;
}
.tx-acceso__motivo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.tx-acceso__cuerpo { position: relative; }
.tx-acceso__titulo { font-size: 2rem; font-weight: 500; line-height: 1.14; letter-spacing: -.01em; }
.tx-acceso__tagline { font-size: .95rem; color: var(--verde-accent); margin-top: 12px; max-width: 260px; line-height: 1.5; }
.tx-acceso__pie { position: absolute; left: 36px; bottom: 30px; font-size: .74rem; color: rgba(255, 255, 255, .6); }

/* Panel de formulario */
.tx-acceso__form {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tx-acceso__form-logo { text-align: center; margin-bottom: 28px; }
.tx-acceso__form-logo img { height: 66px; width: auto; }
.tx-acceso__bienvenida { font-size: 1.35rem; font-weight: 600; }
.tx-acceso__instruccion { font-size: .9rem; color: var(--texto-2); margin-top: 4px; margin-bottom: 24px; }
.tx-acceso__form .tx-btn { width: 100%; margin-top: 6px; }
.tx-acceso__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: .8rem; color: var(--texto-3); }

/* Campo con ícono */
.tx-campo-ico { position: relative; display: flex; align-items: center; }
.tx-campo-ico__ico { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--texto-3); pointer-events: none; transition: color .15s; }
.tx-campo-ico .tx-input { padding-left: 40px; }
.tx-campo-ico:focus-within .tx-campo-ico__ico { color: var(--verde); }
.tx-ojo {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    border-radius: 7px;
    color: var(--texto-3);
    cursor: pointer;
}
.tx-ojo:hover { color: var(--texto-1); background: var(--gris-light); }
.tx-ojo--activo { color: var(--verde); }

@media (max-width: 720px) {
    .tx-acceso { grid-template-columns: 1fr; max-width: 440px; }
    .tx-acceso__marca { min-height: 0; padding: 26px 28px; justify-content: flex-start; }
    .tx-acceso__titulo { font-size: 1.6rem; }
    .tx-acceso__tagline { display: none; }
    .tx-acceso__pie { position: static; margin-top: 14px; }
    .tx-acceso__form { padding: 30px 28px; }
    .tx-acceso__form-logo img { height: 54px; }
}

/* ── Barra de filtros ─────────────────────────────────────────────────── */
.tx-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 20px;
}
.tx-filtros .tx-form-grupo { margin-bottom: 0; }
.tx-filtros__campo { min-width: 170px; }

/* ── Grid de tarjetas de reporte ──────────────────────────────────────── */
.tx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}
.tx-reporte { display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: border-color .15s, transform .05s; }
.tx-reporte:hover { border-color: var(--verde-accent); }
.tx-reporte__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tx-reporte__cuenta { font-weight: 600; font-size: 1rem; }
.tx-reporte__modulos { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Métricas ─────────────────────────────────────────────────────────── */
.tx-metricas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.tx-metrica__valor { font-size: 1.7rem; font-weight: 600; color: var(--verde); }
.tx-metrica__label { font-size: .8rem; color: var(--texto-2); }

/* ── Paginación ───────────────────────────────────────────────────────── */
.tx-paginacion { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.tx-paginacion__info { color: var(--texto-2); font-size: .85rem; }

/* ── Pestañas (detalle de reporte) ────────────────────────────────────── */
.tx-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--borde); margin-bottom: 20px; }
.tx-tab {
    padding: 10px 16px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--texto-2);
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
.tx-tab:hover { color: var(--texto-1); }
.tx-tab.activo { color: var(--verde); border-bottom-color: var(--verde); }
.tx-panel { display: none; }
.tx-panel.activo { display: block; }

/* ── Galería de fotos ─────────────────────────────────────────────────── */
.tx-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tx-foto { border-radius: var(--radio-control); overflow: hidden; border: 1px solid var(--borde); aspect-ratio: 4/3; }
.tx-foto img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }

/* ── Utilidades ───────────────────────────────────────────────────────── */
.tx-fila { display: flex; align-items: center; gap: 10px; }
.tx-fila--fin { justify-content: flex-end; }
.tx-gap { gap: 10px; }
.tx-vacio { text-align: center; padding: 56px 20px; color: var(--texto-3); }
.tx-alerta { padding: 12px 16px; border-radius: var(--radio-control); font-size: .9rem; margin-bottom: 16px; }
.tx-alerta--error { background: var(--rojo-light); color: var(--rojo-dark); }
.tx-alerta--ok { background: var(--verde-light); color: var(--verde-dark); }
.tx-codigo {
    font-family: 'Cascadia Code', Consolas, monospace;
    font-size: .82rem;
    background: var(--gris-light);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--texto-1);
}

/* ── Lightbox de fotos ────────────────────────────────────────────────── */
.tx-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    z-index: 1080;
    align-items: center;
    justify-content: center;
    padding: 32px;
    cursor: zoom-out;
}
.tx-lightbox.abierto { display: flex; }
.tx-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }

/* ── Lista descriptiva (detalle) ──────────────────────────────────────── */
.tx-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; }
.tx-dato__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-2); }
.tx-dato__valor { font-size: .98rem; font-weight: 500; }
.tx-check { display: inline-flex; align-items: center; gap: 6px; }
.tx-check__si { color: var(--verde); font-weight: 600; }
.tx-check__no { color: var(--rojo); font-weight: 600; }

/* ============================================================================
   Detalle de reporte · paridad con la app móvil
   ========================================================================== */

/* ── Título de sección dentro de una tarjeta ──────────────────────────── */
.tx-seccion-titulo {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--texto-2);
    margin-bottom: 12px;
}

/* ── Datos del reporte: lista etiqueta / valor (como la móvil) ─────────── */
.tx-detalle-grid {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 640px) { .tx-detalle-grid { grid-template-columns: 1fr; } }

.tx-datos-lista { margin: 0; }
.tx-datos-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--gris-light);
}
.tx-datos-fila:last-child { border-bottom: none; }
.tx-datos-fila dt { margin: 0; font-size: .92rem; color: var(--texto-2); }
.tx-datos-fila dd { margin: 0; font-size: .98rem; font-weight: 500; color: var(--texto-1); text-align: right; }

/* ── Animate: logo + pill Sí/No · dosis ───────────────────────────────── */
.tx-animate-logo { height: 24px; width: auto; display: block; }
.tx-animate-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--verde-light);
    color: var(--verde-dark);
    font-weight: 600;
    font-size: .9rem;
    padding: 5px 12px;
    border-radius: var(--radio-pill);
}
.tx-animate-pill__sep { opacity: .55; }
.tx-animate-pill--no { background: var(--gris-light); color: var(--texto-2); }

/* ── Métricas mini (Módulos / Fotos) ──────────────────────────────────── */
.tx-metricas-mini { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .tx-metricas-mini { grid-template-rows: none; grid-template-columns: 1fr 1fr; } }
.tx-metrica-mini {
    background: var(--gris-light);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
}
.tx-metrica-mini__valor { font-size: 1.6rem; font-weight: 600; color: var(--verde); line-height: 1.1; }
.tx-metrica-mini__label { font-size: .76rem; color: var(--texto-2); }

/* ── Bloque de comentarios (módulo y generales) ───────────────────────── */
.tx-comentarios {
    margin-top: 14px;
    background: var(--gris-light);
    border-radius: var(--radio-control);
    padding: 12px 14px;
}
.tx-comentarios__label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--texto-2);
    margin-bottom: 4px;
}
.tx-comentarios__texto { margin: 0; color: var(--texto-1); white-space: pre-wrap; }

/* ── Confort: rejilla de ítems con toggle Sí/No ───────────────────────── */
.tx-confort-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.tx-confort-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--verde-accent);
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
}
.tx-confort-item--no { border-color: var(--rojo); background: var(--rojo-light); }
.tx-confort-item__nombre { font-weight: 500; color: var(--texto-1); }

/* ── Toggle Sí/No y Negativo/Positivo (solo lectura) ──────────────────── */
.tx-sino, .tx-resultado {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--borde);
    flex-shrink: 0;
}
.tx-sino__op { padding: 6px 14px; font-size: .85rem; font-weight: 600; color: var(--texto-3); background: #fff; }
.tx-sino__op--si-activo { background: var(--verde); color: #fff; }
.tx-sino__op--no-activo { background: var(--rojo); color: #fff; }

.tx-resultado { margin-top: 4px; }
.tx-resultado__op { padding: 9px 22px; font-size: .9rem; font-weight: 600; color: var(--texto-3); background: #fff; }
.tx-resultado__op--neg-activo { background: var(--rojo); color: #fff; }
.tx-resultado__op--pos-activo { background: var(--verde); color: #fff; }

/* ── Gráficas ─────────────────────────────────────────────────────────── */
.tx-grafica { position: relative; height: 280px; width: 100%; max-width: 620px; }
.tx-grafica canvas { width: 100% !important; }
.tx-grafica-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tx-grafica-doble .tx-grafica { height: 240px; max-width: none; }
@media (max-width: 720px) { .tx-grafica-doble { grid-template-columns: 1fr; } }

.tx-leyenda { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 12px; }
.tx-leyenda__item { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--texto-2); }
.tx-punto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ── Tablas: variante compacta + celdas numéricas ─────────────────────── */
.tx-tabla--compacta th, .tx-tabla--compacta td { padding: 9px 14px; }
.tx-tabla .tx-num { text-align: right; font-variant-numeric: tabular-nums; }
.tx-tabla th.tx-num { text-align: right; }
