.diamond-before-after-wrapper {
    margin: 40px auto;
    padding: 20px;
    max-width: 1200px;
}

.diamond-comparison-slider {
    position: relative;
    width: 100%;
    max-width: 1080px;
    max-height: 608px;
    margin: 0 auto;
    overflow: hidden;
    user-select: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.diamond-before,
.diamond-after {
    position: relative;
    width: 100%;
}

.diamond-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.diamond-comparison-slider img {
    width: 100%;
    height: auto;
    max-height: 608px;
    display: block;
    pointer-events: none;
    object-fit: contain;
}

.diamond-label {
    position: absolute;
    top: 20px;
    background: rgba(255, 0, 255, 0.95);
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    font-family: Arial, sans-serif;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.diamond-icon {
    margin-right: 5px;
}

.diamond-label-before {
    left: 20px;
}

.diamond-label-after {
    right: 20px;
}

.diamond-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 20;
    transition: width 0.2s ease;
}

.diamond-slider-handle:hover {
    width: 6px;
}

.diamond-handle-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,1), rgba(255,255,255,0.8));
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.diamond-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: #fff;
    border: 5px solid #ff00ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diamond-slider-handle:hover .diamond-handle-circle {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(255,0,255,0.5);
}

.diamond-arrow-left,
.diamond-arrow-right {
    color: #ff00ff;
    font-size: 16px;
    font-weight: bold;
}

/* Estilos para formulario de clientes */
.diamond-customer-upload-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.diamond-upload-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
}

.diamond-upload-header {
    text-align: center;
    margin-bottom: 40px;
}

.diamond-upload-header h2 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.diamond-upload-header p {
    color: #666;
    font-size: 18px;
}

.diamond-upload-area {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
}

.diamond-upload-area:hover,
.diamond-upload-area.drag-over {
    border-color: #ff00ff;
    background: #fff;
    transform: scale(1.02);
}

.diamond-upload-icon {
    color: #ff00ff;
    margin-bottom: 20px;
}

.diamond-upload-area h3 {
    color: #333;
    font-size: 24px;
    margin: 20px 0 10px;
}

.diamond-upload-area p {
    color: #999;
    margin: 10px 0;
}

.diamond-upload-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff00ff 0%, #ff66ff 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,0,255,0.3);
}

.diamond-upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,0,255,0.4);
}

.diamond-upload-info {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

.diamond-preview-image {
    text-align: center;
    padding: 20px;
}

.diamond-preview-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.diamond-change-image {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.diamond-change-image:hover {
    background: #e0e0e0;
}

.diamond-processing {
    text-align: center;
    padding: 60px 20px;
}

.diamond-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff00ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.diamond-processing p {
    font-size: 20px;
    color: #333;
    margin: 10px 0;
}

.diamond-processing-subtitle {
    font-size: 16px;
    color: #999;
}

.diamond-result-container {
    padding: 20px 0;
}

.diamond-result-container h3 {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.diamond-result-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.diamond-comparison-slider-customer {
    position: relative;
    width: 100%;
    max-width: 1080px;
    max-height: 608px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    user-select: none;
}

.diamond-before-customer,
.diamond-after-customer {
    position: relative;
    width: 100%;
}

.diamond-after-customer {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.diamond-comparison-slider-customer img {
    width: 100%;
    height: auto;
    max-height: 608px;
    display: block;
    pointer-events: none;
    object-fit: contain;
}

.diamond-label-customer {
    position: absolute;
    top: 20px;
    background: rgba(255, 0, 255, 0.95);
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.diamond-label-before-customer {
    left: 20px;
}

.diamond-label-after-customer {
    right: 20px;
}

.diamond-slider-handle-customer {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 20;
    transition: width 0.2s ease;
}

.diamond-slider-handle-customer:hover {
    width: 6px;
}

.diamond-handle-line-customer {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,1), rgba(255,255,255,0.8));
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.diamond-handle-circle-customer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: #fff;
    border: 5px solid #ff00ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.diamond-slider-handle-customer:hover .diamond-handle-circle-customer {
    transform: translate(-50%, -50%) scale(1.1);
}

.diamond-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.diamond-btn-primary,
.diamond-btn-secondary {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.diamond-btn-primary {
    background: linear-gradient(135deg, #ff00ff 0%, #ff66ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255,0,255,0.3);
}

.diamond-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,0,255,0.4);
}

.diamond-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.diamond-btn-secondary:hover {
    background: #e0e0e0;
}

.diamond-error-message {
    text-align: center;
    padding: 40px;
    background: #fff3f3;
    border-radius: 12px;
    border: 2px solid #ffcccc;
}

.diamond-error-message p {
    color: #d32f2f;
    font-size: 18px;
    margin-bottom: 20px;
}

#diamond-retry-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
}

#diamond-retry-btn:hover {
    background: #b71c1c;
}

/* Responsive */
@media (max-width: 768px) {
    .diamond-before-after-wrapper {
        padding: 10px;
        margin: 20px 0;
    }
    
    .diamond-comparison-slider {
        max-width: 100%;
    }
    
    .diamond-label {
        font-size: 12px;
        padding: 6px 12px;
        top: 10px;
    }
    
    .diamond-label-before {
        left: 10px;
    }
    
    .diamond-label-after {
        right: 10px;
    }
    
    .diamond-handle-circle {
        width: 50px;
        height: 50px;
        padding: 0 10px;
    }
    
    .diamond-arrow-left,
    .diamond-arrow-right {
        font-size: 14px;
    }
    
    .diamond-upload-container {
        padding: 20px;
    }
    
    .diamond-upload-header h2 {
        font-size: 24px;
    }
    
    .diamond-upload-area {
        padding: 40px 20px;
    }
    
    .diamond-action-buttons {
        flex-direction: column;
    }
    
    .diamond-btn-primary,
    .diamond-btn-secondary {
        width: 100%;
    }
    
    .diamond-comparison-slider-customer {
        max-width: 100%;
    }
}