/* ... (Mismos estilos de la fuente, fondo y animaciones que antes) ... */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #111827;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #334155, #475569);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* NUEVOS ESTILOS PARA LA GALERÍA */
.gallery-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f2937;
    /* Gris más oscuro */
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    /* Borde sutil */
    transition: background-color 0.2s, border-color 0.2s;
}

.gallery-item:hover {
    background-color: #374151;
    border-color: #4f46e5;
    /* Índigo */
}

.gallery-item span {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

.gallery-item .actions {
    display: flex;
    gap: 0.5rem;
}

.gallery-item .actions button {
    background: #4b5563;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item .actions button:hover {
    background: #6b7280;
}

.gallery-item .actions .delete-btn:hover {
    background: #ef4444;
    /* Rojo */
}

.gallery-item .actions .load-btn:hover {
    background: #4f46e5;
    /* Índigo */
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-in-down {
    opacity: 0;
    animation: slideInDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}