.drop-area {
        border: 2px dashed #ccc;
        padding: 20px;
        text-align: center;
        cursor: pointer;
        position: relative;
        margin-bottom: 20px;
    }

    .drop-area.highlight {
        border-color: green;
    }

    .fileElem {
        display: none;
    }

    .preview {
        width: 200px;
        height: 200px;
        object-fit: contain; /* 👈 CAMBIA esto - ahora se ve completa */
        display: none;
        margin: 10px auto;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background-color: #f5f5f5; /* Fondo gris suave por si la imagen es más pequeña */
    }

    .preview:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .remove-btn {
        display: none;
        position: absolute;
        top: 5px;
        right: 10px;
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 50%;
        font-weight: bold;
        width: 28px;
        height: 28px;
        cursor: pointer;
        z-index: 10;
        font-size: 18px;
        transition: all 0.2s ease;
    }

    .remove-btn:hover {
        background: #c82333;
        transform: scale(1.1);
    }

    .progress-container {
        width: 100%;
        max-width: 300px;
        margin: 10px auto 0;
        height: 4px;
        background-color: #e0e0e0;
        border-radius: 2px;
        display: none;
        overflow: hidden;
    }

    .progress-bar {
        width: 0%;
        height: 100%;
        background: linear-gradient(90deg, #4CAF50, #8BC34A);
        transition: width 0.3s ease;
        border-radius: 2px;
    }
    
    .drop-area p {
        color: #666;
        font-size: 14px;
        margin: 0;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }