/* Cotizador Clean — CSS extraído de page-cotizador-clean.php
   Cargado por wp_enqueue_style (functions.php). */

/* ===== Override/reset de Tailwind ===== */
                /* Reset adicional para WordPress */
                * {
                        box-sizing: border-box !important;
                }

                /* Forzar que Tailwind tenga prioridad */
                .tailwind-override {
                        all: unset !important;
                }

                /* Asegurar que las imágenes se muestren correctamente */
                img {
                        max-width: none !important;
                        height: auto !important;
                }

                /* Estilos para los botones de tipo de servicio */
                #tipo-servicio button {
                        transition: all 0.3s ease !important;
                        cursor: pointer !important;
                }

                #tipo-servicio button:hover {
                        transform: translateY(-2px) !important;
                }

                #tipo-servicio button:active {
                        transform: translateY(0) !important;
                }


                @keyframes pulse {
                        0% {
                                transform: scale(1);
                        }

                        50% {
                                transform: scale(1.05);
                        }

                        100% {
                                transform: scale(1);
                        }
                }

                /* Estilos para el modal de confirmación */
                .modal-confirmacion {
                        animation: fadeIn 0.3s ease-in-out !important;
                }

                @keyframes fadeIn {
                        from {
                                opacity: 0;
                                transform: scale(0.9);
                        }

                        to {
                                opacity: 1;
                                transform: scale(1);
                        }
                }

                /* Estilos para el botón COMIENZA AQUÍ */
                #comenzar-btn {
                        transition: all 0.3s ease !important;
                }

                #comenzar-btn:hover {
                        transform: translateY(-2px) !important;
                }

                #comenzar-btn:active {
                        transform: translateY(0) !important;
                }

                /* Estilos para los artículos de tipo de servicio */
                #tipo-servicio article {
                        transition: all 0.3s ease !important;
                }

                #tipo-servicio article:hover {
                        transform: translateY(-4px) !important;
                }

                #tipo-servicio article:active {
                        transform: translateY(-2px) !important;
                }

                /* Estilos para el flujo de transporte de personal */
                .form-section {
                        margin-bottom: 3rem !important;
                        padding: 2rem !important;
                        background: white !important;
                        border-radius: 15px !important;
                        box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
                        border: 1px solid #f0f0f0 !important;
                }

                .section-title {
                        color: #2c3e50 !important;
                        font-size: 1.4rem !important;
                        font-weight: 700 !important;
                        margin-bottom: 1.5rem !important;
                        text-align: center !important;
                        line-height: 1.3 !important;
                }

                .form-row {
                        display: grid !important;
                        grid-template-columns: 1fr 1fr !important;
                        gap: 2rem !important;
                        margin-bottom: 1rem !important;
                }

                .form-group {
                        display: flex !important;
                        flex-direction: column !important;
                }

                .form-group label {
                        font-weight: 600 !important;
                        color: #2c3e50 !important;
                        margin-bottom: 0.5rem !important;
                        font-size: 0.95rem !important;
                    }

                .form-group input,
                .form-group select,
                .form-group textarea {
                        padding: 12px 16px !important;
                        border: 2px solid #e9ecef !important;
                        border-radius: 8px !important;
                        font-size: 1rem !important;
                        transition: all 0.3s ease !important;
                        background: white !important;
                        width: 100% !important;
                }

                .form-group input:focus,
                .form-group select:focus,
                .form-group textarea:focus {
                        outline: none !important;
                        border-color: #007bff !important;
                        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
                }

                .form-group input.error,
                .form-group select.error,
                .form-group textarea.error {
                        border-color: #dc3545 !important;
                        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
                }

                .error-message {
                        color: #dc3545 !important;
                        font-size: 0.875rem !important;
                        margin-top: 0.25rem !important;
                }

                .field-hint {
                        color: #6c757d !important;
                        font-size: 0.85rem !important;
                        margin-top: 0.25rem !important;
                }

                .success-inline {
                        color: #28a745 !important;
                        font-size: 0.85rem !important;
                        margin-top: 0.25rem !important;
                }

                .message {
                        color: #6c757d !important;
                        font-size: 0.85rem !important;
                        margin-top: 0.25rem !important;
                }

                /* Estilos para las opciones de tipo de servicio */
                .tipo-servicio-options {
                        display: flex !important;
                        gap: 2rem !important;
                        margin-top: 1.5rem !important;
                        justify-content: center !important;
                        flex-wrap: wrap !important;
                }

                .tipo-servicio-option {
                        position: relative !important;
                        cursor: pointer !important;
                        min-width: 200px !important;
                }

                .tipo-servicio-option .option-content {
                        padding: 1.5rem !important;
                        background: white !important;
                        border: 2px solid #e9ecef !important;
                        border-radius: 12px !important;
                        text-align: center !important;
                        transition: all 0.3s ease !important;
                        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
                }

                .tipo-servicio-option input[type="radio"] {
                        position: absolute !important;
                        opacity: 0 !important;
                        width: 0 !important;
                        height: 0 !important;
                        margin: 0 !important;
                        pointer-events: none !important;
                        appearance: none !important;
                        -webkit-appearance: none !important;
                    }

                .tipo-servicio-option .option-content h4 {
                        color: #2c3e50 !important;
                        font-size: 1.1rem !important;
                        font-weight: 600 !important;
                        margin: 0 !important;
                        text-transform: uppercase !important;
                        letter-spacing: 0.5px !important;
                    }

                .tipo-servicio-option .option-content p {
                        color: #6c757d !important;
                        font-size: 0.9rem !important;
                        margin: 0.5rem 0 0 0 !important;
                    }

                .tipo-servicio-option:hover .option-content {
                        border-color: #007bff !important;
                        transform: translateY(-2px) !important;
                        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2) !important;
                    }

                .tipo-servicio-option input[type="radio"]:checked + .option-content {
                        border-color: #2d6cdf !important;
                        background: #f6faff !important;
                        transform: translateY(-2px) !important;
                        box-shadow: 0 5px 20px rgba(45, 108, 223, 0.25) !important;
                    }

                .tipo-servicio-option .campo-valido-label {
                        position: absolute !important;
                        top: -10px !important;
                        right: -10px !important;
                        background: #28a745 !important;
                        color: white !important;
                        font-size: 0.75rem !important;
                        font-weight: 600 !important;
                        padding: 4px 8px !important;
                        border-radius: 12px !important;
                        box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important;
                        opacity: 0 !important;
                        transform: scale(0.8) !important;
                        transition: all 0.3s ease !important;
                        z-index: 10 !important;
                        pointer-events: none !important;
                    }

                .tipo-servicio-option input[type="radio"]:checked + .option-content .campo-valido-label {
                        opacity: 1 !important;
                        transform: scale(1) !important;
                    }

                /* Estilos para opciones de contacto */
                .contacto-options {
                        display: flex !important;
                        gap: 2rem !important;
                        margin-top: 1.5rem !important;
                        justify-content: center !important;
                        flex-wrap: wrap !important;
                }

                .contacto-option {
                        position: relative !important;
                        cursor: pointer !important;
                        min-width: 200px !important;
                }

                .contacto-option .option-content {
                        padding: 1.5rem !important;
                        background: white !important;
                        border: 2px solid #e9ecef !important;
                        border-radius: 12px !important;
                        text-align: center !important;
                        transition: all 0.3s ease !important;
                        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
                    }

                .contacto-option input[type="radio"] {
                        position: absolute !important;
                        opacity: 0 !important;
                        width: 0 !important;
                        height: 0 !important;
                        margin: 0 !important;
                        pointer-events: none !important;
                        appearance: none !important;
                        -webkit-appearance: none !important;
                    }

                .contacto-option .option-content h4 {
                        color: #2c3e50 !important;
                        font-size: 1.1rem !important;
                        font-weight: 600 !important;
                        margin: 0 !important;
                        text-transform: uppercase !important;
                        letter-spacing: 0.5px !important;
                    }

                .contacto-option:hover .option-content {
                        border-color: #007bff !important;
                        transform: translateY(-2px) !important;
                        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2) !important;
                    }

                .contacto-option input[type="radio"]:checked + .option-content {
                        border-color: #2d6cdf !important;
                        background: #f6faff !important;
                        transform: translateY(-2px) !important;
                        box-shadow: 0 5px 20px rgba(45, 108, 223, 0.25) !important;
                    }

                .contacto-option .campo-valido-label {
                        position: absolute !important;
                        top: -10px !important;
                        right: -10px !important;
                        background: #28a745 !important;
                        color: white !important;
                        font-size: 0.75rem !important;
                        font-weight: 600 !important;
                        padding: 4px 8px !important;
                        border-radius: 12px !important;
                        box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important;
                        opacity: 0 !important;
                        transform: scale(0.8) !important;
                        transition: all 0.3s ease !important;
                        z-index: 10 !important;
                        pointer-events: none !important;
                    }

                .contacto-option input[type="radio"]:checked + .option-content .campo-valido-label {
                        opacity: 1 !important;
                        transform: scale(1) !important;
                    }

                /* Checkbox group */
                .checkbox-group {
                        display: grid !important;
                        grid-template-columns: repeat(4, 1fr) !important;
                        gap: 1rem !important;
                        margin-top: 0.5rem !important;
                    }

                .checkbox-item {
                        display: flex !important;
                        align-items: center !important;
                        gap: 0.5rem !important;
                    }

                .checkbox-item input[type="checkbox"] {
                        width: 18px !important;
                        height: 18px !important;
                        margin: 0 !important;
                    }

                .checkbox-item label {
                        font-size: 0.9rem !important;
                        color: #2c3e50 !important;
                        margin: 0 !important;
                    }

                /* Contacto options styles */
                .contacto-options {
                        display: flex !important;
                        gap: 2rem !important;
                        margin-top: 1.5rem !important;
                        justify-content: center !important;
                        flex-wrap: wrap !important;
                    }

                .contacto-option {
                        position: relative !important;
                        cursor: pointer !important;
                        min-width: 200px !important;
                    }

                .contacto-option input[type="radio"] {
                        position: absolute !important;
                        opacity: 0 !important;
                        pointer-events: none !important;
                    }

                .contacto-option .option-content {
                        padding: 1.5rem !important;
                        background: white !important;
                        border: 2px solid #e9ecef !important;
                        border-radius: 12px !important;
                        text-align: center !important;
                        transition: all 0.3s ease !important;
                        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
                    }

                .contacto-option:hover .option-content {
                        border-color: #84cc16 !important;
                        transform: translateY(-2px) !important;
                        box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3) !important;
                    }

                .contacto-option input[type="radio"]:checked + .option-content {
                        border-color: #84cc16 !important;
                        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
                        box-shadow: 0 4px 16px rgba(132, 204, 22, 0.4) !important;
                    }

                .contacto-option input[type="radio"]:checked + .option-content .campo-valido-label {
                        display: block !important;
                }

/* ===== Mejoras UI/UX (spinner, inputs, transiciones) ===== */
            @keyframes spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }
            
            /* ========== MEJORAS UI/UX ========== */
            
            /* 1. Feedback visual en inputs - Borde verde cuando está completo */
            .input-valid {
                border-color: #22c55e !important;
                box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
            }
            
            .input-invalid {
                border-color: #ef4444 !important;
                box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
            }
            
            .input-wrapper {
                position: relative;
            }
            
            .input-check-icon {
                position: absolute;
                right: 12px;
                top: 50%;
                transform: translateY(-50%);
                color: #22c55e;
                opacity: 0;
                transition: opacity 0.3s ease;
                pointer-events: none;
            }
            
            .input-valid + .input-check-icon,
            .input-wrapper:has(.input-valid) .input-check-icon {
                opacity: 1;
            }
            
            /* 2. Tooltip para botones deshabilitados */
            .tooltip-wrapper {
                position: relative;
                display: inline-block;
            }
            
            .tooltip {
                visibility: hidden;
                opacity: 0;
                background-color: #1f2937;
                color: white;
                text-align: center;
                border-radius: 8px;
                padding: 8px 12px;
                position: absolute;
                z-index: 1000;
                bottom: 125%;
                left: 50%;
                transform: translateX(-50%);
                white-space: nowrap;
                font-size: 14px;
                transition: opacity 0.3s, visibility 0.3s;
                pointer-events: none;
            }
            
            .tooltip::after {
                content: "";
                position: absolute;
                top: 100%;
                left: 50%;
                margin-left: -5px;
                border-width: 5px;
                border-style: solid;
                border-color: #1f2937 transparent transparent transparent;
            }
            
            .tooltip-wrapper:hover .tooltip {
                visibility: visible;
                opacity: 1;
            }
            
            /* 3. Animación sutil en selección de opciones */
            @keyframes pulse-select {
                0% { transform: scale(1); }
                50% { transform: scale(1.05); }
                100% { transform: scale(1); }
            }
            
            .radio-selected,
            .checkbox-selected {
                animation: pulse-select 0.3s ease;
            }
            
            /* 4. Indicador de campos requeridos mejorado */
            /* .required-field::after removed - asteriscos ahora se agregan manualmente en el HTML */
            
            /* Badge removido - solo se usa asterisco rojo */
            
            /* 5. Barra de progreso (sin numeración) */
            .progress-container {
                position: relative;
            }
            
            /* 6. Transiciones suaves entre pantallas */
            .cotizador {
                transition: opacity 0.3s ease, transform 0.3s ease;
            }
            
            .cotizador.fade-in {
                opacity: 1;
                transform: translateY(0);
            }
            
            .cotizador.fade-out {
                opacity: 0;
                transform: translateY(10px);
            }
            
            /* 7. Mensajes de error en tiempo real */
            .error-message {
                color: #ef4444;
                font-size: 12px;
                margin-top: 4px;
                display: none;
                animation: slideDown 0.3s ease;
            }
            
            .error-message.show {
                display: block;
            }
            
            @keyframes slideDown {
                from {
                    opacity: 0;
                    transform: translateY(-10px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
            
            .success-message {
                color: #22c55e;
                font-size: 12px;
                margin-top: 4px;
                display: none;
            }
            
            .success-message.show {
                display: block;
            }
            
            /* 8. Loading mejorado con texto descriptivo */
            #loading-text {
                margin-top: 12px;
                font-size: 16px;
                font-weight: 600;
            }
            
            /* 9. Focus states mejorados para accesibilidad */
            input:focus,
            textarea:focus,
            select:focus,
            button:focus {
                outline: 2px solid #3b82f6;
                outline-offset: 2px;
            }
            
            input:focus:not(.input-invalid),
            textarea:focus:not(.input-invalid),
            select:focus:not(.input-invalid) {
                outline-color: #22c55e;
            }
            
            /* 10. Agrupación visual de campos relacionados */
            .field-group {
                background: rgba(255, 255, 255, 0.05);
                border-radius: 12px;
                padding: 16px;
                margin-bottom: 16px;
                border: 1px solid rgba(255, 255, 255, 0.1);
            }
            
            .field-group-title {
                font-weight: bold;
                margin-bottom: 12px;
                color: white;
                font-size: 14px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }
            
            /* Animación de entrada para elementos */
            @keyframes fadeInUp {
                from {
                    opacity: 0;
                    transform: translateY(20px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
            
            .animate-fade-in-up {
                animation: fadeInUp 0.4s ease;
            }

/* ===== Popup de confirmación ===== */
        .popup-hidden {
            display: none !important;
            visibility: hidden !important;
        }
        .popup-visible {
            display: flex !important;
            visibility: visible !important;
        }

/* ===== Markup inyectado por plugins WPC (Smart Compare / Wishlist / Quick View)
   vía wp_footer en todas las páginas: en esta plantilla limpia no carga su CSS
   y se renderizaba crudo debajo del footer. El cotizador no usa WooCommerce. ===== */
.woosc-popup,
.woosc-bar,
.woosc-area,
.woosw-popup,
.woosw-bar,
.woosq-popup {
    display: none !important;
    visibility: hidden !important;
}
