/* CSS Corregido para Cotizador de Reparaciones - Odoo 17 */

/* Variables CSS actualizadas - Sin morados */
:root {
    /* Colores principales - Azul profesional */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.1);
    --primary-shadow: rgba(37, 99, 235, 0.2);
    
    /* Colores de estado */
    --success-color: #059669;
    --error-color: #dc2626;
    --warning-color: #d97706;
    
    /* Colores neutros */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Bordes y sombras */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transiciones */
    --transition: 0.2s ease-in-out;
}

/* Reset completo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Contenedor principal - CORREGIDO */
.wizard-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header - CORREGIDO */
.wizard-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    color: white;
    flex-shrink: 0;
}

.wizard-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.025em;
}

.wizard-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
}

/* Stepper - CORREGIDO con iconos */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 360px;
    margin: 0 auto;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 12.5%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2;
    transition: width var(--transition);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step.active .step-number {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-sm);
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: white;
    font-weight: 600;
}

/* Contenido principal - CORREGIDO */
.wizard-content {
    flex: 1;
    padding: var(--spacing-xl) var(--spacing-lg);
    padding-bottom: 100px;
    background: white;
    overflow-y: auto;
}

/* Títulos de sección */
.wizard-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.wizard-section-title i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

/* Grid de dispositivos - CORREGIDO */
.device-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin: 0 auto var(--spacing-2xl);
    max-width: 100%;
}

/* Tarjetas de dispositivo - CORREGIDAS */
.device-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.device-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.device-card:hover::before {
    left: 100%;
}

.device-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.device-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px var(--primary-shadow);
    transform: translateY(-2px);
}

/* Iconos de dispositivos - AÑADIDOS */
.device-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    transition: color var(--transition);
}

.device-card.selected .device-icon {
    color: white;
}

/* Labels de dispositivos */
.device-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition);
}

.device-card.selected .device-label {
    color: white;
}

/* Contenedor de botones - CORREGIDO */
.button-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Centrar botones en contenedor */
@media (min-width: 480px) {
    .button-container {
        left: 50%;
        transform: translateX(-50%);
        width: 480px;
        max-width: 100%;
    }
}

/* Botones - CORREGIDOS */
.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
    flex: 1;
    max-width: 160px;
    margin-left: auto;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive - MEJORADO */
@media (max-width: 480px) {
    .wizard-container {
        max-width: 100%;
        border-radius: 0;
    }
    
    .wizard-header {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .wizard-title {
        font-size: 1.5rem;
    }
    
    .stepper {
        display: none;
    }
    
    .wizard-content {
        padding: var(--spacing-lg) var(--spacing-md);
        padding-bottom: 80px;
    }
    
    .wizard-section-title {
        font-size: 1.375rem;
        margin-bottom: var(--spacing-md);
    }
    
    .section-subtitle {
        margin-bottom: var(--spacing-lg);
    }
    
    .device-grid {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-xl);
    }
    
    .device-card {
        padding: var(--spacing-md);
        min-height: 80px;
    }
    
    .device-icon {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .device-label {
        font-size: 0.875rem;
    }
    
    .button-container {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .btn-primary {
        max-width: none;
        margin-left: 0;
    }
}

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

.device-card {
    animation: fadeInUp 0.4s ease-out;
}

.device-card:nth-child(1) { animation-delay: 0.1s; }
.device-card:nth-child(2) { animation-delay: 0.2s; }
.device-card:nth-child(3) { animation-delay: 0.3s; }
.device-card:nth-child(4) { animation-delay: 0.4s; }
.device-card:nth-child(5) { animation-delay: 0.5s; }

/* Estados de wizard */
.wizard-step:not(.active) {
    display: none !important;
}

.wizard-step.active {
    display: block !important;
    animation: fadeInUp 0.3s ease-out;
}

/* Focus states */
.device-card:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Estilos para otros pasos */
.modern-input,
.form-control {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.modern-input:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.problem-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

.problem-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.problem-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.problem-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.problem-card.selected .problem-icon {
    color: white;
}

.problem-label {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.3;
}

.problem-card.selected .problem-label {
    color: white;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* AGREGAR ESTOS ESTILOS A TU CSS EXISTENTE */

/* Actualizar stepper para 6 pasos */
.stepper {
    max-width: 400px; /* Aumentar ancho para 6 pasos */
}

.stepper::before {
    left: 8.33%; /* Ajustar para 6 pasos */
    right: 8.33%;
}

.progress-line {
    left: 8.33%; /* Ajustar para 6 pasos */
}

.step-number {
    width: 32px; /* Reducir tamaño para que quepan 6 */
    height: 32px;
    font-size: 0.75rem;
}

.step-label {
    font-size: 0.65rem; /* Reducir para que quepan 6 labels */
}

/* Estilos para búsqueda de modelos */
.model-search {
    margin-bottom: var(--spacing-lg);
}

.search-input-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.125rem;
    z-index: 2;
}

.search-input-container .modern-input,
.search-input-container .form-control {
    padding-left: 2.75rem;
}

/* Lista de modelos */
.model-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: var(--spacing-xl);
}

.model-item {
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-primary);
}

.model-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.model-item.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.model-name {
    font-weight: 500;
    font-size: 1rem;
}

.model-item mark {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.model-item.selected mark {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Estados sin resultados */
.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.no-results i {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.no-results p {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.no-results small {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Formulario de contacto */
.contact-form {
    margin-bottom: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

textarea.form-control,
textarea.modern-input {
    resize: vertical;
    min-height: 80px;
}

/* Resumen de cotización */
.quote-summary,
.modern-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.quote-summary h3,
.modern-summary h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    font-weight: 500;
    color: var(--text-secondary);
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-md);
    border-top: 2px solid var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
}

.price-value {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Opciones de entrega */
.delivery-options {
    margin-bottom: var(--spacing-xl);
}

.delivery-options h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.delivery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.delivery-card {
    display: block;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.delivery-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.delivery-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.delivery-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.delivery-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.delivery-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-card:has(input[type="radio"]:checked) .delivery-icon {
    color: white;
}

.delivery-info {
    flex: 1;
}

.delivery-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.delivery-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.3;
}

.delivery-card:has(input[type="radio"]:checked) .delivery-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Confirmación */
.confirmation {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: var(--spacing-lg);
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.confirmation-title {
    color: var(--success-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 700;
}

.confirmation-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    font-size: 1rem;
}

.quote-reference {
    background: var(--success-color);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
    font-size: 1rem;
    font-weight: 600;
}

.success-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.success-actions .btn {
    min-width: 180px;
}

/* Estados completados en stepper */
.step.completed .step-number {
    background: rgba(255, 255, 255, 0.9);
    color: var(--success-color);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Scrollbar para lista de modelos */
.model-list::-webkit-scrollbar {
    width: 4px;
}

.model-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.model-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.model-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Responsive adicional */
@media (max-width: 480px) {
    .confirmation {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .confirmation-icon {
        font-size: 3rem;
    }
    
    .confirmation-title {
        font-size: 1.25rem;
    }
    
    .success-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .success-actions .btn {
        min-width: auto;
        width: 100%;
    }
    
    .quote-summary {
        padding: var(--spacing-md);
    }
    
    .delivery-options h3 {
        font-size: 1rem;
    }
    
    .delivery-content {
        gap: var(--spacing-sm);
    }
    
    .delivery-card {
        padding: var(--spacing-sm);
    }
}

/* Mejoras en loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner p {
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 1rem;
}

/* AGREGAR ESTOS ESTILOS A TU CSS EXISTENTE */

/* Barra de progreso moderna - REEMPLAZA el stepper */
.progress-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 32px; /* Reducir tamaño para que quepan 6 */
    height: 32px;
    font-size: 0.75rem;
}

.step-label {
    font-size: 0.65rem; /* Reducir para que quepan 6 labels */
}

/* Estilos para búsqueda de modelos */
.model-search {
    margin-bottom: var(--spacing-lg);
}

.search-input-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.125rem;
    z-index: 2;
}

.search-input-container .modern-input,
.search-input-container .form-control {
    padding-left: 2.75rem;
}

/* Lista de modelos */
.model-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: var(--spacing-xl);
}

.model-item {
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-primary);
}

.model-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.model-item.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.model-name {
    font-weight: 500;
    font-size: 1rem;
}

.model-item mark {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.model-item.selected mark {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Estados sin resultados */
.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.no-results i {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.no-results p {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.no-results small {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Formulario de contacto */
.contact-form {
    margin-bottom: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

textarea.form-control,
textarea.modern-input {
    resize: vertical;
    min-height: 80px;
}

/* Resumen de cotización */
.quote-summary,
.modern-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.quote-summary h3,
.modern-summary h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    font-weight: 500;
    color: var(--text-secondary);
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-md);
    border-top: 2px solid var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
}

.price-value {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Opciones de entrega */
.delivery-options {
    margin-bottom: var(--spacing-xl);
}

.delivery-options h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.delivery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.delivery-card {
    display: block;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.delivery-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.delivery-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.delivery-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.delivery-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.delivery-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-card:has(input[type="radio"]:checked) .delivery-icon {
    color: white;
}

.delivery-info {
    flex: 1;
}

.delivery-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.delivery-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.3;
}

.delivery-card:has(input[type="radio"]:checked) .delivery-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Confirmación */
.confirmation {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: var(--spacing-lg);
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.confirmation-title {
    color: var(--success-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 700;
}

.confirmation-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    font-size: 1rem;
}

.quote-reference {
    background: var(--success-color);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
    font-size: 1rem;
    font-weight: 600;
}

.success-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.success-actions .btn {
    min-width: 180px;
}

/* Estados completados en stepper */
.step.completed .step-number {
    background: rgba(255, 255, 255, 0.9);
    color: var(--success-color);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Scrollbar para lista de modelos */
.model-list::-webkit-scrollbar {
    width: 4px;
}

.model-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.model-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.model-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Responsive adicional */
@media (max-width: 480px) {
    .progress-container {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    .progress-bar {
        height: 6px;
        margin-bottom: var(--spacing-sm);
    }
    
    .progress-text {
        font-size: 0.8125rem;
    }
    
    .confirmation {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .confirmation-icon {
        font-size: 3rem;
    }
    
    .confirmation-title {
        font-size: 1.25rem;
    }
    
    .success-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .success-actions .btn {
        min-width: auto;
        width: 100%;
    }
    
    .quote-summary {
        padding: var(--spacing-md);
    }
    
    .delivery-options h3 {
        font-size: 1rem;
    }
    
    .delivery-content {
        gap: var(--spacing-sm);
    }
    
    .delivery-card {
        padding: var(--spacing-sm);
    }
}

/* Mejoras en loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner p {
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 1rem;
}

/* AGREGAR ESTOS ESTILOS A TU CSS EXISTENTE */

/* Barra de progreso moderna - REEMPLAZA el stepper */
.progress-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 32px; /* Reducir tamaño para que quepan 6 */
    height: 32px;
    font-size: 0.75rem;
}

.step-label {
    font-size: 0.65rem; /* Reducir para que quepan 6 labels */
}

/* Estilos para búsqueda de modelos */
.model-search {
    margin-bottom: var(--spacing-lg);
}

.search-input-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.125rem;
    z-index: 2;
}

.search-input-container .modern-input,
.search-input-container .form-control {
    padding-left: 2.75rem;
}

/* Lista de modelos */
.model-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: var(--spacing-xl);
}

.model-item {
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-primary);
}

.model-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.model-item.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.model-name {
    font-weight: 500;
    font-size: 1rem;
}

.model-item mark {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.model-item.selected mark {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Estados sin resultados */
.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.no-results i {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.no-results p {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.no-results small {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Formulario de contacto */
.contact-form {
    margin-bottom: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

textarea.form-control,
textarea.modern-input {
    resize: vertical;
    min-height: 80px;
}

/* Resumen de cotización */
.quote-summary,
.modern-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.quote-summary h3,
.modern-summary h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    font-weight: 500;
    color: var(--text-secondary);
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-md);
    border-top: 2px solid var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
}

.price-value {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Opciones de entrega */
.delivery-options {
    margin-bottom: var(--spacing-xl);
}

.delivery-options h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.delivery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.delivery-card {
    display: block;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.delivery-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.delivery-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.delivery-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.delivery-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.delivery-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-card:has(input[type="radio"]:checked) .delivery-icon {
    color: white;
}

.delivery-info {
    flex: 1;
}

.delivery-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.delivery-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.3;
}

.delivery-card:has(input[type="radio"]:checked) .delivery-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Confirmación */
.confirmation {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: var(--spacing-lg);
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.confirmation-title {
    color: var(--success-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 700;
}

.confirmation-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    font-size: 1rem;
}

.quote-reference {
    background: var(--success-color);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
    font-size: 1rem;
    font-weight: 600;
}

.success-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.success-actions .btn {
    min-width: 180px;
}

/* Estados completados en stepper */
.step.completed .step-number {
    background: rgba(255, 255, 255, 0.9);
    color: var(--success-color);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Scrollbar para lista de modelos */
.model-list::-webkit-scrollbar {
    width: 4px;
}

.model-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.model-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.model-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Estilos para opciones de tienda y direcciones */
.store-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.store-card {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.store-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.store-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.store-card input[type="radio"]:checked + .store-content {
    color: rgba(255, 255, 255, 1);
}

.store-card input[type="radio"]:checked ~ * {
    border-color: rgba(255, 255, 255, 0.8);
}

.store-card:has(input[type="radio"]:checked) {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.store-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    width: 100%;
}

.store-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.store-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-name {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

.store-address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.4;
}

.store-hours {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    font-style: italic;
}

.form-helper {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    margin-top: 4px;
    font-style: italic;
}

/* Botón más ancho para texto largo */
.btn-next {
    min-width: 180px;
    padding: var(--spacing-sm) var(--spacing-lg);
    white-space: nowrap;
}

/* Responsive para opciones de tienda */
@media (max-width: 480px) {
    .store-content {
        gap: var(--spacing-sm);
    }
    
    .store-card {
        padding: var(--spacing-sm);
    }
    
    .store-icon {
        font-size: 1.25rem;
    }
    
    .store-name {
        font-size: 0.9375rem;
    }
    
    .store-address,
    .store-hours {
        font-size: 0.8125rem;
    }
    
    .btn-next {
        min-width: 160px;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9375rem;
    }
}

/* Mejoras en loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner p {
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 1rem;
}

/* AGREGAR ESTOS ESTILOS A TU CSS EXISTENTE */

/* Barra de progreso moderna - REEMPLAZA el stepper */
.progress-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 32px; /* Reducir tamaño para que quepan 6 */
    height: 32px;
    font-size: 0.75rem;
}

.step-label {
    font-size: 0.65rem; /* Reducir para que quepan 6 labels */
}

/* Estilos para búsqueda de modelos */
.model-search {
    margin-bottom: var(--spacing-lg);
}

.search-input-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.125rem;
    z-index: 2;
}

.search-input-container .modern-input,
.search-input-container .form-control {
    padding-left: 2.75rem;
}

/* Lista de modelos */
.model-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: var(--spacing-xl);
}

.model-item {
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-primary);
}

.model-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.model-item.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.model-name {
    font-weight: 500;
    font-size: 1rem;
}

.model-item mark {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.model-item.selected mark {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Estados sin resultados */
.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.no-results i {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.no-results p {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.no-results small {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Formulario de contacto */
.contact-form {
    margin-bottom: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

textarea.form-control,
textarea.modern-input {
    resize: vertical;
    min-height: 80px;
}

/* Resumen de cotización */
.quote-summary,
.modern-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.quote-summary h3,
.modern-summary h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    font-weight: 500;
    color: var(--text-secondary);
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-md);
    border-top: 2px solid var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
}

.price-value {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Opciones de entrega */
.delivery-options {
    margin-bottom: var(--spacing-xl);
}

.delivery-options h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.delivery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.delivery-card {
    display: block;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.delivery-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.delivery-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.delivery-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.delivery-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.delivery-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-card:has(input[type="radio"]:checked) .delivery-icon {
    color: white;
}

.delivery-info {
    flex: 1;
}

.delivery-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.delivery-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.3;
}

.delivery-card:has(input[type="radio"]:checked) .delivery-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Confirmación */
.confirmation {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: var(--spacing-lg);
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.confirmation-title {
    color: var(--success-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 700;
}

.confirmation-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    font-size: 1rem;
}

.quote-reference {
    background: var(--success-color);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
    font-size: 1rem;
    font-weight: 600;
}

.success-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.success-actions .btn {
    min-width: 180px;
}

/* Estados completados en stepper */
.step.completed .step-number {
    background: rgba(255, 255, 255, 0.9);
    color: var(--success-color);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Scrollbar para lista de modelos */
.model-list::-webkit-scrollbar {
    width: 4px;
}

.model-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.model-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.model-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Nuevo sistema de campos extras debajo de cada opción */
.delivery-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.delivery-extra-field {
    margin-left: var(--spacing-lg);
    padding-left: var(--spacing-md);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: var(--spacing-md);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.store-locations {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Estilos para opciones de tienda y direcciones - ACTUALIZADOS */
.store-card {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.store-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.store-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.store-card input[type="radio"]:checked + .store-content {
    color: rgba(255, 255, 255, 1);
}

.store-card:has(input[type="radio"]:checked) {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.store-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    width: 100%;
}

.store-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.store-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-name {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

.store-address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.4;
}

.store-hours {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    font-style: italic;
}

.form-helper {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    margin-top: 4px;
    font-style: italic;
}

/* Botón más ancho para texto largo */
.btn-next {
    min-width: 180px;
    padding: var(--spacing-sm) var(--spacing-lg);
    white-space: nowrap;
}

/* Responsive para opciones de tienda */
@media (max-width: 768px) {
    .delivery-extra-field {
        margin-left: 0;
        border-left: none;
        border-top: 3px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--border-radius);
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .delivery-extra-field {
        padding: var(--spacing-sm);
    }
    
    .store-content {
        gap: var(--spacing-sm);
    }
    
    .store-card {
        padding: var(--spacing-sm);
    }
    
    .store-icon {
        font-size: 1.25rem;
    }
    
    .store-name {
        font-size: 0.9375rem;
    }
    
    .store-address,
    .store-hours {
        font-size: 0.8125rem;
    }
    
    .btn-next {
        min-width: 160px;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9375rem;
    }
}

/* Mejoras en loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner p {
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 1rem;
}

/* CORRECCIÓN: Estilos para tarjetas de tienda en fondo blanco (Paso 5) */

/* Contenedor principal de ubicaciones de tienda */
.store-locations {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Tarjetas de tienda - CORREGIDAS para fondo blanco */
.store-card {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.store-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.store-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Estado seleccionado */
.store-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.store-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    width: 100%;
}

.store-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
    transition: color var(--transition);
}

/* Icono cuando está seleccionado */
.store-card:has(input[type="radio"]:checked) .store-icon {
    color: white;
}

.store-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color var(--transition);
}

/* Nombre cuando está seleccionado */
.store-card:has(input[type="radio"]:checked) .store-name {
    color: white;
}

.store-address {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color var(--transition);
}

/* Dirección cuando está seleccionado */
.store-card:has(input[type="radio"]:checked) .store-address {
    color: rgba(255, 255, 255, 0.9);
}

.store-hours {
    color: var(--text-light);
    font-size: 0.8125rem;
    font-style: italic;
    transition: color var(--transition);
}

/* Horarios cuando está seleccionado */
.store-card:has(input[type="radio"]:checked) .store-hours {
    color: rgba(255, 255, 255, 0.8);
}

/* Campo extra de entrega */
.delivery-extra-field {
    margin-left: var(--spacing-lg);
    padding-left: var(--spacing-md);
    border-left: 3px solid var(--primary-color);
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--spacing-md);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Texto de ayuda */
.form-helper {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-top: 4px;
    font-style: italic;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .delivery-extra-field {
        margin-left: 0;
        border-left: none;
        border-top: 3px solid var(--primary-color);
        border-radius: var(--radius-md);
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .delivery-extra-field {
        padding: var(--spacing-sm);
    }
    
    .store-content {
        gap: var(--spacing-sm);
    }
    
    .store-card {
        padding: var(--spacing-sm);
    }
    
    .store-icon {
        font-size: 1.25rem;
    }
    
    .store-name {
        font-size: 0.9375rem;
    }
    
    .store-address,
    .store-hours {
        font-size: 0.8125rem;
    }
}


/* Agregar estos estilos al final de tu CSS existente */

.price-breakdown {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.breakdown-content h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
}

.breakdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breakdown-content li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #6b7280;
}

.breakdown-content li:last-child {
    border-bottom: none;
}

.price-value.updating {
    color: #fbbf24;
    opacity: 0.7;
}