  .file-preview-card {
        position: relative;
        width: 100px;
        height: 100px;
        display: flex;
        justify-content: center;
        /* centra horizontal */
        align-items: center;
        /* centra vertical */
        border: 1px solid #ddd;
        border-radius: 10px;
        overflow: hidden;
    }

    .file-preview-card img {
        max-width: 70%;
        max-height: 70%;
        object-fit: contain;
    }



/* Grid de archivos */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Card de vista previa */
.file-preview-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Imagen preview */
.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón eliminar */
.btn-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    z-index: 10;
}

.file-preview-card:hover .btn-remove {
    opacity: 1;
}

.btn-remove:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Nombre del archivo */
.file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    font-size: 11px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.file-preview-card:hover .file-name {
    opacity: 1;
}

/* Card de agregar más */
.add-more-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-more-content {
    text-align: center;
    color: white;
}

.add-more-content i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.add-more-card:hover {
    border-color: white;
}

/* Zona de upload */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.upload-zone.dragging {
    border-color: #667eea;
    background: #e8ebff;
    transform: scale(1.02);
}

/* Badge personalizado */
.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

/* Botones de acción */
.gap-2 {
    gap: 8px;
}