@keyframes floatIn {
    0% {
        opacity: 0;
        /*transform: translateY(20px);*/
        transform:translate3d(0,20px,0)
    }

    100% {
        opacity: 1;
        /*transform: translateY(0);*/
        transform: translate3d(0,0,0)
    }
}

.fab-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.fab-checkbox {
    display: none;
}

.fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
    font-family: sans-serif;
}

.fab-icon::before {
    /*content: "+";*/
    font-size: 2rem;
    line-height: 1;
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    /*transform: translateY(20px);*/
    transform:translate3d(0,20px,0);
    transition: opacity 0.3s, transform 0.3s;
}

.fab-checkbox:checked ~ .fab-menu {
    opacity: 1;
    pointer-events: auto;
    /*transform: translateY(0);*/
    transform: translate3d(-6px, 0px, 0px);
}

.fab-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #17a2b8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.2s;
}

    .fab-option:hover {
        background-color: #138496;
    }

:deep(.fab-container) {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
}

:deep(.fab-button) {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

:deep(.fab-icon::before) {
    content: "+";
    font-size: 2rem;
    line-height: 1;
}

:deep(.fab-menu) {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    /*transform: translateY(20px);*/
    transform: translate3d(0,20px,0);
    transition: opacity 0.3s, transform 0.3s;
}

:deep(input.fab-checkbox:checked ~ .fab-menu) {
    opacity: 1;
    pointer-events: auto;
    /*transform: translateY(0);*/
    transform: translate3d(0,0,0)
}

:deep(.fab-option) {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #17a2b8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.2s;
    opacity: 0;
    /*transform: translateY(20px);*/
    transform: translate3d(0,20px,0)
}

:deep(.fab-option:hover) {
    background-color: #138496;
}

:deep(input.fab-checkbox:checked ~ .fab-menu .fab-option) {
    animation: floatIn 0.4s ease forwards;
}

/* Animaciones en cascada */
:deep(input.fab-checkbox:checked ~ .fab-menu .fab-option:nth-child(1)) {
    animation-delay: 0.05s;
}

:deep(input.fab-checkbox:checked ~ .fab-menu .fab-option:nth-child(2)) {
    animation-delay: 0.1s;
}

:deep(input.fab-checkbox:checked ~ .fab-menu .fab-option:nth-child(3)) {
    animation-delay: 0.15s;
}

:deep(input.fab-checkbox:checked ~ .fab-menu .fab-option:nth-child(4)) {
    animation-delay: 0.2s;
}
