body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background-color: #1E293B;
    color: #F8FAFC;
    text-align: center;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor {
    background: #334155;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 95%;
    margin: 20px auto;
}

h1 {
    color: #38BDF8;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Panel de control */
.panel-control {
    margin-bottom: 20px;
}

.config-section {
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin-bottom: 5px;
}

.radio-label span {
    background-color: #475569;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + span {
    background-color: #38BDF8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Resistencia */
.resistencia-container {
    margin: 30px 0;
}

.resistencia {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #E2E8F0;
    padding: 15px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    height: 80px;
}

.banda {
    width: 20px;
    height: 80px;
    margin: 0 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Selectores de color */
.color-selectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.selector-group {
    background: #475569;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.selector-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #F8FAFC;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    margin: 3px auto;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.color-option:hover {
    transform: scale(1.2);
}

.color-option.selected {
    border: 2px solid white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.select-hidden {
    display: none;
}

/* Botón */
button {
    background: linear-gradient(135deg, #38BDF8, #0EA5E9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.5);
}

button:hover {
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.6);
}

/* Resultado */
#resultado-container {
    background: #475569;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#resultado {
    font-size: 20px;
    font-weight: bold;
    color: #F8FAFC;
    margin-bottom: 10px;
}

#explicacion {
    font-size: 14px;
    color: #CBD5E1;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .color-selectors {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .color-selectors {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-wrap: wrap;
    }
}
