:root {
    --primary-color: #ff6b00;
    --secondary-color: #ff9d00;
    --background-color: #ffffff;
    --text-color: #333333;
    --accent-color: #d37a2d;
}

/* Panel de control de temas */
.theme-controls {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

/* Botón de toggle del panel */
.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
}

.theme-toggle i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* Panel de temas */
.theme-panel {
    position: fixed;
    right: -300px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.theme-panel.active {
    right: 80px;
    opacity: 1;
}

.theme-panel h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* Opciones de temas */
.theme-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Selector de color personalizado */
.custom-colors {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.custom-colors input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.custom-colors label {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Modo oscuro */
body.dark-mode .theme-panel {
    background: #333;
    color: white;
}

body.dark-mode .theme-option {
    background: #444;
    color: white;
}

body.dark-mode .custom-colors {
    background: #444;
}

body.dark-mode .theme-panel h3 {
    color: white;
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsivo */
@media (max-width: 768px) {
    .theme-panel {
        width: 240px;
    }

    .theme-options {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle i {
        font-size: 1.2rem;
    }
}
