/* Tema global: parecia facil hasta que claro/oscuro empezo a pelearse solo. */
html[data-theme="light"] {
    --bg: #f3f6fb;
    --card: #ffffff;
    --card-border: #d9e1ea;
    --accent: #0f766e;
    --accent-dim: rgba(15, 118, 110, 0.1);
    --text: #111827;
    --text-dim: #4b5563;
    --border: #d9e1ea;
}

html[data-theme="light"] #loader-overlay {
    background: #eaf0f7;
}

html[data-theme="light"] #ldr-label {
    color: #0f766e;
    opacity: 0.8;
}

html[data-theme="light"] .p-card:hover {
    background: #f7fafc;
}

.theme-toggle-global {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 12000;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 14px;
    background: var(--card);
    color: var(--text);
    font-size: 0.76rem;
    font-family: "DM Mono", monospace;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

.theme-toggle-global:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .theme-toggle-global {
        top: 14px;
        left: 14px;
        right: auto;
        bottom: auto;
    }
}
