/**
 * ESTILOS PARA WIDGET DE COTIZACIÓN ELEMENTOR
 * Archivo: quote-widget-styles.css
 * Compatible con sistema de cotizaciones WooCommerce
 */

/* ========== CONTENEDOR PRINCIPAL ========== */
.quote-widget-container {
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== SELECT DE VARIANTES ========== */
.quote-variant-section {
    margin-bottom: 15px;
}

.quote-variant-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.quote-variant-section label .required {
    color: #dc3545;
    font-weight: bold;
}

.quote-variant-select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.quote-variant-select:focus {
    border-color: #007cba !important;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1) !important;
    outline: none;
}

.quote-variant-select:hover {
    border-color: #007cba !important;
}

/* Estados de error para validación */
.quote-variant-select.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1) !important;
}

/* ========== BOTÓN DE COTIZACIÓN ========== */
.quote-button-widget {
    background: linear-gradient(135deg, #0103bc, #0103bc);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px #0103bc
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quote-button-widget:hover {
    background: linear-gradient(135deg, #0103bc, #0103bc);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,124,186,0.4);
}

.quote-button-widget:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(0,124,186,0.3);
}

.quote-button-widget:focus {
    outline: none;
    box-shadow: 0 4px 8px rgba(0,124,186,0.4), 0 0 0 3px rgba(0,124,186,0.1);
}

/* Estado deshabilitado (si se necesita) */
.quote-button-widget:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quote-button-widget:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* ========== EFECTOS DE HOVER EN EL CONTENEDOR ========== */
.quote-widget-container:hover .quote-button-widget:not(:disabled) {
    background: linear-gradient(135deg, #0103bc, #0103bc);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,124,186,0.4);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .quote-widget-container {
        margin: 10px 0;
    }
    
    .quote-button-widget {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .quote-variant-select {
        font-size: 16px; /* Evita zoom en iOS */
        padding: 12px 40px 12px 12px;
    }
}

@media (max-width: 480px) {
    .quote-variant-section label {
        font-size: 13px;
    }
    
    .quote-button-widget {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* ========== ACCESIBILIDAD ========== */
@media (prefers-reduced-motion: reduce) {
    .quote-button-widget,
    .quote-variant-select {
        transition: none;
    }
    
    .quote-widget-container:hover .quote-button-widget {
        transform: none;
    }
    
    .quote-button-widget:hover {
        transform: none;
    }
}

/* ========== MODO OSCURO (si el tema lo soporta) ========== */
@media (prefers-color-scheme: dark) {
    .quote-variant-section label {
        color: #343a40;
    }
    
    .quote-variant-select {
        background: #343a40;
        border-color: #495057;
        color: #e9ecef;
    }
    
    .quote-variant-select:focus,
    .quote-variant-select:hover {
        border-color: #007cba;
    }
}

/* ========== ANIMACIONES ADICIONALES ========== */
@keyframes quote-widget-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-widget-container {
    animation: quote-widget-fade-in 0.3s ease-out;
}

/* ========== COMPATIBILIDAD CON TEMAS POPULARES ========== */
.elementor-widget-container .quote-widget-container {
    margin: 15px 0;
}

.elementor-widget-container .quote-button-widget {
    font-family: inherit;
}

/* Sobrescribir estilos de botones del tema si es necesario */
.quote-button-widget.quote-button-widget {
    background: linear-gradient(135deg, #0103bc, #0103bc) !important;
    color: white !important;
    text-decoration: none !important;
    border: none !important;
}

.quote-button-widget.quote-button-widget:hover {
    background: linear-gradient(135deg, #0103bc, #0103bc) !important;
    color: white !important;
    text-decoration: none !important;
}


/* ========== SECCIÓN DE CANTIDAD ========== */
.quote-quantity-section {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #2c5aa0;
}

.quote-quantity-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c5aa0;
    font-size: 14px;
}

.quote-quantity-widget {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.quote-quantity-widget:focus {
    border-color: #2c5aa0 !important;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1) !important;
    outline: none;
}

.quote-quantity-widget:hover {
    border-color: #2c5aa0 !important;
}

/* Estado de error para cantidad */
.quote-quantity-widget.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1) !important;
    background-color: #fff5f5 !important;
}

/* Animación suave al aparecer */
.quote-quantity-section {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========== ANIMACIONES ADICIONALES ========== */
@keyframes quote-widget-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
