/* Estilos base y contenedor */
.decorator {
    padding: 60px 20px;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container_dec {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container_dec h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2.2rem;
}

/* Grid de paneles */
.panels-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.panel {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.panel h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

/* Estilos específicos para cada panel */
.panel-producto {
    border-top: 5px solid #3498db;
}

.panel-superficie {
    border-top: 5px solid #2ecc71;
}

.panel-restar {
    border-top: 5px solid #e74c3c;
}

.panel-opciones {
    border-top: 5px solid #f39c12;
}

.panel-resultados {
    border-top: 5px solid #9b59b6;
    width: 100%;
}

/* Elementos de formulario */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.input-group input,
.panel select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus,
.panel select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.option-group {
    margin-bottom: 20px;
}

.option-group h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #34495e;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: normal;
}

.option-group input[type="radio"] {
    margin-right: 8px;
}

.door-window-inputs {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #95a5a6;
}

.door-window-inputs h4 {
    margin-bottom: 10px;
    color: #34495e;
    font-size: 0.95rem;
}

.door-window-inputs div {
    margin-bottom: 10px;
}

.door-window-inputs label {
    font-weight: normal;
    display: block;
    margin-bottom: 5px;
}

.door-window-inputs input {
    width: 100%;
    padding: 8px 12px;
}

/* Botones */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

/* Panel de resultados */
.panel-resultados table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.panel-resultados th,
.panel-resultados td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.panel-resultados th {
    width: 40%;
    color: #2c3e50;
    font-weight: 600;
}

.panel-resultados td {
    color: #34495e;
}

.note {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .panel {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .panel {
        flex: 1 1 100%;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}