/* Superficies de los tableros; se conservan los textos del catálogo de contraste. */
html.theme-light {
    --c-background: 246 248 251;
    --c-surface: 255 255 255;
    --c-surface-elevated: 240 243 247;
    --c-border: 214 221 230;
}
html.theme-light[class*="-integrada"] {
    --c-sidebar: var(--c-surface);
    --c-sidebar-elevated: var(--c-surface-elevated);
    --c-sidebar-border: var(--c-border);
}
.financial-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.metric-card {
    background: rgb(var(--c-surface));
    border: 1px solid rgb(var(--c-border) / .5);
    border-radius: 12px;
    padding: 1.5rem;
    font-variant-numeric: tabular-nums;
}
.theme-light .metric-card {
    border-color: #dce3eb;
    box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 5px 14px -10px rgb(15 23 42 / .24);
}
.metric-card > p:first-child { text-transform: none; letter-spacing: 0; }
.metric-card-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #345775;
    background: rgb(52 87 117 / .09);
}
.metric-card-icon .financial-icon { width: .875rem; height: .875rem; }
.metric-card-icon[data-icono="dinero"],
.metric-card-icon[data-icono="billete"],
.metric-card-icon[data-icono="trofeo"] { color: #17785f; background: rgb(23 120 95 / .10); }
.metric-card-icon[data-icono="aviso"],
.metric-card-icon[data-icono="tendencia-baja"] { color: #b15f50; background: rgb(177 95 80 / .10); }
.metric-card-icon[data-icono="gota"],
.metric-card-icon[data-icono="ciclo"],
.metric-card-icon[data-icono="matraz"] { color: #247c88; background: rgb(36 124 136 / .10); }
.metric-card-icon[data-icono="rayo"],
.metric-card-icon[data-icono="objetivo"],
.metric-card-icon[data-icono="etiqueta"] { color: #9a6b18; background: rgb(154 107 24 / .10); }
.demo-notice {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 1rem; margin-bottom: 2rem; padding: 1rem 1.25rem;
    background: rgb(var(--c-aviso) / .05);
    border-inline-start: 2px solid rgb(var(--c-aviso) / .5);
    border-radius: 0 8px 8px 0;
}
.demo-notice > div:first-child { color: rgb(var(--c-text)); }
.demo-notice .text-primary\/80 { color: rgb(var(--c-text-muted)); }
aside .financial-icon { width: 1.125rem; font-size: .875rem; color: rgb(var(--c-sidebar-muted, var(--c-text-muted))); transition: color 160ms ease; }
aside a:hover .financial-icon { color: inherit; }
canvas { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .metric-card { padding: 1.125rem; } .demo-notice { align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .financial-icon { transition: none; } }

/* ── Profundidad del tema claro ────────────────────────────────────────────
   El lienzo usa un gris azulado; el blanco queda reservado para contenido.
   Así la jerarquía sigue siendo visible incluso con brillo alto. */
html.theme-light body,
html.theme-light [data-zyn-main] {
    background-color: rgb(var(--c-background));
}

html.theme-light [data-zyn-main] [class*="bg-surface"][class*="border"][class*="rounded-xl"],
html.theme-light [data-zyn-main] .form-section {
    border-color: #dce3eb;
    box-shadow: 0 1px 2px rgb(15 23 42 / .035), 0 5px 16px -13px rgb(15 23 42 / .28);
}

html.theme-light [data-zyn-main] [class*="bg-surface-elevated"][class*="rounded"] {
    border-color: rgb(var(--c-border) / .72);
}

/* Las tablas dejan de ser texto flotando sobre blanco: cabecera fría, filas
   alternas tenues y divisores horizontales continuos. */
html.theme-light [data-zyn-main] table thead th {
    background-color: #e7edf4 !important;
    color: #334155;
    border-bottom: 1px solid #cbd5e1;
    box-shadow: inset 0 -1px 0 rgb(148 163 184 / .18);
}

html.theme-light [data-zyn-main] table tbody tr:nth-child(even) {
    background-color: #f7f9fc;
}

html.theme-light [data-zyn-main] table tbody tr:hover {
    background-color: #edf3f8 !important;
}

html.theme-light [data-zyn-main] table tbody td {
    border-bottom-color: #e2e8f0;
}

/* Controles blancos sobre el fondo gris, con un borde suficiente para que el
   formulario no dependa de una sombra para dibujar su estructura. */
html.theme-light [data-zyn-main] input:not([type="checkbox"]):not([type="radio"]),
html.theme-light [data-zyn-main] select,
html.theme-light [data-zyn-main] textarea {
    border-color: #cbd5e1;
    box-shadow: 0 1px 1px rgb(15 23 42 / .025);
}

html.theme-light [data-zyn-main] input:focus,
html.theme-light [data-zyn-main] select:focus,
html.theme-light [data-zyn-main] textarea:focus {
    border-color: rgb(var(--c-primary) / .65);
    box-shadow: 0 0 0 3px rgb(var(--c-primary) / .12);
}

/* Acciones: los botones principales tienen presencia y los secundarios reciben
   un tinte de marca al interactuar, sin convertir cada control en un bloque. */
html.theme-light .btn-primary,
html.theme-light .btn-submit,
html.theme-light button[class*="bg-primary"],
html.theme-light a[class*="bg-primary"] {
    box-shadow: 0 1px 2px rgb(67 31 8 / .18), 0 7px 18px -10px rgb(var(--c-primary) / .7);
}

html.theme-light [data-zyn-main] button[class*="border-border"],
html.theme-light [data-zyn-main] a[class*="border-border"] {
    background-color: rgb(var(--c-surface));
}

html.theme-light [data-zyn-main] button[class*="border-border"]:hover,
html.theme-light [data-zyn-main] a[class*="border-border"]:hover {
    border-color: rgb(var(--c-primary) / .48);
    background-color: rgb(var(--c-primary) / .07);
    color: rgb(var(--c-primary));
}

html.theme-light [data-zyn-main] .badge,
html.theme-light [data-zyn-main] [class*="rounded-full"][class*="bg-"] {
    box-shadow: inset 0 0 0 1px rgb(15 23 42 / .035);
}
