:root {
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #ffffff;
    --border-color: #ced4da;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #fff;
    --card-bg: #2d2d2d;
    --border-color: #444;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, sans-serif;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode .mosaic-item,
body.dark-mode .card {
    background: var(--card-bg);
    color: var(--text-color);
}

/* ==================== ESTILOS DEL SWITCH ==================== */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0 5px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

body.dark-mode .slider {
    background-color: #555;
}

body.dark-mode input:checked + .slider {
    background-color: #0d6efd;
}

/* ==================== ESTILOS DEL MENÚ ==================== */
.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

@media (max-width: 576px) {
    .dropdown-menu {
        max-height: 250px;
    }
}