/* Botones flotantes: llamada + WhatsApp (misma talla, pulse desfasado) */
@keyframes fab-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.call-icon,
.whatsapp-icon {
    position: fixed;
    right: 20px;
    z-index: 9999;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-animation: fab-pulse 2s ease-in-out infinite;
    animation: fab-pulse 2s ease-in-out infinite;
    transition: box-shadow 0.3s ease;
}

/* Llamada: encima del botón de WhatsApp */
.call-icon {
    bottom: 104px;
    /* ~20px base + 72px alto + ~12px hueco */
    background-color: #007bff;
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.35);
    animation-delay: 1s;
}

.call-icon a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}

.call-icon:hover {
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

.call-icon i {
    color: #fff;
    font-size: 30px;
}

/* WhatsApp */
.whatsapp-icon {
    bottom: 20px;
    background-color: #25d366;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.4);
    animation-delay: 0s;
}

.whatsapp-icon a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.whatsapp-icon:hover {
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.55),
        0 4px 14px rgba(0, 0, 0, 0.45);
}

.whatsapp-icon i {
    color: white;
    font-size: 38px;
}

/* iPhone notch / barra inferior */
@supports (padding: env(safe-area-inset-bottom)) {
    .whatsapp-icon {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .call-icon {
        bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 576px) {
    .call-icon,
    .whatsapp-icon {
        width: 68px;
        height: 68px;
        right: 16px;
    }

    /* 16px base + 68px alto WhatsApp + ~12px hueco */
    .call-icon {
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .whatsapp-icon {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .call-icon i {
        font-size: 26px;
    }

    .whatsapp-icon i {
        font-size: 32px;
    }

    .whatsapp-icon a {
        padding: 0;
    }
}
