/* Adaptación acotada del contacto flotante corporativo de TOEFL. */
.empresas-site .empresas-floating-contact {
    --floating-ink: oklch(0.15 0.02 265);
    --floating-ring: oklch(0.72 0.16 290);
    position: fixed;
    right: max(0.9375rem, env(safe-area-inset-right));
    bottom: max(5rem, env(safe-area-inset-bottom));
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    pointer-events: none;
}

.empresas-site .empresas-floating-contact__lower {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.75rem;
}

.empresas-site .empresas-floating-contact__orb,
.empresas-site .empresas-floating-contact__phone {
    pointer-events: auto;
    box-shadow: 0 0.375rem 1.125rem color-mix(in srgb, var(--floating-ink) 24%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.empresas-site .empresas-floating-contact__orb {
    display: inline-flex;
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 3.5rem;
    padding: 0;
    border: 0;
    font: inherit;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    text-decoration: none;
}

.empresas-site .empresas-floating-contact__orb svg {
    width: 1.625rem;
    height: 1.625rem;
    fill: currentColor;
}

.empresas-site .empresas-floating-contact__whatsapp {
    background: #25d366;
}

.empresas-site .empresas-floating-contact__mail {
    background: #fc4e4e;
}

.empresas-site .empresas-floating-contact__phone svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empresas-site .empresas-floating-contact__mail svg {
    fill: currentColor;
    stroke: none;
}

.empresas-site .empresas-floating-contact__phone {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid color-mix(in srgb, var(--floating-ink) 8%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, white 96%, transparent);
    color: var(--floating-ink);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.empresas-site .empresas-floating-contact__phone svg {
    width: 1.125rem;
    height: 1.125rem;
    flex: 0 0 auto;
    color: #0ca3f4;
}

.empresas-site .empresas-floating-contact__orb:hover,
.empresas-site .empresas-floating-contact__phone:hover {
    transform: translateY(-0.125rem) scale(1.04);
    box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--floating-ink) 30%, transparent);
}

.empresas-site .empresas-floating-contact__orb:focus-visible,
.empresas-site .empresas-floating-contact__phone:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--floating-ring) 70%, white);
    outline-offset: 3px;
}

@media (max-width: 48rem) {
    .empresas-site .empresas-floating-contact {
        right: max(0.625rem, env(safe-area-inset-right));
        bottom: max(4.375rem, env(safe-area-inset-bottom));
        gap: 0.625rem;
    }

    .empresas-site .empresas-floating-contact__lower {
        gap: 0.625rem;
    }

    .empresas-site .empresas-floating-contact__orb {
        width: 3rem;
        height: 3rem;
        flex-basis: 3rem;
    }

    .empresas-site .empresas-floating-contact__orb svg {
        width: 1.375rem;
        height: 1.375rem;
    }

    .empresas-site .empresas-floating-contact__phone {
        min-height: 2.625rem;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}


@media (prefers-reduced-motion: reduce) {
    .empresas-site .empresas-floating-contact :is(a,button) { transition: none; }
}
