/* Bruce Cotizador Estándar - Estilos CSS */

.bruce-cotizador-wrapper {
    margin: 0 auto;
    padding: 25px;
    background: #6b7a53;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bruce-cotizador-header {
    text-align: center;
    margin-bottom: 30px;
}

.bruce-cotizador-header h2 {
    color: #fff;
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.bruce-cotizador-subtitle {
    color: #fff;
    font-size: 1.1em;
    margin: 0;
}

/* Barra de Progreso */
.bruce-cotizador-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e6dcc6;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5c3a21, #5c3a21);
    width: 20%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ecf0f1;
    color: #95a5a6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step.active {
    background: #5c3a21;
    color: white;
}

.step.completed {
    background: #27ae60;
    color: white;
}

/* Pasos del Formulario */
.bruce-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.bruce-step.active {
    display: block;
}

.bruce-step h3 {
    color: #fff;
    font-size: 1.8em;
    padding-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.bruce-step h4 {
    color: #34495e;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Opciones de Tipo de Objeto */
.bruce-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bruce-option {
    padding: 20px;
    border: 2px solid #5c3a21;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #e6dcc6;
}

.bruce-option:hover {
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.bruce-option.selected {
    border-color: #3498db;
    background: #ebf3fd;
    color: #2980b9;
}

.option-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.option-text {
    font-weight: 600;
    font-size: 1em;
}

/* Dimensiones */
.bruce-dimensions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.dimension-group {
    text-align: center;
}

.dimension-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

.dimension-group input {
    width: 120px;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1.2em;
    text-align: center;
    transition: border-color 0.3s ease;
}

.dimension-group input:focus {
    outline: none;
    border-color: #3498db;
}

.dimension-separator {
    font-size: 2em;
    color: #7f8c8d;
    font-weight: bold;
}

/* Vista Previa de Dimensiones */
.bruce-dimension-preview {
    text-align: center;
    margin-top: 20px;
}

.preview-frame {
    width: 250px;
    height: 250px;
    border: 4px solid #5c3a21;
    margin: 0 auto 10px;
    position: relative;
    background: #e6dcc6;
    border-radius: 4px;
}

.preview-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #5c3a21;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.preview-text {
    color: #fff;
    font-size: 1.1em;
    margin: 0;
}

/* Selector de Molduras */
.bruce-moldura-selector {
    margin-bottom: 20px;
}

.moldura-options {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
}

.moldura-type {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #34495e;
}

.moldura-type input[type="radio"] {
    margin: 0;
}

.molduras-grid,
.molduras-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.moldura-item {
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.moldura-item:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.moldura-item.selected {
    border-color: #3498db;
    background: #ebf3fd;
}

.moldura-imagen {
    width: 100%;
    height: 60px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
    background-size: cover;
    background-position: center;
}

.moldura-nombre {
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.moldura-precio {
    font-size: 0.8em;
    color: #7f8c8d;
}

/* Opciones de Radio Personalizadas */
.bruce-option-section {
    margin-bottom: 30px;
}

.bruce-radio-group {
    display: grid;
    gap: 12px;
}

.bruce-radio-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.bruce-radio-option:hover {
    border-color: #3498db;
}

.bruce-radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.bruce-radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #3498db;
    background: #3498db;
}

.bruce-radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-content strong {
    color: #2c3e50;
    font-size: 1.1em;
}

.radio-content small {
    color: #7f8c8d;
    display: block;
    margin-top: 2px;
}

/* Formulario de Contacto */
.bruce-contact-form {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.contact-field input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-field input:focus {
    outline: none;
    border-color: #3498db;
}

/* Resultado de Cotización */
.bruce-resultado {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.resultado-header {
    text-align: center;
    margin-bottom: 25px;
}

.resultado-header h4 {
    font-size: 1.8em;
    margin-bottom: 8px;
    color: white;
}

.resultado-header p {
    opacity: 0.9;
    margin: 0;
}

.precio-rango {
    text-align: center;
    margin-bottom: 25px;
}

.precio-principal {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.precio-valor {
    font-weight: bold;
    font-size: 1.3em;
    color: #f1c40f;
    margin: 0 10px;
}

.precio-promedio {
    font-size: 1.1em;
    opacity: 0.9;
}

.resultado-desglose {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.desglose-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.desglose-item:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.resultado-acciones {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.whatsapp-icon {
    font-size: 1.2em;
}

/* Navegación */
.bruce-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.btn-nav {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-anterior {
    background: #95a5a6;
    color: white;
}

.btn-anterior:hover {
    background: #7f8c8d;
}

.btn-siguiente,
.btn-cotizar {
    background: #5c3a21;
    color: white;
}

.btn-siguiente:hover,
.btn-cotizar:hover {
    background: #5c3a21ad;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Loading */
.bruce-loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.bruce-loading p {
    color: #7f8c8d;
    font-size: 1.1em;
    margin: 0;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .bruce-cotizador-wrapper {
        margin: 10px;
        padding: 15px;
    }
    
    .bruce-cotizador-header h2 {
        font-size: 1.8em;
    }
    
    .bruce-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bruce-dimensions {
        flex-direction: column;
        gap: 15px;
    }
    
    .dimension-separator {
        transform: rotate(90deg);
    }
    
    .molduras-grid,
    .molduras-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bruce-navigation {
        flex-direction: column;
    }
    
    .btn-nav {
        width: 100%;
    }
    
    .resultado-acciones {
        flex-direction: column;
    }
    
    .btn-whatsapp {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bruce-options-grid {
        grid-template-columns: 1fr;
    }
    
    .molduras-grid,
    .molduras-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        gap: 5px;
    }
    
    .step {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

