.file-upload-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.file-upload-area {
    position: relative;
    width: 100%;
    min-height: 200px;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(247, 250, 252, 0.8);
    cursor: pointer;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            45deg,
            rgba(66, 153, 225, 0.05) 0%,
            rgba(99, 179, 237, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.file-upload-area:hover {
    border-color: #63b3ed;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(66, 153, 225, 0.3);
}

.file-upload-area:hover::before {
    opacity: 1;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.upload-message {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: transform 0.3s ease;
}

.file-upload-area:hover .upload-message {
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 2.5rem;
    color: #4299e1;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.file-upload-area:hover .upload-icon {
    transform: scale(1.1);
    color: #2b6cb0;
}

.upload-text {
    color: #4a5568;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.upload-text .primary-text {
    color: #4299e1;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(66, 153, 225, 0.1);
    transition: all 0.3s ease;
}

.file-upload-area:hover .upload-text .primary-text {
    background: rgba(66, 153, 225, 0.2);
    color: #2b6cb0;
}

.file-name {
    display: block;
    font-weight: 500;
    color: #2d3748;
    margin-top: 0.75rem;
    word-break: break-all;
    max-width: 100%;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.upload-info {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #718096;
}

.upload-info span {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.file-upload-area:hover .upload-info span {
    border-color: #63b3ed;
    background: white;
}

/* Estados especiales */
.file-upload-area.drag-over {
    border-color: #4299e1;
    background: rgba(235, 248, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(66, 153, 225, 0.4);
}

.file-upload-area.has-error {
    border-color: #fc8181;
    background: rgba(255, 245, 245, 0.9);
}

.file-upload-area.has-error .upload-icon {
    color: #fc8181;
}

.file-upload-area.has-file {
    border-color: #48bb78;
    background: rgba(240, 255, 244, 0.9);
}

.file-upload-area.has-file .upload-icon {
    color: #48bb78;
}

/* Responsive */
@media (max-width: 768px) {
    .file-upload-area {
        min-height: 180px;
        padding: 1.5rem;
    }

    .upload-icon {
        font-size: 2rem;
    }

    .upload-text {
        font-size: 1rem;
    }

    .upload-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .file-upload-area {
        min-height: 150px;
        padding: 1.25rem;
        border-radius: 12px;
    }

    .upload-icon {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .upload-text {
        font-size: 0.95rem;
    }

    .file-name {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .upload-info span {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

.clear-button {
    position: absolute;
    right: 15px;
    top: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
    color: #718096;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.clear-button:hover {
    background: #fee2e2;
    border-color: #fc8181;
    color: #e53e3e;
    transform: scale(1.1);
}

.file-upload-area.has-file .clear-button {
    display: flex;
}
