/* ==============================================
   ESTILOS PARA EL COTIZADOR MEJORADO
   ============================================== */

/* Modal del Cotizador */
.cotizador-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.cotizador-header {
    background: linear-gradient(135deg, #0D6EFD, #00539C);
    color: white;
    padding: 2rem;
    border: none;
}

.cotizador-header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cotizador-header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Barra de Progreso */
.cotizador-progress {
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.progress-bar {
    background: linear-gradient(90deg, #0D6EFD, #00539C);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step.active {
    background: #0D6EFD;
    color: white;
    transform: scale(1.1);
}

.step.completed {
    background: #28a745;
    color: white;
}

.step.completed::after {
    content: "✓";
    font-size: 0.8rem;
}

/* Contenido del Cotizador */
.cotizador-body {
    padding: 2rem;
    min-height: 500px;
}

.cotizador-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.cotizador-step.active {
    display: block;
}

.step-title {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.step-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Opciones del Cotizador */
.cotizador-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cotizador-options.simple-options {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.option-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    border-color: #0D6EFD;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.15);
}

.option-card.selected {
    border-color: #0D6EFD;
    background: #f8f9ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
}

.option-card.recommended {
    border-color: #28a745;
    position: relative;
}

.recommended-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 15px 0 15px;
}

.option-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #0D6EFD, #00539C);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
}

.option-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.option-card:hover .option-icon {
    transform: scale(1.1) rotate(5deg);
}

.option-card.selected .option-icon {
    background: linear-gradient(135deg, #0D6EFD, #6610f2);
    transform: scale(1.05);
}

.option-card h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.option-card p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.option-features {
    margin-bottom: 1rem;
}

.feature {
    display: inline-block;
    background: #e3f2fd;
    color: #0D6EFD;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0 0.25rem 0.25rem 0;
}

.option-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.option-details small {
    color: #6c757d;
    line-height: 1.4;
}

.price-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #0D6EFD;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-tag.free {
    background: #28a745;
}

.price-tag.discount {
    background: #dc3545;
}

/* Navegación entre pasos */
.step-navigation {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Resumen Final */
.resumen-container {
    max-width: 600px;
    margin: 0 auto;
}

.resumen-header {
    text-align: center;
    margin-bottom: 2rem;
}

.resumen-header h2 {
    color: #28a745;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.resumen-content {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.resumen-details h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.opciones-seleccionadas {
    margin-bottom: 2rem;
}

.opcion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.opcion-item:last-child {
    border-bottom: none;
}

.opcion-nombre {
    font-weight: 500;
    color: #333;
}

.opcion-precio {
    font-weight: 600;
    color: #0D6EFD;
}

.resumen-precio {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border: 2px solid #0D6EFD;
    margin-bottom: 2rem;
}

.precio-total h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.precio-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.2rem;
    color: #6c757d;
    margin-right: 0.5rem;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #0D6EFD;
}

.tiempo-estimado {
    color: #6c757d;
    font-size: 1rem;
}

.resumen-actions {
    text-align: center;
}

.cta-buttons {
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    margin: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.garantias {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.garantia-item {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.garantia-item i {
    color: #28a745;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Efectos especiales para interacciones */
.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.option-card:hover::before {
    left: 100%;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.option-card.selected {
    animation: pulse 0.6s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cotizador-header {
        padding: 1.5rem;
    }
    
    .cotizador-header-content h1 {
        font-size: 1.5rem;
    }
    
    .cotizador-body {
        padding: 1.5rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .cotizador-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .option-card {
        padding: 1rem;
    }
    
    .garantias {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .progress-steps {
        gap: 0.5rem;
    }
    
    .step {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .cotizador-progress {
        padding: 1rem;
    }
    
    .progress-steps {
        display: none;
    }
    
    .cotizador-header-content h1 {
        font-size: 1.3rem;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .resumen-container {
        max-width: 100%;
    }
    
    .resumen-content {
        padding: 1.5rem;
    }
    
    .resumen-precio {
        padding: 1.5rem;
    }
    
    .amount {
        font-size: 2rem;
    }
}

/* ==============================================
   ESTILOS ADICIONALES PARA MODAL DE CONTACTO
   ============================================== */

/* Asegurar que los botones de cierre funcionen correctamente */
.modal-header .btn-close {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

.modal-footer .btn {
    min-width: 100px;
}

/* Mejorar la experiencia del CAPTCHA */
.captcha-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.captcha-container .form-control {
    max-width: 80px;
}

#refreshCaptcha {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mejorar el z-index para evitar conflictos entre modales */
#contactModal {
    z-index: 1060;
}

#exampleModal {
    z-index: 1055;
}

/* Cuando el modal de contacto se abre desde el cotizador */
.modal-backdrop.show {
    z-index: 1050;
}
