.contact-button {
    position: fixed;
    bottom: 30%;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 48px;
    background-color: #CCEBFD;
    border: 1px solid var(--blue);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
    z-index: 400;
    text-decoration: none;
    overflow: hidden;
    transition: width 0.3s ease-in-out,
        height 0.3s ease-in-out;
}

.contact-button__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 32px;
    height: 38px;
    color: var(--blue);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out,
        width 0.3s ease-in-out,
        height 0.3s ease-in-out;
    flex-shrink: 0;
    position: relative;
}

.contact-button__icon-arrow {
    display: none;
    background: white;
    border-radius: 50%;
    padding: 4px;
    font-size: 10px;
}

.contact-button__icon-phone {
    font-size: 24px;
    animation: bellPhone 1s 3s infinite;
}

.contact-button__content {
    display: none;
}

.contact-button__text {
    font-size: 14px;
    line-height: normal;
}

.contact-button__phone {
    font-size: 15px;
    line-height: normal;
}

@keyframes bellPhone {
    0% { rotate: 0deg;}
    10% { rotate: 30deg;}
    30% { rotate: -30deg;}
    45% { rotate: 15deg;}
    55% { rotate: -15deg;}
    60% { rotate: 0deg;}
}

/* Reglas para desktop */
@media (min-width: 768px) {
    .contact-button {
        cursor: pointer;
        justify-content: flex-start;
        height: 32px;
        width: 38px;
        padding-right: 1.5rem;
    }

    .contact-button:hover {
        width: 220px;
        height: 56px;
    }

    .contact-button__icon {
        margin-right: 12px;
    }

    .contact-button:hover .contact-button__icon {
        width: 56px;
        height: 56px;
    }

    .contact-button__content {
        display: flex;
        flex-direction: column;
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .contact-button:hover .contact-button__content {
        opacity: 1;
    }

    .contact-button:hover .contact-button__icon-arrow {
        display: block;
    }

    .contact-button__icon-phone {
        font-size: 16px;
        animation: none;
    }
}