:root {
    --color-primary: #020826;
    --color-primary-hover: #0b1338;
    --color-accent: #2563eb;
    --color-light-blue: #e0e7ff;

    --color-bg: #f1f5f9;
    --color-surface: #ffffff;

    --color-text-main: #020826;
    --color-text-muted: #64748b;
    --color-text-light: #ffffff;
    --color-border: #e2e8f0;

    --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

/* Modo oscuro azul Uruguay */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.dark-mode {
    /* Header y Footer NO cambian */
    /* --color-primary se mantiene como está */

    /* Detalles */
    --color-accent: #3b82f6;
    --color-light-blue: #1e3a8a;

    /* Body más oscuro */
    --color-bg: #101a2b;

    /* Tarjetas */
    --color-surface: #18263d;

    /* Textos */
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-light: #ffffff;

    /* Bordes */
    --color-border: #2a3d5c;
}

body.dark-mode .card-header h3 {
    color: #ffffff;
}

body.dark-mode .btn-theme {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
}

body.dark-mode .btn-theme:hover {
    background-color: var(--color-accent);
}

.btn-theme {
    width: 40px;
    height: 40px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(147, 197, 253, 0.35);
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text-light);

    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-theme:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

#theme-icon {
    font-size: 1rem;
    line-height: 1;
}

#theme-text {
    white-space: nowrap;
}


a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   RESPONSIVE HEADER
========================= */

@media (max-width: 768px) {

    .nav-contenedor {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .logo-link {
        width: 100%;
        justify-content: center;
    }

    .menu {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .menu a {
        font-size: 0.85rem;
    }

    .theme-switch-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btn-theme {
        font-size: 0.8rem;
        padding: 0.45rem 0.75rem;
    }
}

@media (max-width: 480px) {

    .nav-contenedor {
        padding: 0 1rem;
    }

    .logo-img {
        height: 36px;
    }

    .menu {
        gap: 0.7rem;
    }

    .menu a {
        font-size: 0.78rem;
    }

    .btn-theme {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }
}